-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Babel Preset: Update Babel packages to 7.16 version #36244
Conversation
Size Change: +6.83 kB (+1%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
4e7706e
to
5e60159
Compare
@andrewserong and @adamziel - it would be great to land this PR as part of the Gutenberg 11.9 release so we propagate all the changes related to Babel to WordPress core. We can cherry-pick that later if you don't feel confident landing it today. The changes impact only the runtime code that Babel uses with all WordPress packages. |
Thanks for the ping @gziolo, the RC has already gone out so this will need to be cherry-picked into the release once it lands. Will that be an issue with all the I've added this PR to the tracking issue for PRs that will need to be cherry picked for 11.9 in #36274 |
We're close to releasing GB 11.9, so I've updated the milestone on this PR to GB 12.0 and added the Backport to WP Beta/RC label. Once this lands in GB 12.0, I believe it should still be able to be cherry picked into WP 5.9? |
Gutenberg 11.9 is out so let’s give it a try. I don’t expect any issues since there were no CI issues. |
This modification is required due to the update of Babel packages to 7.16 version in Gutenberg (PR reference: WordPress/gutenberg#36244).
This modification is required due to the update of Babel packages to 7.16 version in Gutenberg (PR reference: WordPress/gutenberg#36244).
* Babel Preset: Update Babel packages to 7.16 version * Docs: Include changelog entries for Babel upgrade
This avoids an issue with the babel update from WordPress/gutenberg#36244 where running `wp-scripts lint-js` causes an error for every file, "Parsing error: No Babel config file detected."
Description
The announcement post from Babel for 7.16.0 release:
https://babeljs.io/blog/2021/10/29/7.16.0.html
This PR contains mostly updates to packages that Babel preset uses. It also includes some enforced changes to the ESLint presets that use now
@babel/eslint-parser
instead of the deprecatedbabel-eslint
.Changes included
@wordpress/babel-preset-default
@babel/core
dependency has been updated from requiring^7.13.19
to requiring^7.16.0
.@babel/plugin-transform-react-jsx
dependency has been updated from requiring^7.12.7
to requiring `^7.16.0@babel/plugin-transform-runtime
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
.@babel/preset-env
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
.@babel/preset-typescript
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
.@babel/runtime
dependency has been updated from requiring^7.13.10
to requiring^7.16.0
.browserslist
dependency has been updated from requiring^4.16.6
to requiring^4.17.6
.core-js
dependency has been updated from requiring^3.12.1
to requiring^3.19.1
.@wordpress/eslint-plugin
babel-eslint
dependency with@babel/eslint-parser
.eslint-plugin-import
dependency has been updated from requiring^2.23.4
to requiring^2.25.2
.@wordpress/scripts
browserslist
dependency has been updated from requiring^4.16.6
to requiring^4.17.6
.@wordpress/eslint-plugin
.How has this been tested?
I executed the following commands locally:
npm run build
npm run dev
npm run lint-js
npm run test-unit
npm run test-e2e
npm run storybook:build
I also tested Create Block integration with
@wordpress/scripts
:./bin/test-create-block.sh
Types of changes
Update of the Babel packages.
Checklist:
*.native.js
files for terms that need renaming or removal).