Skip to content

Commit

Permalink
Remove es-module-shims and wp-importmap-polyfill (#65210)
Browse files Browse the repository at this point in the history
These are no longer used in Core or Gutenberg.

See https://core.trac.wordpress.org/ticket/60970.

This only seems to have existed in the 6.5 compat directory, removed in #64096.

---

Co-authored-by: sirreal <[email protected]>
Co-authored-by: swissspidy <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent dd34d48 commit 07c7821
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
13 changes: 1 addition & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 2 additions & 14 deletions tools/webpack/interactivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
const { join } = require( 'path' );
const CopyWebpackPlugin = require( 'copy-webpack-plugin' );

/**
* WordPress dependencies
*/
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 07c7821

Please sign in to comment.