vite-plugin-rebundle 1.12.0 → 1.13.0

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.
package/dist/rebundle.js CHANGED
@@ -115,7 +115,7 @@ var Rebundle = class extends Unit {
115
115
  return result2;
116
116
  });
117
117
  if (!result) return;
118
- const { size } = await stat(join(this.dist, chunk.fileName));
118
+ const { size } = await stat(join(this.dist, this.unprefixed(chunk.fileName)));
119
119
  const _dist_ = chalk.dim(`${this.dist}/`);
120
120
  const _fileName_ = chalk.cyan(this.unprefixed(chunk.fileName));
121
121
  const _rebundle_ = chalk.dim.cyan("[rebundle]");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-rebundle",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",
package/src/rebundle.ts CHANGED
@@ -168,7 +168,7 @@ export class Rebundle extends Unit {
168
168
  if (!result) return
169
169
 
170
170
  // Log successful build
171
- const { size } = await stat(join(this.dist, chunk.fileName))
171
+ const { size } = await stat(join(this.dist, this.unprefixed(chunk.fileName)))
172
172
  const _dist_ = chalk.dim(`${this.dist}/`)
173
173
  const _fileName_ = chalk.cyan(this.unprefixed(chunk.fileName))
174
174
  const _rebundle_ = chalk.dim.cyan('[rebundle]')