Packages

@babel/preset-env

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

Your version

7.12.11

15 Dec 2020Where it was published

7.29.14 is the newest release of 7.x.

In short

1 new5 fixed4 changed3 internal

Release note

Thanks @vitorveiga for your first PR!

:eyeglasses: Spec Compliance

  • babel-parser: Disallow non octal decimal escape before use strict (@JLHwung)

:bug: Bug Fix

  • babel-plugin-transform-block-scoping: fix: handle block-level function declaration (#10046) (@vitorveiga)

  • babel-helper-builder-react-jsx-experimental, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx: Lazily inject imports to the JSX runtime (@nicolo-ribaudo)

  • babel-helper-builder-react-jsx-experimental, babel-preset-react: Fixed issue with skipping over self & source generated by another instance (@Andarist)

  • babel-preset-env: Add js extension to preset-env generated polyfill imports (@JLHwung)

  • babel-helper-builder-react-jsx-experimental, babel-plugin-transform-react-jsx: Setup JSX runtime even if the file doesn't contain JSX (@nicolo-ribaudo)

  • babel-helper-builder-react-jsx-experimental, babel-plugin-transform-react-jsx-development, babel-preset-react: Fixed a regression for multiple __self & __source props with classic runtime (@Andarist)

:house: Internal

  • babel-types: Improve AST node definitions in @babel/types (@zxbodya)

  • Other

    • chore: always check yarn lock and dedupe during update (@JLHwung)

    • Avoid force trailing comma on test files (@JLHwung)

    • Run e2e tests also with BABEL_8_BREAKING (@nicolo-ribaudo)

  • babel-plugin-transform-react-display-name, babel-plugin-transform-react-jsx: Reorganize some JSX-related tests (@Andarist)

  • babel-standalone, babel-types: Move some build steps to gulp (@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.