vite-plugin-rebundle 1.11.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.d.ts +2 -2
- package/dist/rebundle.js +1 -1
- package/package.json +1 -1
- package/src/rebundle.ts +3 -3
package/dist/rebundle.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare class Rebundle extends Unit {
|
|
|
21
21
|
private hasError;
|
|
22
22
|
private port;
|
|
23
23
|
private ws;
|
|
24
|
-
constructor(generalOptions
|
|
24
|
+
constructor(generalOptions?: RolldownOptions | null, bundleOptions?: BundleOptions);
|
|
25
25
|
get vite(): Plugin;
|
|
26
26
|
private onConfig;
|
|
27
27
|
private onConfigResolved;
|
|
@@ -40,6 +40,6 @@ declare class Rebundle extends Unit {
|
|
|
40
40
|
private removeDirectoryIfEmpty;
|
|
41
41
|
private merge;
|
|
42
42
|
}
|
|
43
|
-
declare function rebundle(generalOptions
|
|
43
|
+
declare function rebundle(generalOptions?: RolldownOptions | null, bundleOptions?: BundleOptions): Plugin<any>;
|
|
44
44
|
|
|
45
45
|
export { type BundleOptions, Rebundle, type RolldownOptions, _code_, _sourcemap_, rebundle as default, rebundle };
|
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
package/src/rebundle.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class Rebundle extends Unit {
|
|
|
31
31
|
private port: number | null = null
|
|
32
32
|
private ws: WebSocketServer | null = null
|
|
33
33
|
|
|
34
|
-
constructor(generalOptions
|
|
34
|
+
constructor(generalOptions?: RolldownOptions | null, bundleOptions?: BundleOptions) {
|
|
35
35
|
super()
|
|
36
36
|
this.generalOptions = generalOptions ?? {}
|
|
37
37
|
this.bundleOptions = bundleOptions ?? {}
|
|
@@ -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]')
|
|
@@ -262,7 +262,7 @@ export class Rebundle extends Unit {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
export function rebundle(generalOptions
|
|
265
|
+
export function rebundle(generalOptions?: RolldownOptions | null, bundleOptions?: BundleOptions) {
|
|
266
266
|
return new Rebundle(generalOptions, bundleOptions).vite
|
|
267
267
|
}
|
|
268
268
|
|