@babel/cli
8.0.6 · 18 Sep 2026MIT3.9M / weekRepositoryHomepagenpmAtom feed
7.29.7 is the newest release of 7.x.
In short
4 new8 fixed7 changed55 internal
Release note
Thanks @akphi, @Amareis, @barronwei, @iamfotx, @mischnic, @overlookmotel, @ryanrhee, @snitin315, @sosukesuzuki, @timgates42, @zweimach for their first PRs.
:eyeglasses: Spec Compliance
babel-core,babel-helper-module-transforms,babel-parser,babel-plugin-proposal-export-namespace-from,babel-plugin-syntax-module-string-names,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs,babel-plugin-transform-modules-umd,babel-typesString import/export specifier (@JLHwung)
babel-parser[ts] Throw a syntax error for index signature with
declare(@sosukesuzuki)
:rocket: New Feature
babel-core,babel-generator,babel-parser,babel-plugin-syntax-import-assertions,babel-plugin-syntax-module-attributes,babel-standalone,babel-typesParse import-assertions (@xtuc)
babel-core,babel-helper-create-class-features-plugin,babel-helper-module-transforms,babel-helper-replace-supers,babel-plugin-proposal-class-static-block,babel-plugin-transform-modules-commonjs,babel-standalone,babel-traverse,babel-typesTransform class static block (@JLHwung)
babel-generator,babel-parser,babel-plugin-syntax-class-static-block,babel-typesParse class static block (@JLHwung)
babel-generator,babel-parser,babel-typesSupport TypeScript mapped type 'as' clauses (@existentialism)
[ts] Add support for the "intrinsic" keyword (@nicolo-ribaudo)
babel-parser,babel-types[ts] Add support for template interpolations in types (@nicolo-ribaudo)
babel-plugin-transform-modules-systemjsSystemJS top-level await support (@guybedford)
babel-plugin-transform-typescript,babel-preset-typescriptAdd
jsxPragmaFragsupport to typescript transform (@JLHwung)
babel-core,babel-helper-module-transforms,babel-parser,babel-plugin-proposal-export-namespace-from,babel-plugin-syntax-module-string-names,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs,babel-plugin-transform-modules-umd,babel-typesString import/export specifier (@JLHwung)
babel-coreReturn a list of files that were read from loadPartialConfig (@devongovett)
:bug: Bug Fix
babel-parser[ts] Add
asserts: falsetoTSTypePredicatenode (@sosukesuzuki)Move check for TSTypeCastExpression to catch another case (@existentialism)
Throw a recoverable error for missing initializer in const declaration (@sosukesuzuki)
Improve syntax error for class fields in ambient context (@sosukesuzuki)
Throw a syntax error for empty type parameter/argument (@sosukesuzuki)
Throw an error for a declare class field that have an initializer (@sosukesuzuki)
Do not throw an error for optional binding pattern params in function declaration (@sosukesuzuki)
Fix invalid
setterparse (@fisker)Throw a syntax error for a declare function with a body (@sosukesuzuki)
Throw a syntax error for a constructor with type parameters (@sosukesuzuki)
babel-plugin-transform-typescriptbabel-helper-member-expression-to-functions,babel-plugin-proposal-class-properties,babel-plugin-proposal-nullish-coalescing-operator,babel-plugin-proposal-optional-chainingHandle cases when
??and?.is in binding initializers (@JLHwung)
babel-helper-builder-react-jsx-experimental,babel-plugin-transform-react-jsx-development,babel-plugin-transform-react-jsx,babel-preset-reactadd
.jsextension to react runtime for JSX transform (@lunaruan)
babel-traverse,babel-typesfix: mark Pattern in CatchClause as scope (@JLHwung)
babel-generatorFix printing TSTypeOperator (@existentialism)
Ensure expressions wrapped in parens (@overlookmotel)
Fix
@babel/generatordoes not print decorators of private properties (@zweimach)Add sourcemap markings for each line of a string (@jridgewell)
babel-plugin-transform-modules-systemjsFix reexporting init-less variable in systemjs (@JLHwung)
babel-helper-module-transforms,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-umd,babel-plugin-transform-runtime[cjs] Skip duplicate reexported bindings in namespace reexports (@mischnic)
babel-helper-create-regexp-features-plugin,babel-plugin-transform-unicode-regexBump regexpu-core (@existentialism)
babel-plugin-proposal-do-expressions,babel-traversefix(do-expr): SwitchStatement with IfStatement cases (@barronwei)
:nail_care: Polish
babel-parser[parser] Better error message for missing number exponent (@iamfotx)
Throw a syntax error for a parameter properties in not constructor (@sosukesuzuki)
babel-helper-compilation-targets,babel-helper-validator-option,babel-preset-envrefactor: add @babel/helper-validator-option (@JLHwung)
:house: Internal
babel-cli,babel-helper-transform-fixture-test-runner,babel-traverseReplace lodash 'defaults' usage with ES6 Spread initializer (@jayaddison)
babel-plugin-transform-runtime,babel-runtime-corejs2,babel-runtime-corejs3,babel-runtimeSpecify runtime exports (@JLHwung)
babel-coreInstantiate presets before plugins (@nicolo-ribaudo)
babel-plugin-proposal-logical-assignment-operators,babel-plugin-proposal-numeric-separator,babel-plugin-syntax-import-meta,babel-plugin-syntax-logical-assignment-operators,babel-plugin-syntax-numeric-separator,babel-plugin-transform-modules-systemjs,babel-preset-env,babel-standaloneArchive plugins (@JLHwung)
Other
chore: bump gulp-cli to 2.3.0 (@JLHwung)
Yarn 2.3 (@nicolo-ribaudo)
fix: apply terser plugin only on *.min.js (@JLHwung)
docs: update build required node version (@JLHwung)
Bump Babel deps (@existentialism)
chore: pin browserslist version to 4.12.0 (@JLHwung)
chore: add git-blame-ignore-revs (@JLHwung)
chore: use latest node on ci workflow when possible (@JLHwung)
babel-compat-data,babel-preset-envchore: bump electron-to-chromium (@JLHwung)
babel-parserAdd missing tests for TypeScript syntax errors (@sosukesuzuki)
babel-core,babel-plugin-transform-runtimedocs: Fix simple typo, preprelease -> pre-release (@timgates42)
babel-compat-datachore: remove unused dependencies (@JLHwung)