Packages

@babel/generator

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

Your version

7.18.0

19 May 2022Where it was published

7.29.8 is the newest release of 7.x.

In short

2 new3 fixed1 changed11 internal

Release note

Thanks @NickHeiner for your first PR!

:rocket: New Feature

  • babel-preset-env

    • feat: add import-assertions to shippedProposals (@JLHwung)

  • babel-helper-create-class-features-plugin, babel-helper-define-map, babel-plugin-proposal-class-static-block, babel-plugin-proposal-destructuring-private, babel-plugin-proposal-object-rest-spread, babel-plugin-syntax-destructuring-private, babel-plugin-transform-destructuring, babel-plugin-transform-proto-to-assign, babel-plugin-transform-typescript, babel-standalone, babel-traverse, babel-types

    • Transform destructuring private (@JLHwung)

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

    • [ts 4.7] Support optional variance annotations (@magic-akari)

  • babel-generator, babel-parser

  • babel-generator, babel-parser, babel-plugin-transform-typescript, babel-traverse, babel-types

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

:bug: Bug Fix

  • babel-types

    • Do not create multiple copies of comments when cloning nodes (@liuxingbaoyu)

  • babel-parser

    • Fix parsing of < after object literals with the jsx plugin (@JLHwung)

  • babel-plugin-transform-react-pure-annotations

    • fix: do not mark computed React[...] methods as pure (@JLHwung)

:nail_care: Polish

  • babel-core, babel-helper-transform-fixture-test-runner, babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-async-to-generator, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-standalone

:house: Internal

  • babel-core, babel-helper-create-class-features-plugin, babel-plugin-proposal-decorators, babel-plugin-transform-modules-systemjs

    • improve helper-create-class-features typings (@JLHwung)