@babel/generator
8.0.6 · 18 Sep 2026MIT285.4M / weekRepositoryHomepagenpmAtom feed
7.29.8 is the newest release of 7.x.
In short
11 new2 faster3 fixed8 changed19 internal
Release note
:eyeglasses: Spec Compliance
babel-generator,babel-parser[ts] Enforce order for the
overridemodifier (@nicolo-ribaudo)
:rocket: New Feature
babel-plugin-proposal-async-do-expressionsImplement async-do-expressions transform (@JLHwung)
babel-core,babel-generator,babel-parser,babel-plugin-proposal-do-expressions,babel-plugin-syntax-async-do-expressions,babel-typesParse async do expressions (@JLHwung)
babel-preset-envEnable class fields & private methods by default (@nicolo-ribaudo)
babel-compat-data,babel-preset-envAdd private brand checks to
shippedProposals(@nicolo-ribaudo)Add class static blocks to
preset-env'sshippedProposals(@nicolo-ribaudo)
babel-helper-create-class-features-plugin,babel-plugin-proposal-private-property-in-object,babel-plugin-syntax-private-property-in-objectAllow compiling
#foo in objwithout compiling private fields (@nicolo-ribaudo)
babel-parserbabel-parser(ts): Add new plugin option
dts: boolean(@sosukesuzuki)Materialize the class features in
@babel/parser. (@JLHwung)Introduce parser error codes (@sosukesuzuki)
babel-helper-module-transforms,babel-helpers,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-umdImplement
importInterop: "node"option for module transforms (@nicolo-ribaudo)
babel-generator,babel-parser,babel-traverse,babel-typesSupport parsing Flow's Optional Indexed Access Types (@gkz)
Support parsing Flow's Indexed Access Types (@sosukesuzuki)
babel-parser,babel-traverseParse string export names by default (
moduleStringNames) (@nicolo-ribaudo)
babel-generator,babel-parser,babel-typesSupport TypeScript 4.3 get/set type members (@sosukesuzuki)
support TS 4.3
overridesyntax in class (@g-plane)support TS 4.3 static index signature in class (@g-plane)
:bug: Bug Fix
babel-generatorPrevent ForOfStatement from printing the forbidden sequence "for ( async of" (@Zalathar)
fix: don't deduplicate comments with same start index (@gzzhanghao)
babel-generator,babel-plugin-proposal-object-rest-spread,babel-preset-envSimplify the special-case printing of single-param arrow functions (@Zalathar)
babel-corefix: Don't load browserslist in block-hoist-plugin (@MichaReiser)
:nail_care: Polish
babel-cli,babel-core,babel-parser,babel-plugin-transform-classes,babel-preset-env,babel-preset-typescriptbabel-parser: Add new internal ESLint rule to consistent error messages (@sosukesuzuki)
:house: Internal
babel-parserAdd
runFixtureTestsWithoutExactASTMatchin parser test runner (@JLHwung)babel-parser: Use
this.isThisParam(@sosukesuzuki)refactor: avoid parsing logic on locations (@JLHwung)
babel-helpers,babel-preset-env,babel-runtime-corejs2,babel-runtime-corejs3,babel-runtimeAllow putting helpers in individual files (@nicolo-ribaudo)
Other
chore: run coverage-test against node 16 (@JLHwung)
:running_woman: Performance
babel-corebabel-helper-validator-identifierImprove
isIdentifierNameperformance (@JLHwung)
:microscope: Output optimization
babel-helper-create-class-features-plugin,babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining,babel-plugin-proposal-async-generator-functions,babel-plugin-proposal-class-properties,babel-plugin-proposal-class-static-block,babel-plugin-proposal-private-methods,babel-plugin-proposal-private-property-in-object,babel-preset-envMark
WeakMaps of private fields as pure (@nicolo-ribaudo)
babel-helpers,babel-runtime-corejs2,babel-runtime-corejs3,babel-runtimeSimplify the
wrapRegExphelper for named groups (@nicolo-ribaudo)