@plaudit/webpack-extensions 2.8.0 → 2.9.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.
@@ -18,7 +18,7 @@ function joinPossiblyAbsolutePaths(...paths) {
18
18
  function mapToRealEntrypoints(entrypoint, dir, mapper = (entrypoint) => entrypoint) {
19
19
  return (Array.isArray(entrypoint) ? entrypoint : [entrypoint])
20
20
  .map(ep => joinPossiblyAbsolutePaths(dir, mapper(ep)))
21
- .filter(ep => node_fs_1.default.existsSync(ep))
21
+ .filter(ep => node_fs_1.default.statSync(ep, { throwIfNoEntry: false })?.isFile())
22
22
  .map(ep => {
23
23
  const parsedEntrypoint = node_path_1.default.parse(ep);
24
24
  return [joinPossiblyAbsolutePaths(node_path_1.default.basename(parsedEntrypoint.dir), parsedEntrypoint.name), { import: ep }];
@@ -303,7 +303,8 @@ module.exports = function (config, webpackConfig = require("@wordpress/scripts/c
303
303
  mode: "production",
304
304
  output: {
305
305
  ...webpackConfig.output,
306
- path: joinPossiblyAbsolutePaths(process.cwd(), srcIsDirectory ? destPath : node_path_1.default.dirname(destPath))
306
+ path: joinPossiblyAbsolutePaths(process.cwd(), srcIsDirectory ? destPath : node_path_1.default.dirname(destPath)),
307
+ chunkFilename: 'webpack-chunks/[id].js',
307
308
  },
308
309
  stats: config.stats ?? 'errors-warnings',
309
310
  plugins: copyFiles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",
@@ -18,32 +18,32 @@
18
18
  }
19
19
  },
20
20
  "devDependencies": {
21
- "@types/browser-sync-webpack-plugin": "^2.2.2",
22
- "@types/node": "^20.5.3",
23
- "@types/tapable": "^2.2.4",
24
- "@types/webpack": "^5.28.2",
25
- "@types/webpack-sources": "^3.2.0",
21
+ "@types/browser-sync-webpack-plugin": "^2.2.3",
22
+ "@types/node": "^20.8.2",
23
+ "@types/tapable": "^2.2.5",
24
+ "@types/webpack": "^5.28.3",
25
+ "@types/webpack-sources": "^3.2.1",
26
26
  "postcss-load-config": "^4.0.1",
27
27
  "postcss-loader": "^7.3.3",
28
28
  "ts-node": "^10.9.1",
29
- "typescript": "^5.1.6"
29
+ "typescript": "^5.2.2"
30
30
  },
31
31
  "dependencies": {
32
32
  "@plaudit/postcss-color-function": "^5.0.0",
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.11.0",
37
- "autoprefixer": "^10.4.15",
36
+ "@wordpress/scripts": "^26.13.0",
37
+ "autoprefixer": "^10.4.16",
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.1",
43
- "eslint": "^8.47.0",
44
- "eslint-plugin-jsdoc": "^46.5.0",
43
+ "eslint": "^8.50.0",
44
+ "eslint-plugin-jsdoc": "^46.8.2",
45
45
  "fork-ts-checker-webpack-plugin": "^8.0.0",
46
- "postcss": "^8.4.28",
46
+ "postcss": "^8.4.30",
47
47
  "postcss-calc": "^9.0.1",
48
48
  "postcss-discard-comments": "^6.0.0",
49
49
  "postcss-fallback": "^0.1.0",
@@ -64,6 +64,6 @@
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
66
  "webpack": "^5.88.2",
67
- "webpack-remove-empty-scripts": "^1.0.3"
67
+ "webpack-remove-empty-scripts": "^1.0.4"
68
68
  }
69
69
  }