vite-plugin-rebundle 1.18.0 → 1.20.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 +1 -2
- package/package.json +1 -4
- package/src/rebundle.ts +1 -4
package/dist/rebundle.js
CHANGED
|
@@ -16,7 +16,7 @@ var Rebundle = class {
|
|
|
16
16
|
ws = null;
|
|
17
17
|
isRollupVite = false;
|
|
18
18
|
isRolldownVite = false;
|
|
19
|
-
ORIGINALS_DIR = "
|
|
19
|
+
ORIGINALS_DIR = "REBUNDLE_originals";
|
|
20
20
|
constructor(commonOptions, bundleOptions) {
|
|
21
21
|
this.commonOptions = commonOptions ?? {};
|
|
22
22
|
this.bundleOptions = bundleOptions ?? {};
|
|
@@ -74,7 +74,6 @@ var Rebundle = class {
|
|
|
74
74
|
const usedPaths = [chunk.fileName, ...chunk.imports];
|
|
75
75
|
return usedPaths.some((path) => "code" in bundle[path] && bundle[path].code !== this.originals[path]);
|
|
76
76
|
});
|
|
77
|
-
if (modifiedEntryChunks.length === 0) return;
|
|
78
77
|
await Promise.all(
|
|
79
78
|
modifiedEntryChunks.map(async (chunk) => {
|
|
80
79
|
const originalFileName = this.unprefixed(chunk.fileName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-rebundle",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "imkost",
|
|
@@ -31,16 +31,13 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@eposlabs/utils": "^1.10.0",
|
|
34
|
-
"@parcel/watcher": "^2.5.1",
|
|
35
34
|
"@types/ws": "^8.18.1",
|
|
36
35
|
"chalk": "^5.6.2",
|
|
37
|
-
"esbuild": "^0.25.11",
|
|
38
36
|
"filesize": "^11.0.13",
|
|
39
37
|
"portfinder": "^1.0.38",
|
|
40
38
|
"rolldown": "^1.0.0-beta.42",
|
|
41
39
|
"rollup": "^4.52.4",
|
|
42
40
|
"vite": "^7.1.9",
|
|
43
|
-
"write-file-atomic": "^6.0.0",
|
|
44
41
|
"ws": "^8.18.3"
|
|
45
42
|
}
|
|
46
43
|
}
|
package/src/rebundle.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class Rebundle {
|
|
|
27
27
|
private ws: WebSocketServer | null = null
|
|
28
28
|
private isRollupVite = false
|
|
29
29
|
private isRolldownVite = false
|
|
30
|
-
private ORIGINALS_DIR = '
|
|
30
|
+
private ORIGINALS_DIR = 'REBUNDLE_originals'
|
|
31
31
|
|
|
32
32
|
constructor(commonOptions?: RolldownOptions | null, bundleOptions?: BundleOptions) {
|
|
33
33
|
this.commonOptions = commonOptions ?? {}
|
|
@@ -104,9 +104,6 @@ export class Rebundle {
|
|
|
104
104
|
return usedPaths.some(path => 'code' in bundle[path] && bundle[path].code !== this.originals[path])
|
|
105
105
|
})
|
|
106
106
|
|
|
107
|
-
// No modified entry chunks? -> Skip rebundle
|
|
108
|
-
if (modifiedEntryChunks.length === 0) return
|
|
109
|
-
|
|
110
107
|
// Rebundle modified entry chunks
|
|
111
108
|
await Promise.all(
|
|
112
109
|
modifiedEntryChunks.map(async chunk => {
|