@plaudit/webpack-extensions 2.66.5 → 2.66.6
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.
|
@@ -156,7 +156,9 @@ class PlainEntrypointsStyleBlockJSONPlugin extends AbstractBiPhasicGroupAndEntry
|
|
|
156
156
|
scriptModuleHandles: Object.fromEntries(PlainEntrypointsStyleBlockJSONPlugin
|
|
157
157
|
.convertToScriptHandles(handleData.filter(hd => !(0, shared_1.isStyleField)(hd.entrypointField) && (0, shared_1.isScriptModuleField)(hd.entrypointField)))),
|
|
158
158
|
styleHandles: Object.fromEntries(handleData.filter(hd => (0, shared_1.isStyleField)(hd.entrypointField))
|
|
159
|
-
.map(hd =>
|
|
159
|
+
.map(hd => {
|
|
160
|
+
return [hd.handle, { src: hd.outputPath, rest: [hd.originalValue !== undefined ? hd.assetData.dependencies : [], hd.assetData.version] }];
|
|
161
|
+
}))
|
|
160
162
|
},
|
|
161
163
|
...Object.fromEntries(Object.entries(blockData).sort((a, b) => a[0].localeCompare(b[0])))
|
|
162
164
|
};
|
|
@@ -167,8 +169,8 @@ class PlainEntrypointsStyleBlockJSONPlugin extends AbstractBiPhasicGroupAndEntry
|
|
|
167
169
|
}
|
|
168
170
|
static convertToScriptHandles(handleData) {
|
|
169
171
|
return handleData.map(hd => {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
const deps = hd.originalValue !== undefined ? hd.assetData.dependencies : [];
|
|
173
|
+
return [hd.handle, { src: hd.outputPath, rest: hd.entrypointField.startsWith("editor") ? [deps, hd.assetData.version] : [deps, hd.assetData.version, { strategy: "defer" }] }];
|
|
172
174
|
});
|
|
173
175
|
}
|
|
174
176
|
static doFileOrHandleReplacements(compilation, blockJson, workableBlockEntrypointsInfo, getter) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/webpack-extensions",
|
|
3
|
-
"version": "2.66.
|
|
3
|
+
"version": "2.66.6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"files": [
|
|
6
6
|
"/build"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@plaudit/gutenberg-api-extensions": "^2.77.0",
|
|
20
20
|
"@types/browser-sync-webpack-plugin": "^2.2.5",
|
|
21
|
-
"@types/node": "^24.5.
|
|
21
|
+
"@types/node": "^24.5.2",
|
|
22
22
|
"@types/postcss-functions": "^4.0.4",
|
|
23
23
|
"@types/tapable": "^2.2.7",
|
|
24
24
|
"@types/webpack": "^5.28.5",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-dom": "^18.3.1",
|
|
65
65
|
"webpack": "^5.101.3",
|
|
66
66
|
"webpack-remove-empty-scripts": "^1.1.1",
|
|
67
|
-
"xml-formatter": "^3.6.
|
|
67
|
+
"xml-formatter": "^3.6.7"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": ">=20"
|