@wordpress/dependency-extraction-webpack-plugin 5.1.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -276,7 +276,7 @@ function requestToExternalModule( request ) {
276
276
  return 'myModule';
277
277
  }
278
278
 
279
- // If the script module ID in source is the same as the external script module, `true` can be returned.
279
+ // If the script module ID in source is the same as the external script module, `true` can be returned.
280
280
  return request === 'external-module-id-no-change-required';
281
281
  }
282
282
 
package/lib/index.js CHANGED
@@ -293,7 +293,7 @@ class DependencyExtractionWebpackPlugin {
293
293
  ...Array.from( chunkStaticDeps ).sort(),
294
294
  ...Array.from( chunkDynamicDeps )
295
295
  .sort()
296
- .map( ( id ) => ( { id, type: 'dynamic' } ) ),
296
+ .map( ( id ) => ( { id, import: 'dynamic' } ) ),
297
297
  ],
298
298
  version: contentHash,
299
299
  };
package/lib/util.js CHANGED
@@ -1,4 +1,8 @@
1
1
  const WORDPRESS_NAMESPACE = '@wordpress/';
2
+
3
+ // !!
4
+ // This list must be kept in sync with the same list in tools/webpack/packages.js
5
+ // !!
2
6
  const BUNDLED_PACKAGES = [
3
7
  '@wordpress/dataviews',
4
8
  '@wordpress/icons',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dependency-extraction-webpack-plugin",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "description": "Extract WordPress script dependencies from webpack bundles.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "45de2cb4212fed7f2763e95f10300d1ff9d0ec08"
40
+ "gitHead": "730beb7fd33d3382d6032c3f33e451625a0fcf36"
41
41
  }