vite-plugin-rebundle 1.10.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.
@@ -21,7 +21,7 @@ declare class Rebundle extends Unit {
21
21
  private hasError;
22
22
  private port;
23
23
  private ws;
24
- constructor(generalOptions: RolldownOptions | null, bundleOptions?: BundleOptions);
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: RolldownOptions | null, bundleOptions?: BundleOptions): Plugin<any>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-rebundle",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",
@@ -27,12 +27,12 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@eposlabs/utils": "^1.9.0",
30
+ "@eposlabs/utils": "^1.10.0",
31
31
  "@types/ws": "^8.18.1",
32
32
  "chalk": "^5.6.2",
33
33
  "filesize": "^11.0.13",
34
34
  "portfinder": "^1.0.38",
35
- "rolldown": "^1.0.0-beta.41",
35
+ "rolldown": "^1.0.0-beta.42",
36
36
  "rollup": "^4.52.4",
37
37
  "vite": "^7.1.9",
38
38
  "ws": "^8.18.3"
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: RolldownOptions | null, bundleOptions?: BundleOptions) {
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: RolldownOptions | null, bundleOptions?: BundleOptions) {
265
+ export function rebundle(generalOptions?: RolldownOptions | null, bundleOptions?: BundleOptions) {
266
266
  return new Rebundle(generalOptions, bundleOptions).vite
267
267
  }
268
268