Commit 92cc143
committed
fix: restore import.meta.hot.accept() for Vite HMR boundary detection
Commit ad30cba accidentally removed the direct import.meta.hot.accept()
call from the normal refresh path when refactoring the reload pragma.
Vite's importAnalysis statically lexes for this pattern to mark modules
as self-accepting; without it, Vite sends full-reload instead of
hot-update.
Made-with: Cursor1 parent 0b566a7 commit 92cc143
5 files changed
Lines changed: 203 additions & 12 deletions
File tree
- src/babel/core
- tests
- client-hydratable/__snapshots__
- client/__snapshots__
- server-hydratable/__snapshots__
- server/__snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
36 | 58 | | |
37 | 59 | | |
38 | 60 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
| |||
0 commit comments