- The bundled
@babel/core
dependency has been updated from requiring^7.16.0
to requiring7.25.7
(#36244). - The bundled
@babel/plugin-transform-react-jsx
dependency has been updated from requiring^7.16.0
to requiring7.25.7
(#36244). - The bundled
@babel/plugin-transform-runtime
dependency has been updated from requiring^7.16.0
to requiring7.25.7
(#36244). - The bundled
@babel/preset-env
dependency has been updated from requiring^7.16.0
to requiring7.25.7
(#36244). - The bundled
@babel/preset-typescript
dependency has been updated from requiring^7.16.0
to requiring7.25.7
(#36244). - The bundled
@babel/runtime
dependency has been updated from requiring^7.16.0
to requiring7.25.7
(#36244).
- Fix a bug in 8.8.1 due to missing files in the published package (#65481).
- Added
addPolyfillComments
option. When used, it will automatically add magic comments to mark files that needwp-polyfill
(#65292).
Note If you're using @wordpress/scripts for building JS scripts to target WordPress 6.5 or earlier, you should not upgrade to this version and continue using @wordpress/babel-preset-default@7.
- Use React's automatic runtime to transform JSX (#61692).
- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- The bundled
browserslist
dependency has been updated from requiring^4.21.9
to requiring^4.21.10
(#54657).
- Use
react
as the default scope variable for JSX pragma instead of@wordpress/element
.
- Enable the
bugfixes
option in@babel/preset-env
to remove unneeded transpilation (#50994).
- Exclude IE-only
setImmediate
/clearImmediate
from list of polyfills.
- Increase the minimum Node.js version to 14 (#43141).
- The bundled
@babel/core
dependency has been updated from requiring^7.13.19
to requiring^7.16.0
(#36244). - The bundled
@babel/plugin-transform-react-jsx
dependency has been updated from requiring^7.12.7
to requiring^7.16.0
(#36244). - The bundled
@babel/plugin-transform-runtime
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
(#36244). - The bundled
@babel/preset-env
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
(#36244). - The bundled
@babel/preset-typescript
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
(#36244). - The bundled
@babel/runtime
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
(#36244). - The bundled
browserslist
dependency has been updated from requiring^4.16.6
to requiring^4.17.6
(#36244). - The bundled
core-js
dependency has been updated from requiring^3.12.1
to requiring^3.19.1
(#36244).
- New
build/polyfill.js
(minified version –build/polyfill.min.js
) file is available that polyfills ECMAScript features missing in the browsers supported by the WordPress project. It's a drop-in replacement for the deprecated@babel/polyfill
package (#31279).
- Configure
@babel/preset-env
preset to respect a local Browserslist configuration.
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
- The bundled
@babel/core
dependency has been updated from requiring^7.12.9
to requiring^7.13.10
(#30018). - The bundled
@babel/plugin-transform-runtime
dependency has been updated from requiring^7.12.1
to requiring^7.13.10
(#30018). - The bundled
@babel/preset-env
dependency has been updated from requiring^7.12.7
to requiring^7.13.10
(#30018). - The bundled
@babel/preset-typescript
dependency has been updated from requiring^7.12.7
to requiring^7.13.10
(#30018). - The bundled
@babel/runtime
dependency has been updated from requiring^7.12.5
to requiring^7.13.10
(#30018).
- Added
@babel/preset-typescript
so that the preset can by default transpile TypeScript files, too.
- Increase the minimum Node.js version to 12 (#27934).
- The bundled
@babel/core
dependency has been updated from requiring^7.11.6
to requiring^7.12.9
. All other Babel plugins were updated to the latest version (see Highlights).
- Revert enabling the
shippedProposals
flag. That flag enables the use of stage-3 proposals, but the goal of this preset is to only support stage-4 features. #22083
- The bundled
@babel/core
dependency has been updated from requiring^7.9.0
to requiring^7.11.6
. All other Babel plugins were updated to the latest version (see Highlights: 7.11 and 7.10).
- The bundled
@babel/core
dependency has been updated from requiring^7.8.3
to requiring^7.9.0
. All other Babel plugins were updated to the latest version (see Highlights).
- The bundled
@babel/core
dependency has been updated from requiring^7.4.4
to requiring^7.8.3
. All other Babel plugins were updated to the latest version.@babel/preset-env
has now ESMAScript 2020 support enabled by default (see Highlights).
- Added missing
@wordpress/element
dependency which is used internally.
- Configure Babel to target your current version of Node as described in Jest docs.
- Added missing core-js dependency (#16259).
- Handle
<></>
JSX Fragments with@wordpress/element
Fragment
(#15120). - The bundled
@babel/core
dependency has been updated from requiring^7.2.2
to requiring^7.4.4
. Babel preset is now usingcore-js@3
instead ofcore-js@2
(see Migration Guide).
- Removed
babel-core
dependency acting as Babel 7 bridge (#13922. Ensure all references tobabel-core
are replaced with@babel/core
. - Preset updated to include
@wordpress/babel-plugin-import-jsx-pragma
plugin integration (#13540). It should no longer be explicitly included in your Babel config.
- The runtime transform no longer disables the
regenerator
option. This should resolve issues where a file generated using the preset would assume the presence of aregeneratorRuntime
object in the global scope. While this is not considered a breaking change, you may be mindful to consider that with transformed output now explicitly importing the runtime regenerator, bundle sizes may increase if you do not otherwise mitigate the additional import by either (a) overriding the option in your own Babel configuration extensions or (b) redefining the resolved value of@babel/runtime/regenerator
using a feature like Webpack'sexternals
option.
- The configured
@babel/preset-env
preset will no longer passuseBuiltIns: 'usage'
as an option. It is therefore expected that a polyfill serve in its place, if necessary.
- Plugin updated to work with the stable version of Babel 7 (#9171).
- Updated code to work with Babel 7 (#7832)
- Moved
@WordPress/packages
repository to@WordPress/gutenberg
(#7805)
- Added support for async generator functions (#126)
- Fix: Standardized
package.json
format (#119)