Packages

@babel/preset-env

8.0.7 · 7 Oct 2026MIT56.8M / weekRepositoryHomepagenpmAtom feed

Your version

7.25.0

26 Jul 2024Where it was published

7.29.14 is the newest release of 7.x.

In short

10 new1 faster3 fixed7 changed

Release note

Thanks @davidtaylorhq and @slatereax for your first PR!

You can find the release blog post with some highlights at babeljs.io/blog/2024/07/26/7.25.0.

:eyeglasses: Spec Compliance

  • babel-helpers, babel-plugin-proposal-explicit-resource-management, babel-runtime-corejs3: await using normative updates (@JLHwung)

  • babel-plugin-transform-typescript: Ensure enum members syntactically determinable to be strings do not get reverse mappings (@liuxingbaoyu)

:rocket: New Feature

  • babel-helper-create-class-features-plugin, babel-helper-function-name, babel-helper-plugin-utils, babel-helper-wrap-function, babel-plugin-bugfix-safari-class-field-initializer-scope, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-transform-classes, babel-plugin-transform-function-name, babel-preset-env, babel-traverse, babel-types: Move ensureFunctionName to NodePath.prototype (@nicolo-ribaudo)

  • babel-helper-hoist-variables, babel-helper-plugin-utils, babel-plugin-proposal-async-do-expressions, babel-plugin-transform-modules-systemjs, babel-traverse: Move hoistVariables to Scope.prototype (@nicolo-ribaudo)

  • babel-helper-create-class-features-plugin, babel-helper-module-transforms, babel-helper-plugin-utils, babel-helper-split-export-declaration, babel-plugin-transform-classes, babel-traverse, babel-types: Move splitExportDeclaration to NodePath.prototype (@nicolo-ribaudo)

  • babel-helper-create-class-features-plugin, babel-helper-environment-visitor, babel-helper-module-transforms, babel-helper-plugin-utils, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-plugin-bugfix-firefox-class-in-computed-class-key, babel-plugin-bugfix-v8-static-class-fields-redefine-readonly, babel-plugin-transform-async-generator-functions, babel-plugin-transform-classes, babel-traverse: Move environment-visitor helper into @babel/traverse (@nicolo-ribaudo)

  • babel-core, babel-parser: Expose wether a module has TLA or not as .extra.async (@nicolo-ribaudo)

  • babel-compat-data, babel-plugin-bugfix-safari-class-field-initializer-scope, babel-preset-env: Introduce bugfix-safari-class-field-initializer-scope (@davidtaylorhq)

  • babel-plugin-transform-block-scoping, babel-traverse, babel-types: Add NodePath#getAssignmentIdentifiers (@JLHwung)

  • babel-helper-import-to-platform-api, babel-plugin-proposal-json-modules: Add uncheckedRequire option for JSON imports to CJS (@nicolo-ribaudo)

  • babel-helper-transform-fixture-test-runner, babel-node: Allow using custom config in babel-node --eval (@slatereax)

  • babel-compat-data, babel-helper-create-regexp-features-plugin, babel-plugin-proposal-duplicate-named-capturing-groups-regex, babel-plugin-transform-duplicate-named-capturing-groups-regex, babel-preset-env, babel-standalone: Add duplicate-named-capturing-groups-regex to preset-env (@JLHwung)

:bug: Bug Fix

  • babel-generator: Print parens around as expressions on the LHS (@nicolo-ribaudo)

  • babel-template, babel-types: fix: Props are lost when the template replaces the node (@liuxingbaoyu)

:house: Internal

  • Other

  • babel-generator: Simplify the printing logic for ( before ambiguous tokens (@nicolo-ribaudo)

  • babel-helper-function-name, babel-plugin-transform-arrow-functions, babel-plugin-transform-function-name, babel-preset-env, babel-traverse: Simplify helper-function-name logic (@nicolo-ribaudo)

:running_woman: Performance

  • babel-parser, babel-plugin-proposal-pipeline-operator: Some minor parser performance improvements for ts (@liuxingbaoyu)

:microscope: Output optimization

  • babel-plugin-transform-classes: Reduce redundant assertThisInitialized (@liuxingbaoyu)

  • babel-helper-create-class-features-plugin, babel-helper-replace-supers, babel-helpers, babel-plugin-proposal-decorators, babel-plugin-transform-class-properties, babel-plugin-transform-classes, babel-plugin-transform-exponentiation-operator, babel-plugin-transform-object-super, babel-plugin-transform-private-methods, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime: Improve super.x output (@liuxingbaoyu)

  • babel-plugin-transform-class-properties, babel-plugin-transform-classes: Simplify output for anonymous classes with no methods (@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.