@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 +1 -1
- package/lib/index.js +1 -1
- package/lib/util.js +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -276,7 +276,7 @@ function requestToExternalModule( request ) {
|
|
|
276
276
|
return 'myModule';
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
|
|
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,
|
|
296
|
+
.map( ( id ) => ( { id, import: 'dynamic' } ) ),
|
|
297
297
|
],
|
|
298
298
|
version: contentHash,
|
|
299
299
|
};
|
package/lib/util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/dependency-extraction-webpack-plugin",
|
|
3
|
-
"version": "5.1
|
|
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": "
|
|
40
|
+
"gitHead": "730beb7fd33d3382d6032c3f33e451625a0fcf36"
|
|
41
41
|
}
|