hadars 0.1.13 → 0.1.14
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 +2 -8
- package/dist/ssr-watch.js +2 -8
- package/package.json +1 -1
- package/src/utils/rspack.ts +4 -8
package/dist/cli.js
CHANGED
|
@@ -551,7 +551,7 @@ var compileEntry = async (entry, opts) => {
|
|
|
551
551
|
if (opts.watch) {
|
|
552
552
|
await new Promise((resolve2, reject) => {
|
|
553
553
|
let first = true;
|
|
554
|
-
compiler.watch({}, (err, stats) => {
|
|
554
|
+
compiler.watch({ ignored: ["**/node_modules/**", "**/.hadars/**"] }, (err, stats) => {
|
|
555
555
|
if (err) {
|
|
556
556
|
if (first) {
|
|
557
557
|
first = false;
|
|
@@ -561,13 +561,7 @@ var compileEntry = async (entry, opts) => {
|
|
|
561
561
|
}
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
|
-
console.log(stats?.toString({
|
|
565
|
-
colors: true,
|
|
566
|
-
modules: true,
|
|
567
|
-
children: true,
|
|
568
|
-
chunks: true,
|
|
569
|
-
chunkModules: true
|
|
570
|
-
}));
|
|
564
|
+
console.log(stats?.toString({ colors: true }));
|
|
571
565
|
if (first) {
|
|
572
566
|
first = false;
|
|
573
567
|
resolve2(stats);
|
package/dist/ssr-watch.js
CHANGED
|
@@ -274,7 +274,7 @@ var compileEntry = async (entry2, opts) => {
|
|
|
274
274
|
if (opts.watch) {
|
|
275
275
|
await new Promise((resolve, reject) => {
|
|
276
276
|
let first = true;
|
|
277
|
-
compiler.watch({}, (err, stats) => {
|
|
277
|
+
compiler.watch({ ignored: ["**/node_modules/**", "**/.hadars/**"] }, (err, stats) => {
|
|
278
278
|
if (err) {
|
|
279
279
|
if (first) {
|
|
280
280
|
first = false;
|
|
@@ -284,13 +284,7 @@ var compileEntry = async (entry2, opts) => {
|
|
|
284
284
|
}
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
|
-
console.log(stats?.toString({
|
|
288
|
-
colors: true,
|
|
289
|
-
modules: true,
|
|
290
|
-
children: true,
|
|
291
|
-
chunks: true,
|
|
292
|
-
chunkModules: true
|
|
293
|
-
}));
|
|
287
|
+
console.log(stats?.toString({ colors: true }));
|
|
294
288
|
if (first) {
|
|
295
289
|
first = false;
|
|
296
290
|
resolve(stats);
|
package/package.json
CHANGED
package/src/utils/rspack.ts
CHANGED
|
@@ -341,20 +341,16 @@ export const compileEntry = async (entry: string, opts: EntryOptions & { watch?:
|
|
|
341
341
|
if (opts.watch) {
|
|
342
342
|
await new Promise((resolve, reject) => {
|
|
343
343
|
let first = true;
|
|
344
|
-
compiler.watch(
|
|
344
|
+
// Pass ignored patterns directly — compiler.watch(watchOptions) replaces
|
|
345
|
+
// the config-level watchOptions, so we must repeat them here.
|
|
346
|
+
compiler.watch({ ignored: ['**/node_modules/**', '**/.hadars/**'] }, (err: any, stats: any) => {
|
|
345
347
|
if (err) {
|
|
346
348
|
if (first) { first = false; reject(err); }
|
|
347
349
|
else { console.error('rspack watch error', err); }
|
|
348
350
|
return;
|
|
349
351
|
}
|
|
350
352
|
|
|
351
|
-
console.log(stats?.toString({
|
|
352
|
-
colors: true,
|
|
353
|
-
modules: true,
|
|
354
|
-
children: true,
|
|
355
|
-
chunks: true,
|
|
356
|
-
chunkModules: true,
|
|
357
|
-
}));
|
|
353
|
+
console.log(stats?.toString({ colors: true }));
|
|
358
354
|
|
|
359
355
|
if (first) {
|
|
360
356
|
first = false;
|