@plaudit/webpack-extensions 2.11.1 → 2.11.3

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.
@@ -44,9 +44,14 @@ class AdditionalDependencyInjectorPlugin {
44
44
  const seen = new Set();
45
45
  const additionalDeps = additionalDependencies.filter(dep => !seen.has(dep) && seen.add(dep)).sort().map(v => `'${v}'`).join(', ');
46
46
  if (additionalDeps.length > 0) {
47
- compilation.updateAsset(name, new webpack_1.sources.RawSource(asset.source().toString().replace(/('dependencies'\s+=>\s+(?:array\(|\[))(.*)([)\]], 'version')/g, (match, g1, g2, g3) => `${g1}${g2.length > 0 ? `${g2}, ${additionalDeps}` : additionalDeps}${g3}`)));
47
+ compilation.updateAsset(name, new webpack_1.sources.RawSource(asset.source().toString()
48
+ .replaceAll(/(?:, )?'wp-[^']+\/[^']+'/gi, '')
49
+ .replace(/('dependencies'\s+=>\s+(?:array\(|\[))(.*)([)\]], 'version')/g, (match, g1, g2, g3) => `${g1}${g2.length > 0 ? `${g2}, ${additionalDeps}` : additionalDeps}${g3}`)));
50
+ continue;
48
51
  }
49
52
  }
53
+ compilation.updateAsset(name, new webpack_1.sources.RawSource(asset.source().toString()
54
+ .replaceAll(/(?:, )?'wp-[^']+\/[^']+'/gi, '')));
50
55
  }
51
56
  }
52
57
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.11.1",
3
+ "version": "2.11.3",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/browser-sync-webpack-plugin": "^2.2.3",
22
- "@types/node": "^20.10.6",
22
+ "@types/node": "^20.11.17",
23
23
  "@types/tapable": "^2.2.7",
24
24
  "@types/webpack": "^5.28.5",
25
25
  "@types/webpack-sources": "^3.2.3",
@@ -33,29 +33,29 @@
33
33
  "@plaudit/postcss-silent-extend": "^3.0.0",
34
34
  "@plaudit/postcss-strip-units": "^3.0.0",
35
35
  "@plaudit/postcss-variables": "^1.0.0",
36
- "@wordpress/scripts": "^26.19.0",
37
- "autoprefixer": "^10.4.16",
36
+ "@wordpress/scripts": "^27.1.0",
37
+ "autoprefixer": "^10.4.17",
38
38
  "browser-sync": "^2.29.3",
39
39
  "browser-sync-webpack-plugin": "^2.3.0",
40
40
  "clean-webpack-plugin": "^4.0.0",
41
41
  "copy-webpack-plugin": "^11.0.0",
42
42
  "cssnano": "^6.0.3",
43
- "eslint": "^8.50.0",
44
- "eslint-plugin-jsdoc": "^46.8.2",
43
+ "eslint": "^8.56.0",
44
+ "eslint-plugin-jsdoc": "^48.0.4",
45
45
  "fork-ts-checker-webpack-plugin": "^8.0.0",
46
46
  "postcss": "^8.4.33",
47
47
  "postcss-calc": "^9.0.1",
48
- "postcss-discard-comments": "^6.0.0",
48
+ "postcss-discard-comments": "^6.0.1",
49
49
  "postcss-fallback": "^0.1.0",
50
50
  "postcss-functions": "^4.0.2",
51
- "postcss-import": "^15.1.0",
51
+ "postcss-import": "^16.0.0",
52
52
  "postcss-inline-svg": "^6.0.0",
53
53
  "postcss-media-minmax": "^5.0.0",
54
54
  "postcss-mixins": "6.2.3",
55
55
  "postcss-nested": "^6.0.1",
56
56
  "postcss-property-lookup": "^3.0.0",
57
57
  "postcss-quantity-queries": "^0.5.0",
58
- "postcss-reporter": "^7.0.5",
58
+ "postcss-reporter": "^7.1.0",
59
59
  "postcss-short-position": "^4.0.1",
60
60
  "postcss-short-size": "^4.0.0",
61
61
  "postcss-short-spacing": "^4.0.0",
@@ -63,7 +63,7 @@
63
63
  "postcss-url": "^10.1.3",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
- "webpack": "^5.88.2",
66
+ "webpack": "^5.90.1",
67
67
  "webpack-remove-empty-scripts": "^1.0.4"
68
68
  }
69
69
  }