hadars 0.1.12 → 0.1.13
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/cli.js +6 -0
- package/dist/ssr-watch.js +6 -0
- package/package.json +1 -1
- package/src/utils/rspack.ts +6 -0
package/dist/cli.js
CHANGED
|
@@ -534,6 +534,12 @@ var buildCompilerConfig = (entry, opts, includeHotPlugin) => {
|
|
|
534
534
|
experiments: {
|
|
535
535
|
...localConfig.experiments || {},
|
|
536
536
|
outputModule: isServerBuild
|
|
537
|
+
},
|
|
538
|
+
// Prevent rspack from watching its own build output — without this the
|
|
539
|
+
// SSR watcher writing .hadars/index.ssr.js triggers the client compiler
|
|
540
|
+
// and vice versa, causing an infinite rebuild loop.
|
|
541
|
+
watchOptions: {
|
|
542
|
+
ignored: ["**/node_modules/**", "**/.hadars/**"]
|
|
537
543
|
}
|
|
538
544
|
};
|
|
539
545
|
};
|
package/dist/ssr-watch.js
CHANGED
|
@@ -260,6 +260,12 @@ var buildCompilerConfig = (entry2, opts, includeHotPlugin) => {
|
|
|
260
260
|
experiments: {
|
|
261
261
|
...localConfig.experiments || {},
|
|
262
262
|
outputModule: isServerBuild
|
|
263
|
+
},
|
|
264
|
+
// Prevent rspack from watching its own build output — without this the
|
|
265
|
+
// SSR watcher writing .hadars/index.ssr.js triggers the client compiler
|
|
266
|
+
// and vice versa, causing an infinite rebuild loop.
|
|
267
|
+
watchOptions: {
|
|
268
|
+
ignored: ["**/node_modules/**", "**/.hadars/**"]
|
|
263
269
|
}
|
|
264
270
|
};
|
|
265
271
|
};
|
package/package.json
CHANGED
package/src/utils/rspack.ts
CHANGED
|
@@ -314,6 +314,12 @@ const buildCompilerConfig = (
|
|
|
314
314
|
...(localConfig.experiments || {}),
|
|
315
315
|
outputModule: isServerBuild,
|
|
316
316
|
},
|
|
317
|
+
// Prevent rspack from watching its own build output — without this the
|
|
318
|
+
// SSR watcher writing .hadars/index.ssr.js triggers the client compiler
|
|
319
|
+
// and vice versa, causing an infinite rebuild loop.
|
|
320
|
+
watchOptions: {
|
|
321
|
+
ignored: ['**/node_modules/**', '**/.hadars/**'],
|
|
322
|
+
},
|
|
317
323
|
};
|
|
318
324
|
};
|
|
319
325
|
|