Commit 423a43b
committed
Keep dev watch alive on initial errors and harden env parsing
- Do not exit dev watch on first compilation error; only reject when
BUILD_WATCH_ONCE is enabled. This preserves the previous DX of
staying in watch mode to fix errors.
- Add robust boolean env parsing for BUILD_WATCH_ONCE to treat '0',
'false', 'no', 'off', and empty as false.
- Retain fast‑fail for early setup/packaging errors and for watch‑once.
Why: Refactor introduced a Promise wrapper that caused dev to exit on
initial compile errors. This change restores expected behavior while
keeping deterministic exits for CI/watch‑once.1 parent 1bda239 commit 423a43b
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
598 | 603 | | |
599 | 604 | | |
600 | 605 | | |
601 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
602 | 611 | | |
603 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
604 | 616 | | |
605 | 617 | | |
606 | 618 | | |
607 | 619 | | |
608 | 620 | | |
609 | 621 | | |
| 622 | + | |
610 | 623 | | |
611 | 624 | | |
612 | 625 | | |
| 626 | + | |
613 | 627 | | |
614 | 628 | | |
615 | 629 | | |
| |||
0 commit comments