Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2 (https://github.com/woocommerce/woocommerce-admin/pull/7202)
* Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2 * Also update other dependencies dropping IE11 support. * Update data dep in data package. * Add back regen runtime. * Add regenerator-runtime dependency for setting up jest tests Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
This commit is contained in:
parent
18479c66e5
commit
d9daed0a4f
|
@ -23,7 +23,6 @@ const babelConfigs = {
|
|||
main: Object.assign( {}, babelDefaultConfig, {
|
||||
plugins,
|
||||
presets: [
|
||||
[ '@babel/preset-typescript' ],
|
||||
...map( babelDefaultConfig.presets, ( preset ) =>
|
||||
overrideOptions( preset, '@babel/preset-env', {
|
||||
modules: 'commonjs',
|
||||
|
@ -40,7 +39,6 @@ const babelConfigs = {
|
|||
} )
|
||||
),
|
||||
presets: [
|
||||
[ '@babel/preset-typescript' ],
|
||||
...map( babelDefaultConfig.presets, ( preset ) =>
|
||||
overrideOptions( preset, '@babel/preset-env', {
|
||||
modules: false,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -92,9 +92,9 @@
|
|||
"@wordpress/api-fetch": "2.2.8",
|
||||
"@wordpress/base-styles": "3.3.0",
|
||||
"@wordpress/components": "11.1.3",
|
||||
"@wordpress/core-data": "2.25.0",
|
||||
"@wordpress/data": "4.27.3",
|
||||
"@wordpress/data-controls": "1.20.1",
|
||||
"@wordpress/core-data": "3.0.0",
|
||||
"@wordpress/data": "5.0.0",
|
||||
"@wordpress/data-controls": "2.0.0",
|
||||
"@wordpress/date": "3.13.0",
|
||||
"@wordpress/dom": "2.16.0",
|
||||
"@wordpress/element": "2.19.0",
|
||||
|
@ -130,7 +130,7 @@
|
|||
"@babel/cli": "7.13.16",
|
||||
"@babel/core": "7.14.0",
|
||||
"@babel/plugin-proposal-class-properties": "7.13.0",
|
||||
"@babel/plugin-transform-async-to-generator": "7.13.0",
|
||||
"@babel/plugin-transform-async-to-generator": "^7.14.5",
|
||||
"@babel/plugin-transform-react-jsx": "7.13.12",
|
||||
"@babel/preset-env": "7.14.1",
|
||||
"@babel/preset-typescript": "7.13.0",
|
||||
|
@ -174,10 +174,10 @@
|
|||
"@woocommerce/navigation": "file:packages/navigation",
|
||||
"@woocommerce/notices": "file:packages/notices",
|
||||
"@woocommerce/number": "file:packages/number",
|
||||
"@woocommerce/tracks": "file:packages/tracks",
|
||||
"@woocommerce/onboarding": "file:packages/onboarding",
|
||||
"@woocommerce/tracks": "file:packages/tracks",
|
||||
"@wordpress/babel-plugin-makepot": "2.1.3",
|
||||
"@wordpress/babel-preset-default": "5.0.1",
|
||||
"@wordpress/babel-preset-default": "^6.2.0",
|
||||
"@wordpress/browserslist-config": "4.0.1",
|
||||
"@wordpress/custom-templated-path-webpack-plugin": "1.7.0",
|
||||
"@wordpress/e2e-test-utils": "4.16.1",
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"dependencies": {
|
||||
"@woocommerce/date": "file:../date",
|
||||
"@woocommerce/navigation": "file:../navigation",
|
||||
"@wordpress/core-data": "2.25.0",
|
||||
"@wordpress/core-data": "3.0.0",
|
||||
"@wordpress/i18n": "3.17.0",
|
||||
"md5": "^2.3.0",
|
||||
"rememo": "^3.0.0"
|
||||
|
@ -32,6 +32,6 @@
|
|||
"access": "public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@wordpress/core-data": "^2.24.2"
|
||||
"@wordpress/core-data": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
*/
|
||||
import { setLocaleData } from '@wordpress/i18n';
|
||||
import { registerStore } from '@wordpress/data';
|
||||
import 'regenerator-runtime/runtime';
|
||||
|
||||
// Set up `wp.*` aliases. Doing this because any tests importing wp stuff will
|
||||
// likely run into this.
|
||||
|
|
Loading…
Reference in New Issue