Packages

@babel/generator

8.0.6 · 18 Sep 2026MIT285.4M / weekRepositoryHomepagenpmAtom feed

Your version

7.17.7

14 Mar 2022Where it was published

7.29.8 is the newest release of 7.x.

In short

1 new6 fixed2 changed20 internal

Release note

Thanks @cha0s, @dev-itsheng, @green1052, @jlennox and @Yokubjon-J for your first PRs!

:eyeglasses: Spec Compliance

  • babel-generator, babel-parser

    • [tsx] raise error on single arrow type argument without comma (@ozanhonamlioglu)

:bug: Bug Fix

  • babel-helper-compilation-targets

    • Avoid resolveTargets call if browsers is an empty array (@dev-itsheng)

  • babel-helper-module-transforms, babel-helper-simple-access, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd

  • babel-parser

    • Allow variable and function with the same name in static blocks (@Yokubjon-J)

    • Remove length restriction from JSX entities, and ignore Object.prototype (@nicolo-ribaudo)

    • fix(ts): skip func-type param start on parsing (@JLHwung)

  • babel-helpers, babel-plugin-proposal-decorators

    • Fix static/proto initializers when there aren't class fields (@JLHwung)

    • fix: push newClass only when class is decorated (@JLHwung)

  • babel-generator

  • babel-helper-module-transforms, babel-plugin-transform-modules-commonjs

    • Fix duplicate exports initialization with many exports (@JasinYip)

  • babel-helper-member-expression-to-functions, babel-plugin-proposal-class-properties, babel-plugin-proposal-private-methods, babel-plugin-transform-classes, babel-plugin-transform-object-super

    • fix: support bigints in update expressions for private fields (@magic-akari)

  • babel-register

    • Fix babel register cache invalidation (@cha0s)

:nail_care: Polish

  • babel-parser

    • Report single error for invalid num seps in unicode escapes (@nicolo-ribaudo)

:house: Internal

  • babel-generator, babel-parser

  • babel-plugin-transform-destructuring

    • Improve transform-destructuring typings (@JLHwung)

  • Other