Commit 647bf11
fix: defer component registration until liveServer is initialized
registerAllComponents() was called at module evaluation time, before
the liveComponentsPlugin setup() had created the LiveServer instance.
The componentRegistry proxy hit liveServer!.registry with liveServer
still null, crashing in production bundles.
Now auto-generated-components.ts exports registerAllComponents()
instead of calling it immediately, and websocket-plugin.ts calls it
right after creating liveServer.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4b7f4f4 commit 647bf11
File tree
2 files changed
+7
-3
lines changed- core
- build
- server/live
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments