@modern-js/builder 0.0.0-nightly-20231120170640 → 0.0.0-nightly-20231122170633

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.
@@ -67,13 +67,14 @@ async function printHeader(longestFileLength, longestLabelLength) {
67
67
  async function printFileSizes(stats, distPath) {
68
68
  const { fs, filesize, gzipSize, stripAnsi } = await Promise.resolve().then(() => __toESM(require("@modern-js/utils")));
69
69
  const formatAsset = (asset) => {
70
- const contents = fs.readFileSync(import_path.default.join(distPath, asset.name));
70
+ const fileName = asset.name.split("?")[0];
71
+ const contents = fs.readFileSync(import_path.default.join(distPath, fileName));
71
72
  const size = contents.length;
72
73
  const gzippedSize = gzipSize.sync(contents);
73
74
  return {
74
75
  size,
75
- folder: import_path.default.join(import_path.default.basename(distPath), import_path.default.dirname(asset.name)),
76
- name: import_path.default.basename(asset.name),
76
+ folder: import_path.default.join(import_path.default.basename(distPath), import_path.default.dirname(fileName)),
77
+ name: import_path.default.basename(fileName),
77
78
  gzippedSize,
78
79
  sizeLabel: filesize(size, {
79
80
  round: 1
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "engines": {
19
19
  "node": ">=14.0.0"
20
20
  },
21
- "version": "0.0.0-nightly-20231120170640",
21
+ "version": "0.0.0-nightly-20231122170633",
22
22
  "jsnext:source": "./src/index.ts",
23
23
  "types": "./dist/index.d.ts",
24
24
  "main": "./dist/index.js",
@@ -56,17 +56,17 @@
56
56
  "@swc/helpers": "0.5.3",
57
57
  "deepmerge": "^4.3.1",
58
58
  "jiti": "^1.20.0",
59
- "@modern-js/utils": "0.0.0-nightly-20231120170640",
60
- "@modern-js/builder-shared": "0.0.0-nightly-20231120170640"
59
+ "@modern-js/builder-shared": "0.0.0-nightly-20231122170633",
60
+ "@modern-js/utils": "0.0.0-nightly-20231122170633"
61
61
  },
62
62
  "devDependencies": {
63
- "@types/babel__core": "^7.20.0",
63
+ "@types/babel__core": "^7.20.1",
64
64
  "@types/node": "^14",
65
65
  "typescript": "^5",
66
- "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231120170640",
67
- "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231120170640",
68
- "@scripts/build": "0.0.0-nightly-20231120170640",
69
- "@scripts/vitest-config": "0.0.0-nightly-20231120170640"
66
+ "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231122170633",
67
+ "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231122170633",
68
+ "@scripts/build": "0.0.0-nightly-20231122170633",
69
+ "@scripts/vitest-config": "0.0.0-nightly-20231122170633"
70
70
  },
71
71
  "publishConfig": {
72
72
  "registry": "https://registry.npmjs.org/",