@plaudit/webpack-extensions 2.66.5 → 2.67.0

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 => [hd.handle, { src: hd.outputPath, rest: [hd.assetData.dependencies, hd.assetData.version] }]))
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
- return [hd.handle, { src: hd.outputPath, rest: hd.entrypointField.startsWith("editor")
171
- ? [hd.assetData.dependencies, hd.assetData.version] : [hd.assetData.dependencies, hd.assetData.version, { strategy: "defer" }] }];
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) {
@@ -73,15 +73,12 @@ function postcssConfigBuilder(verbose, variables, postCSSFunctions) {
73
73
  require("postcss-mixins")(), // There is a PostCSS 8 version, but we're forced to use the old one because the new one uses AtRule, which is too late in the process
74
74
  require("@plaudit/postcss-variables")({ variables }), // Once
75
75
  require("postcss-functions")({ functions: { ...makeDefaultPostCSSFunctions(variables), ...postCSSFunctions(variables) } }),
76
- require("postcss-quantity-queries")(), // Legacy
77
76
  require("@plaudit/postcss-legacy-shorthand/position")(), // Legacy
78
77
  require("@plaudit/postcss-legacy-shorthand/size")(), // Legacy
79
78
  require("@plaudit/postcss-legacy-shorthand/spacing")(), // Legacy
80
- require("postcss-fallback")(), // Legacy
81
79
  require("postcss-property-lookup")({ logLevel: "warn" }), // Rule
82
80
  require("@plaudit/postcss-strip-units")(), // AtRule, Declaration
83
81
  require("postcss-media-minmax")(), // AtRule
84
- require("postcss-inline-svg")(), // AtRule
85
82
  require("postcss-nested")(), // Rule
86
83
  require("postcss-url")(),
87
84
  require("postcss-calc")(calcOptions), // OnceExit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.66.5",
3
+ "version": "2.67.0",
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.1",
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",
@@ -48,15 +48,12 @@
48
48
  "postcss": "^8.5.6",
49
49
  "postcss-calc": "^9.0.1",
50
50
  "postcss-discard-comments": "^6.0.2",
51
- "postcss-fallback": "^0.1.0",
52
51
  "postcss-functions": "^4.0.2",
53
52
  "postcss-import": "^16.1.1",
54
- "postcss-inline-svg": "^6.0.0",
55
53
  "postcss-media-minmax": "^5.0.0",
56
54
  "postcss-mixins": "6.2.3",
57
55
  "postcss-nested": "^6.2.0",
58
56
  "postcss-property-lookup": "^3.0.0",
59
- "postcss-quantity-queries": "^0.5.0",
60
57
  "postcss-reporter": "^7.1.0",
61
58
  "postcss-simple-vars": "^7.0.1",
62
59
  "postcss-url": "^10.1.3",
@@ -64,7 +61,7 @@
64
61
  "react-dom": "^18.3.1",
65
62
  "webpack": "^5.101.3",
66
63
  "webpack-remove-empty-scripts": "^1.1.1",
67
- "xml-formatter": "^3.6.6"
64
+ "xml-formatter": "^3.6.7"
68
65
  },
69
66
  "engines": {
70
67
  "node": ">=20"