Babel and Autoprefixer updates (https://github.com/woocommerce/woocommerce-blocks/pull/10341)
This commit is contained in:
parent
e09962d65a
commit
025a280b33
|
@ -98,6 +98,10 @@ const getCoreConfig = ( options = {} ) => {
|
|||
loader: 'babel-loader?cacheDirectory',
|
||||
options: {
|
||||
presets: [ '@wordpress/babel-preset-default' ],
|
||||
plugins: [
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -211,6 +215,8 @@ const getMainConfig = ( options = {} ) => {
|
|||
'babel-plugin-transform-react-remove-prop-types'
|
||||
)
|
||||
: false,
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
].filter( Boolean ),
|
||||
},
|
||||
},
|
||||
|
@ -357,6 +363,8 @@ const getFrontConfig = ( options = {} ) => {
|
|||
'babel-plugin-transform-react-remove-prop-types'
|
||||
)
|
||||
: false,
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
].filter( Boolean ),
|
||||
},
|
||||
},
|
||||
|
@ -458,6 +466,8 @@ const getPaymentsConfig = ( options = {} ) => {
|
|||
'babel-plugin-transform-react-remove-prop-types'
|
||||
)
|
||||
: false,
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
].filter( Boolean ),
|
||||
},
|
||||
},
|
||||
|
@ -560,6 +570,8 @@ const getExtensionsConfig = ( options = {} ) => {
|
|||
'babel-plugin-transform-react-remove-prop-types'
|
||||
)
|
||||
: false,
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
].filter( Boolean ),
|
||||
},
|
||||
},
|
||||
|
@ -677,6 +689,8 @@ const getStylingConfig = ( options = {} ) => {
|
|||
'babel-plugin-transform-react-remove-prop-types'
|
||||
)
|
||||
: false,
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
].filter( Boolean ),
|
||||
},
|
||||
},
|
||||
|
@ -806,6 +820,7 @@ const getInteractivityAPIConfig = ( options = {} ) => {
|
|||
// Required until Webpack is updated to ^5.0.0
|
||||
plugins: [
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -99,13 +99,13 @@
|
|||
"@actions/core": "1.10.0",
|
||||
"@actions/github": "5.1.1",
|
||||
"@automattic/color-studio": "2.5.0",
|
||||
"@babel/cli": "7.18.9",
|
||||
"@babel/core": "7.18.9",
|
||||
"@babel/cli": "7.22.9",
|
||||
"@babel/core": "7.22.9",
|
||||
"@babel/plugin-proposal-class-properties": "7.18.6",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.20.7",
|
||||
"@babel/plugin-syntax-jsx": "7.18.6",
|
||||
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
||||
"@babel/plugin-syntax-jsx": "7.22.5",
|
||||
"@babel/polyfill": "7.12.1",
|
||||
"@babel/preset-typescript": "7.18.6",
|
||||
"@babel/preset-typescript": "7.22.5",
|
||||
"@bartekbp/typescript-checkstyle": "5.0.0",
|
||||
"@octokit/action": "5.0.2",
|
||||
"@octokit/graphql": "5.0.5",
|
||||
|
@ -151,11 +151,11 @@
|
|||
"@woocommerce/eslint-plugin": "2.2.0",
|
||||
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
||||
"@wordpress/api-fetch": "6.21.0",
|
||||
"@wordpress/babel-preset-default": "7.16.0",
|
||||
"@wordpress/babel-preset-default": "7.22.0",
|
||||
"@wordpress/base-styles": "4.14.0",
|
||||
"@wordpress/block-editor": "8.2.0",
|
||||
"@wordpress/blocks": "11.1.5",
|
||||
"@wordpress/browserslist-config": "5.14.0",
|
||||
"@wordpress/browserslist-config": "5.21.0",
|
||||
"@wordpress/components": "19.1.5",
|
||||
"@wordpress/data-controls": "2.2.7",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "3.2.1",
|
||||
|
@ -169,8 +169,8 @@
|
|||
"@wordpress/i18n": "4.24.0",
|
||||
"@wordpress/is-shallow-equal": "4.24.0",
|
||||
"@wordpress/prettier-config": "1.4.0",
|
||||
"@wordpress/scripts": "22.3.0",
|
||||
"autoprefixer": "10.4.7",
|
||||
"@wordpress/scripts": "24.6.0",
|
||||
"autoprefixer": "10.4.14",
|
||||
"axios": "0.27.2",
|
||||
"babel-plugin-explicit-exports-references": "^1.0.2",
|
||||
"babel-plugin-react-docgen": "4.2.1",
|
||||
|
|
Loading…
Reference in New Issue