Packages

@babel/preset-env

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

Your version

7.9.6

29 Apr 2020Where it was published

7.29.14 is the newest release of 7.x.

In short

1 breaking2 new1 faster17 fixed9 changed3 internal

  • Breaking

    babel-traverse, babel-types: Adding createFlowUnionType in place of createUnionTypeAnnotation without breaking change (@Beraliv)

Release note

:eyeglasses: Spec Compliance

  • babel-plugin-proposal-object-rest-spread: Fix evaluation order with object spread, 2 (@jridgewell)

  • babel-plugin-proposal-object-rest-spread: Fix evaluation order with object spread (@Zzzen)

  • babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes: Super property eval order (@jridgewell)

:rocket: New Feature

  • Breaking

    babel-traverse, babel-types: Adding createFlowUnionType in place of createUnionTypeAnnotation without breaking change (@Beraliv)

:bug: Bug Fix

  • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-transform-modules-commonjs, babel-preset-env: Fix helpers.unsupportedIterableToArray for Map and Set (@ChintanAcharya)

  • babel-traverse: handle objectMethod in scope.isPure (@Zzzen)

  • babel-plugin-transform-typescript: Throw error for TypeScript declare const enum (@dosentmatter)

  • babel-compat-data: chore: add node.js 14 support data (@JLHwung)

  • babel-parser: Set exprAllowed to false for star token (@existentialism)

  • babel-parser: fix: disallow expression after binding identifier of (@JLHwung)

  • babel-parser: fix: report missing plugins on type exports (@JLHwung)

  • babel-parser: fix: do not push new token context when function is following dot/questionDot (@JLHwung)

  • babel-helper-create-class-features-plugin, babel-plugin-proposal-class-properties: Fix redeclaring private in nested class's superClass (@jridgewell)

  • babel-helper-create-class-features-plugin, babel-plugin-proposal-class-properties: Fix nested classes reference private fields (@jridgewell)

  • babel-traverse, babel-types: transform-spread: create TS types (not Flow) when using TS (@Beraliv)

  • babel-standalone: chore: update stage preset in babel-standalone (@JLHwung)

  • babel-plugin-transform-runtime: fix: replace backslashes with forward slashes from resolved path for … (@johannes-z)

  • babel-generator, babel-plugin-proposal-decorators, babel-plugin-proposal-pipeline-operator, babel-plugin-proposal-throw-expressions, babel-plugin-transform-async-to-generator: Unify parens printing for postfix-like expressions (@nicolo-ribaudo)

:nail_care: Polish

  • babel-parser: Add some parser missing plugins errors (@JLHwung)

  • babel-parser: fix: report missing plugins on type exports (@JLHwung)

  • babel-core: polish: recommend preset for js extensions (@JLHwung)

  • babel-core: fix: add classPrivateProperties and classPrivateMethods to missing plugin helper (@JLHwung)

:memo: Documentation

  • babel-parser: docs: update AST spec (@JLHwung)

  • Other

    • Add note about experimental nature of @babel/eslint-* packages (@kaicataldo)

    • contributing.md updates [skip ci] (@hzoo)

:house: Internal

  • babel-compat-data, babel-preset-env: Update compat table script (@nicolo-ribaudo)

  • babel-compat-data, babel-preset-env: Update compat data (@JLHwung)

  • Other

    • Canary build of packages using CodeSandbox CI + mini repl (@hzoo)

    • chore: test against node.js 14 (@JLHwung)

    • remove < x.y.z engines specification (@JLHwung)

    • chore: remove included proposal plugins (@JLHwung)

    • chore: upgrade @babel/* deps (@JLHwung)

  • babel-node: refactor(babel-node): Refactor babel-node tests configuration (@arku)

:running_woman: Performance

  • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-function-name, babel-plugin-transform-parameters, babel-plugin-transform-react-jsx, babel-plugin-transform-runtime, babel-plugin-transform-typescript, babel-preset-env: Speed up the createSuper helper (@jridgewell)

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.