Packages

@babel/cli

8.0.6 · 18 Sep 2026MIT3.9M / weekRepositoryHomepagenpmAtom feed

Your version

7.7.0

5 Nov 2019Where it was published

7.29.7 is the newest release of 7.x.

In short

5 new11 fixed11 changed50 internal

Release note

:eyeglasses: Spec Compliance

  • babel-types

    • throw a TypeError if identifier validation fails. (@dentrado)

  • babel-parser

    • fix: Exclude catch clause from let identifier error. (@gonzarodriguezt)

    • [parser] Exception to 8 and 9 in tagged template. (@pnowak)

    • Allow duplicate __proto__ keys in patterns, simple case (#6705). (@alejo90)

:rocket: New Feature

  • babel-generator, babel-helper-create-class-features-plugin, babel-parser, babel-plugin-transform-typescript, babel-preset-typescript, babel-types

  • babel-core, babel-parser, babel-preset-typescript

  • babel-core

    • Add support for .cjs config files. (@nicolo-ribaudo)

    • Add support for babel.config.json. (@devongovett)

    • feat: if code frame error is on a single line, highlight the whole path. (@SimenB)

  • babel-plugin-syntax-top-level-await, babel-preset-env

  • babel-helper-builder-react-jsx, babel-plugin-transform-react-jsx, babel-preset-react

    • [transform-react-jsx] Add useSpread option to transform JSX. (@ivandevp)

  • babel-generator, babel-parser, babel-plugin-proposal-decorators, babel-plugin-syntax-flow, babel-types

    • Flow enums parsing. (@gkz)

  • babel-plugin-transform-function-name, babel-plugin-transform-modules-umd, babel-preset-env

    • Changes UMD callsite to be more likely to pass in the intended object.. (@MicahZoltu)

  • babel-parser

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

    • add assertions signature for TypeScript. (@tanhauhau)

  • babel-cli, babel-register

  • babel-cli

:bug: Bug Fix

  • babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-function-sent, babel-preset-env

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

    • Don't throw when destructuring into a var named as an import. (@nicolo-ribaudo)

  • babel-plugin-transform-modules-systemjs

    • fix: remove ExportNamedDeclaration when the specifier is empty. (@JLHwung)

  • babel-parser

    • [TS] Parse calls with type args in optional chains. (@nicolo-ribaudo)

    • fixed missing errors on assignment pattern in object expression. (@vivek12345)

    • [parser] Parse only modifiers of actual methods. (@gonzarodriguezt)

  • babel-plugin-transform-typescript

    • [TS] Correctly transform computed strings and templates in enums. (@nicolo-ribaudo)

  • babel-core

    • Fix: inputSourceMap should work when it is an external file. (@JLHwung)

    • fix: remove filename annotation in buildCodeFrameError. (@JLHwung)

  • babel-plugin-proposal-decorators

    • [decorators] fix: support string literal properties. (@mwhitworth)

  • babel-helpers, babel-plugin-proposal-dynamic-import, babel-plugin-transform-modules-commonjs, babel-preset-env

    • fix: _interopRequireWildcard should only cache objects. (@samMeow)

  • babel-traverse

    • [traverse] Allow skipping nodes inserted with .replaceWith(). (@nicolo-ribaudo)

  • babel-preset-env

    • Inject core-js@3 imports in Program:exit instead of on post(). (@nicolo-ribaudo)

  • babel-generator

    • Fix generator missing parens around an arrow returning function type. (@existentialism)

  • babel-plugin-transform-async-to-generator, babel-preset-env, babel-traverse

:nail_care: Polish

  • babel-plugin-transform-classes, babel-plugin-transform-regenerator, babel-preset-env

    • [preset-env] Don't use async-to-generator when already using regenerator. (@nicolo-ribaudo)

  • babel-helpers, babel-plugin-transform-modules-commonjs, babel-preset-env

    • fix(babel‑helpers/interopRequireWildcard): Avoid double nullish check. (@ExE-Boss)

  • babel-register

    • fix: disable caching when babel could not read/write cache. (@JLHwung)

:house: Internal

  • babel-cli, babel-node

    • chore: remove output-file-sync dependency. (@JLHwung)

  • babel-register

    • chore: bump source-map-support to 0.5.14. (@JLHwung)

  • babel-helper-create-regexp-features-plugin, babel-plugin-proposal-unicode-property-regex, babel-plugin-transform-dotall-regex, babel-plugin-transform-named-capturing-groups-regex, babel-plugin-transform-unicode-regex, babel-preset-env

    • Merge multiple regex transform plugin. (@JLHwung)

  • babel-preset-env

    • chore: update web.immediate support fixtures. (@JLHwung)

  • babel-helper-module-imports

    • Use .find instead of .filter to get targetPath in ImportInjector. (@Andarist)

  • Other

  • babel-runtime

  • babel-helper-annotate-as-pure, babel-helper-bindify-decorators, babel-helper-builder-binary-assignment-operator-visitor, babel-helper-builder-react-jsx, babel-helper-call-delegate, babel-helper-define-map, babel-helper-explode-assignable-expression, babel-helper-explode-class, babel-helper-function-name, babel-helper-get-function-arity, babel-helper-hoist-variables, babel-helper-member-expression-to-functions, babel-helper-module-imports, babel-helper-module-transforms, babel-helper-optimise-call-expression, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-simple-access, babel-helper-split-export-declaration, babel-helper-wrap-function, babel-helpers, babel-template

:running_woman: Performance

  • babel-traverse