Packages

@babel/preset-env

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

Your version

7.9.5

7 Apr 2020Where it was published

7.29.14 is the newest release of 7.x.

In short

14 fixed2 changed2 internal

Release note

:bug: Bug Fix

  • babel-plugin-proposal-object-rest-spread, babel-plugin-transform-parameters: Correctly transpile when default parameter initializer references binding in rest pattern (@vedantroy)

  • babel-traverse: Fixed generateUid creating clashing ids after scope re-crawling (@Andarist)

  • babel-traverse: Fixed issue with programPath.scope.references not being registered back correctly after scope re-crawling (@Andarist)

  • babel-plugin-transform-destructuring: fix Incorrect destructuring compilation of for (let [[x] = [1]] =… (@Zzzen)

  • babel-preset-env: Fixed useBuiltIns and modules validation when using 'false' as option (@JMarkoski)

  • babel-plugin-transform-classes: Fix createSuper in Babel <7.5.5 (@nicolo-ribaudo)

  • babel-helper-function-name, babel-plugin-transform-function-name: fix: do not add function name when parent's operator is not = (@JLHwung)

  • babel-helper-builder-react-jsx-experimental, babel-plugin-transform-react-jsx: fix auto import error with whitespace JSXText (@lunaruan)

  • babel-types: fix: allow logical assignment operators in AssignmentExpression (@JLHwung)

  • babel-plugin-transform-parameters: Set correct async/generator in IIFE for params (@nicolo-ribaudo)

  • babel-helper-create-class-features-plugin: Ignore abstract methods when decorating class (@oliverdunk)

:nail_care: Polish

  • babel-plugin-transform-parameters: Don't check type annotations when deciding params scope (@nicolo-ribaudo)

  • babel-traverse: Simplify scope.hasReferences implementation (@Andarist)

  • babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-parameters, babel-plugin-transform-runtime, babel-plugin-transform-typescript, babel-preset-env: Don't call createSuper in loose mode (it was unused) (@nicolo-ribaudo)

  • babel-generator: polish: align optional chain whitespace behavior to their sibiling (@JLHwung)

:house: Internal

  • Fix e2e publish test when branching from an older version (@nicolo-ribaudo)

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.