@plaudit/webpack-extensions 2.52.0 → 2.53.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.
@@ -386,7 +386,7 @@ function processIndividualWebpackConfig(config, webpackConfig, sources, sharedCa
386
386
  entry = async () => {
387
387
  const rawEntrypoints = [];
388
388
  for await (const dirent of await promises_1.default.opendir(srcRoot)) {
389
- if (dirent.isFile()) {
389
+ if (dirent.isFile() && !dirent.name.startsWith("~")) {
390
390
  if (scriptExtension.test(dirent.name) || styleExtension.test(dirent.name)) {
391
391
  const file = joinPossiblyAbsolutePaths(srcRoot, dirent.name);
392
392
  rawEntrypoints.push([node_path_1.default.basename(file, node_path_1.default.extname(file)), file]);
@@ -601,6 +601,13 @@ function processIndividualWebpackConfig(config, webpackConfig, sources, sharedCa
601
601
  currentVariables = require(variablesFilePath);
602
602
  }
603
603
  return entry();
604
+ },
605
+ performance: {
606
+ ...webpackConfig.performance,
607
+ assetFilter(assetFilename) {
608
+ // We don't want to warn about the sizes of incompressible assets
609
+ return !/\.(map|svg|png|jpe?g|gif)$/i.test(assetFilename);
610
+ }
604
611
  }
605
612
  };
606
613
  }).filter(cfg => cfg !== undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.52.0",
3
+ "version": "2.53.1",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "/build"
@@ -16,9 +16,9 @@
16
16
  }
17
17
  },
18
18
  "devDependencies": {
19
- "@plaudit/gutenberg-api-extensions": "^2.72.0",
19
+ "@plaudit/gutenberg-api-extensions": "^2.75.0",
20
20
  "@types/browser-sync-webpack-plugin": "^2.2.5",
21
- "@types/node": "^22.15.29",
21
+ "@types/node": "^22.16.5",
22
22
  "@types/postcss-functions": "^4.0.4",
23
23
  "@types/tapable": "^2.2.7",
24
24
  "@types/webpack": "^5.28.5",
@@ -35,8 +35,8 @@
35
35
  "@plaudit/postcss-silent-extend": "^3.0.0",
36
36
  "@plaudit/postcss-strip-units": "^3.0.0",
37
37
  "@plaudit/postcss-variables": "^1.1.0",
38
- "@wordpress/dependency-extraction-webpack-plugin": "^6.24.0",
39
- "@wordpress/scripts": "^30.17.0",
38
+ "@wordpress/dependency-extraction-webpack-plugin": "^6.27.0",
39
+ "@wordpress/scripts": "^30.20.0",
40
40
  "autoprefixer": "^10.4.21",
41
41
  "browser-sync": "^3.0.4",
42
42
  "clean-webpack-plugin": "^4.0.0",
@@ -46,12 +46,12 @@
46
46
  "fork-ts-checker-webpack-plugin": "^9.1.0",
47
47
  "http-proxy-middleware": "^3.0.5",
48
48
  "json2php": "^0.0.12",
49
- "postcss": "^8.5.4",
49
+ "postcss": "^8.5.6",
50
50
  "postcss-calc": "^9.0.1",
51
51
  "postcss-discard-comments": "^6.0.2",
52
52
  "postcss-fallback": "^0.1.0",
53
53
  "postcss-functions": "^4.0.2",
54
- "postcss-import": "^16.1.0",
54
+ "postcss-import": "^16.1.1",
55
55
  "postcss-inline-svg": "^6.0.0",
56
56
  "postcss-media-minmax": "^5.0.0",
57
57
  "postcss-mixins": "6.2.3",
@@ -63,7 +63,7 @@
63
63
  "postcss-url": "^10.1.3",
64
64
  "react": "^18.3.1",
65
65
  "react-dom": "^18.3.1",
66
- "webpack": "^5.99.9",
66
+ "webpack": "^5.100.2",
67
67
  "webpack-remove-empty-scripts": "^1.1.1",
68
68
  "xml-formatter": "^3.6.6"
69
69
  },