@atomicsmash/compiler 0.7.1 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +2 -4
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import postCSSPresetEnv from "postcss-preset-env";
10
10
  import SVGSpritemapPlugin from "svg-spritemap-webpack-plugin";
11
11
  import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin";
12
12
  import webpack from "webpack";
13
- import WebpackAssetsManifest from "webpack-assets-manifest";
13
+ import { WebpackAssetsManifest } from "webpack-assets-manifest";
14
14
  import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
15
15
  import yargs from "yargs";
16
16
  import { hideBin } from "yargs/helpers";
@@ -255,6 +255,9 @@ const compiler = webpack({
255
255
  writeToDisk: true,
256
256
  output: `${distFolder}/assets-manifest.json`,
257
257
  customize(entry) {
258
+ if (!entry || !entry.key || typeof entry.key === "number") {
259
+ return entry;
260
+ }
258
261
  if (entry.key === "assets.php" ||
259
262
  entry.key === "wordpress-assets-info.php" ||
260
263
  entry.key.startsWith("fonts") ||
@@ -267,6 +270,9 @@ const compiler = webpack({
267
270
  if (entry.key.startsWith("/")) {
268
271
  entry.key = entry.key.slice(1);
269
272
  }
273
+ if (entry.key.startsWith("css/")) {
274
+ entry.key = entry.key.replace("css/", "styles/");
275
+ }
270
276
  if (entry.key.endsWith(".js.js")) {
271
277
  entry.key = entry.key.slice(0, -3);
272
278
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomicsmash/compiler",
3
3
  "type": "module",
4
- "version": "0.7.1",
4
+ "version": "0.7.3",
5
5
  "description": "A universal compiler for all Atomic Smash projects.",
6
6
  "keywords": [
7
7
  "cli",
@@ -47,7 +47,6 @@
47
47
  "@wordpress/dependency-extraction-webpack-plugin": "^6.15.0",
48
48
  "browserslist-to-esbuild": "^2.1.1",
49
49
  "copy-webpack-plugin": "^12.0.2",
50
- "css-loader": "^7.1.2",
51
50
  "cssnano": "^7.0.6",
52
51
  "esbuild-loader": "^4.3.0",
53
52
  "fast-glob": "^3.3.2",
@@ -57,12 +56,11 @@
57
56
  "postcss-preset-env": "^10.1.5",
58
57
  "sass": "^1.83.1",
59
58
  "sass-loader": "^16.0.4",
60
- "style-loader": "^4.0.0",
61
59
  "svg-spritemap-webpack-plugin": "^4.7.0",
62
60
  "tsconfig-paths-webpack-plugin": "^4.2.0",
63
61
  "tsx": "^4.19.3",
64
62
  "webpack": "^5.97.1",
65
- "webpack-assets-manifest": "^5.2.1",
63
+ "webpack-assets-manifest": "^6.0.2",
66
64
  "webpack-bundle-analyzer": "^4.10.2",
67
65
  "yargs": "^17.7.2"
68
66
  },