vite-plugin-rebundle 1.19.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 CHANGED
@@ -16,7 +16,7 @@ var Rebundle = class {
16
16
  ws = null;
17
17
  isRollupVite = false;
18
18
  isRolldownVite = false;
19
- ORIGINALS_DIR = "rebundle-originals";
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.19.0",
3
+ "version": "1.20.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",
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 = 'rebundle-originals'
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 => {