diff --git a/package-lock.json b/package-lock.json index 807fa042d2bd94..b9e116f15388be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,8 +79,7 @@ "@wordpress/viewport": "file:packages/viewport", "@wordpress/warning": "file:packages/warning", "@wordpress/widgets": "file:packages/widgets", - "@wordpress/wordcount": "file:packages/wordcount", - "es-module-shims": "^1.8.2" + "@wordpress/wordcount": "file:packages/wordcount" }, "devDependencies": { "@actions/core": "1.9.1", @@ -24843,11 +24842,6 @@ "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", "dev": true }, - "node_modules/es-module-shims": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/es-module-shims/-/es-module-shims-1.8.2.tgz", - "integrity": "sha512-7vIYVzpOhXtpc3Yn03itB+GSgVZFW7oL4kdydA+iL+IEi7HiSLBUxM05QFw4SxTl6e++pMpGqZPo2+vdNs3TbA==" - }, "node_modules/es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", @@ -75264,11 +75258,6 @@ "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", "dev": true }, - "es-module-shims": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/es-module-shims/-/es-module-shims-1.8.2.tgz", - "integrity": "sha512-7vIYVzpOhXtpc3Yn03itB+GSgVZFW7oL4kdydA+iL+IEi7HiSLBUxM05QFw4SxTl6e++pMpGqZPo2+vdNs3TbA==" - }, "es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", diff --git a/package.json b/package.json index 977929555f7dc6..22cdf2ce7acc88 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,7 @@ "@wordpress/viewport": "file:packages/viewport", "@wordpress/warning": "file:packages/warning", "@wordpress/widgets": "file:packages/widgets", - "@wordpress/wordcount": "file:packages/wordcount", - "es-module-shims": "^1.8.2" + "@wordpress/wordcount": "file:packages/wordcount" }, "devDependencies": { "@actions/core": "1.9.1", diff --git a/tools/webpack/interactivity.js b/tools/webpack/interactivity.js index cbde31171fe26e..7f5c7f64a09d7f 100644 --- a/tools/webpack/interactivity.js +++ b/tools/webpack/interactivity.js @@ -2,7 +2,7 @@ * External dependencies */ const { join } = require( 'path' ); -const CopyWebpackPlugin = require( 'copy-webpack-plugin' ); + /** * WordPress dependencies */ @@ -66,19 +66,7 @@ module.exports = { }, ], }, - plugins: [ - ...plugins, - // TODO: Move it to a different Webpack file. - new CopyWebpackPlugin( { - patterns: [ - { - from: './node_modules/es-module-shims/dist/es-module-shims.wasm.js', - to: './build/modules/importmap-polyfill.min.js', - }, - ], - } ), - new DependencyExtractionWebpackPlugin(), - ], + plugins: [ ...plugins, new DependencyExtractionWebpackPlugin() ], watchOptions: { ignored: [ '**/node_modules' ], aggregateTimeout: 500,