Commit 153de34
fix: keep SSR resource watchers for cache invalidation
The fs.watch callback serves dual purpose: (1) invalidating
resourceCache on file change, and (2) sending HMR WebSocket events.
The HMR part is already independently gated by componentIds, which
are only populated for client transforms. Skipping watcher
registration for SSR would leave resourceCache stale when external
templates/styles change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fe93bae commit 153de34
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| |||
0 commit comments