Packages

@babel/generator

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

Your version

7.14.0

29 Apr 2021Where it was published

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

:rocket: New Feature

  • babel-plugin-proposal-async-do-expressions

    • Implement async-do-expressions transform (@JLHwung)

  • babel-core, babel-generator, babel-parser, babel-plugin-proposal-do-expressions, babel-plugin-syntax-async-do-expressions, babel-types

  • babel-preset-env

  • babel-compat-data, babel-preset-env

  • babel-helper-create-class-features-plugin, babel-plugin-proposal-private-property-in-object, babel-plugin-syntax-private-property-in-object

    • Allow compiling #foo in obj without compiling private fields (@nicolo-ribaudo)

  • babel-parser

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

    • Implement importInterop: "node" option for module transforms (@nicolo-ribaudo)

  • babel-generator, babel-parser, babel-traverse, babel-types

    • Support parsing Flow's Optional Indexed Access Types (@gkz)

    • Support parsing Flow's Indexed Access Types (@sosukesuzuki)

  • babel-parser, babel-traverse

  • babel-generator, babel-parser, babel-types

    • Support TypeScript 4.3 get/set type members (@sosukesuzuki)

    • support TS 4.3 override syntax in class (@g-plane)

    • support TS 4.3 static index signature in class (@g-plane)

:bug: Bug Fix

  • babel-generator

    • Prevent 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-env

    • Simplify the special-case printing of single-param arrow functions (@Zalathar)

  • babel-core

    • fix: 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-typescript

    • babel-parser: Add new internal ESLint rule to consistent error messages (@sosukesuzuki)

:house: Internal

  • babel-parser

    • Add runFixtureTestsWithoutExactASTMatch in 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-runtime

  • Other

    • chore: run coverage-test against node 16 (@JLHwung)

:running_woman: Performance

  • babel-core

    • perf(core): check files before interacting with them (@FauxFaux)

    • perf: avoid loadFullConfig when creating block hoist plugin (@JLHwung)

  • babel-helper-validator-identifier

    • Improve isIdentifierName performance (@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-env

  • babel-helpers, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime