From 462c690d613e1f5af3be9459b2aac8409a4587dc Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Wed, 16 Aug 2023 08:15:03 +0800 Subject: [PATCH] Remove redundant deps on e2e in wc-admin (#39746) --- plugins/woocommerce-admin/babel.config.js | 14 ++++++++------ plugins/woocommerce-admin/package.json | 2 -- .../changelog/dev-remove-e2e-dep-in-wc-admin | 4 ++++ pnpm-lock.yaml | 8 +------- 4 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 plugins/woocommerce/changelog/dev-remove-e2e-dep-in-wc-admin diff --git a/plugins/woocommerce-admin/babel.config.js b/plugins/woocommerce-admin/babel.config.js index d1987422307..e46e1e4184b 100644 --- a/plugins/woocommerce-admin/babel.config.js +++ b/plugins/woocommerce-admin/babel.config.js @@ -1,14 +1,16 @@ -const { - babelConfig: e2eBabelConfig, -} = require( '@woocommerce/e2e-environment' ); - module.exports = function ( api ) { api.cache( true ); return { - ...e2eBabelConfig, presets: [ - ...e2eBabelConfig.presets, + [ + '@babel/preset-env', + { + targets: { + node: 'current', + }, + }, + ], '@babel/preset-typescript', '@wordpress/babel-preset-default', ], diff --git a/plugins/woocommerce-admin/package.json b/plugins/woocommerce-admin/package.json index a1315f7c17b..c5a8ed63596 100644 --- a/plugins/woocommerce-admin/package.json +++ b/plugins/woocommerce-admin/package.json @@ -55,8 +55,6 @@ "@react-spring/web": "^9.4.3", "@types/wordpress__blocks": "^11.0.7", "@woocommerce/api": "^0.2.0", - "@woocommerce/e2e-environment": "^0.3.0", - "@woocommerce/e2e-utils": "^0.2.0", "@wordpress/a11y": "wp-6.0", "@wordpress/api-fetch": "wp-6.0", "@wordpress/base-styles": "wp-6.0", diff --git a/plugins/woocommerce/changelog/dev-remove-e2e-dep-in-wc-admin b/plugins/woocommerce/changelog/dev-remove-e2e-dep-in-wc-admin new file mode 100644 index 00000000000..3e3abb26860 --- /dev/null +++ b/plugins/woocommerce/changelog/dev-remove-e2e-dep-in-wc-admin @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Remove dependency on e2e-environment and e2e-utils in wc-admin. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f726cc85206..c3ecf9654f4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2711,12 +2711,6 @@ importers: '@woocommerce/api': specifier: ^0.2.0 version: 0.2.0 - '@woocommerce/e2e-environment': - specifier: ^0.3.0 - version: link:../../packages/js/e2e-environment - '@woocommerce/e2e-utils': - specifier: ^0.2.0 - version: link:../../packages/js/e2e-utils '@wordpress/a11y': specifier: wp-6.0 version: 3.6.1 @@ -41123,7 +41117,7 @@ packages: sass: 1.60.0 schema-utils: 3.1.1 semver: 7.5.0 - webpack: 5.76.3(webpack-cli@4.9.2) + webpack: 5.76.3(webpack-cli@3.3.12) dev: true /sass-loader@12.6.0(sass@1.60.0)(webpack@5.76.3):