Packages

@babel/preset-env

8.0.7 · 7 Oct 2026MIT57.2M / weekRepositoryHomepagenpmAtom feed

Your version

7.6.3

8 Oct 2019Where it was published

7.29.14 is the newest release of 7.x.

In short

4 new2 faster5 fixed4 changed1 internal

Release note

:eyeglasses: Spec Compliance

  • babel-parser: Disallow await inside async arrow params (@nicolo-ribaudo)

  • babel-parser: [parser] Disallow numeric separators in legacy octal like integers (@gonzarodriguezt)

:rocket: New Feature

  • babel-types: Add declarations for more of @babel/types exports (@Jessidhia)

:bug: Bug Fix

  • babel-plugin-transform-block-scoping: Do not remove let bindings even they are wrapped in closure (@JLHwung)

  • babel-parser: add scope to TSModuleDeclaration (@tanhauhau)

  • babel-parser: Do not allow member expressions to start async arrows (@nicolo-ribaudo)

  • babel-parser: [parser] Don't crash on comment after trailing comma after elision (@nicolo-ribaudo)

  • babel-plugin-transform-react-constant-elements, babel-traverse: Do not hoist jsx referencing a mutable binding (@nicolo-ribaudo)

  • babel-generator, babel-parser, babel-plugin-transform-block-scoping, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-plugin-transform-typescript: Flow: interface identifier should be declared in the scope (@JLHwung)

:nail_care: Polish

  • babel-core: assertNoDuplicates throw with more context (@hjdivad)

  • babel-core: Add filename to transform error (@JLHwung)

:house: Internal

  • Other

    • Use make -j for parallel build (@JLHwung)

    • perf: only apply lazy cjs module transform on cli and core (@JLHwung)

    • Enable optional chaining and nullish coalescing plugins (@nicolo-ribaudo)

  • babel-cli, babel-core, babel-generator, babel-helper-fixtures, babel-helper-transform-fixture-test-runner, babel-node, babel-plugin-transform-react-jsx-source, babel-plugin-transform-runtime, babel-preset-env, babel-preset-react: Add windows to travis (@nicolo-ribaudo)

:running_woman: Performance

  • babel-parser: perf: replace lookahead by lookaheadCharCode (@JLHwung)

  • Other

    • perf: only apply lazy cjs module transform on cli and core (@JLHwung)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.