@babel/generator
8.0.6 · 18 Sep 2026MIT285.4M / weekRepositoryHomepagenpmAtom feed
7.29.8 is the newest release of 7.x.
In short
2 new6 fixed4 changed24 internal
Release note
Thanks @joelvh, @liuliangsir and @mondeja for your first PRs!
:eyeglasses: Spec Compliance
babel-helpers,babel-plugin-transform-block-scopingThrow a
TypeErrorwhen reassigning aconst(@nicolo-ribaudo)
:bug: Bug Fix
babel-parserfix: support string assertion key in assert entries (@JLHwung)
fix: disallow import assertions in export without from (@JLHwung)
Handle exprAllowed before ObjectLike is parsed (@JLHwung)
Refactor yield await classification (@JLHwung)
Allows the interface to be used as an Identifier for flow plugin (@sosukesuzuki)
[ts] Error on invalid type casts in JSX (@existentialism)
[ts] Allow optional binding pattern parameters within types/interfaces (@existentialism)
Fix parsing of imports with module string name in flow plugin (@sosukesuzuki)
babel-parser,babel-typesMake assertions optional and update AST spec (@sosukesuzuki)
babel-template,babel-typesfix: babel-types: ImportDeclaration: add assertions (@coderaiser)
babel-generatorDo not use currentColumn to indent comments when retainLines=true (@ian-craig)
babel-generator,babel-parserSupport Import Assertions for re-export statement (@sosukesuzuki)
babel-plugin-proposal-numeric-separatorfix: support bigInt in numeric-separator transform (@JLHwung)
babel-helper-replace-supers,babel-plugin-transform-classesfix: support optionalCall in replace super handler (@JLHwung)
babel-standalonepackages/babel-standalone: make data-type="module" option avilable without data-presets option (@hirochachacha)
:nail_care: Polish
babel-compat-datachore: bump compat-table and electron-to-chromium (@JLHwung)
babel-parser,babel-preset-envPolish parser errors (@JLHwung)
:house: Internal
Other
babel-generator,babel-helper-module-imports,babel-helper-replace-supers,babel-parser,babel-traverseadd declare to class properties type annotations (@JLHwung)
babel-traverse,babel-typesMark
ThisExpressionandSuperasPurish(@nicolo-ribaudo)
babel-helper-compilation-targets,babel-preset-envUpdate to Browserslist 4.14.5 (@nicolo-ribaudo)