vite-plugin-rebundle 1.11.0 → 1.12.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/package.json +1 -1
- package/src/rebundle.ts +2 -2
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/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 ?? {}
|
|
@@ -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
|
|