We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 450a210 + 3d42ecd commit be38e1fCopy full SHA for be38e1f
2 files changed
babel-preset.js
@@ -2,10 +2,10 @@ module.exports = ( api ) => {
2
api.cache.forever();
3
4
return {
5
- presets: [ '@wordpress/default' ],
+ presets: [ '@wordpress/babel-preset-default' ],
6
plugins: [
7
'@babel/plugin-proposal-class-properties',
8
- [ 'transform-react-jsx', {
+ [ '@babel/plugin-transform-react-jsx', {
9
pragma: 'wp.element.createElement',
10
} ],
11
],
package.json
@@ -48,7 +48,7 @@
48
"@babel/plugin-proposal-class-properties": "^7.18.6",
49
"@wordpress/babel-preset-default": "^8.30.0",
50
"babel-loader": "^10.0.0",
51
- "babel-plugin-transform-react-jsx": "^6.24.1",
+ "@babel/plugin-transform-react-jsx": "^7.0.0",
52
"bell-on-bundler-error-plugin": "^3.0.0",
53
"block-editor-hmr": "^0.7.0",
54
"chalk": "^5.6.0",
0 commit comments