update solid compiler

This commit is contained in:
2026-07-15 11:28:24 -04:00
parent f1745b8a1b
commit 4e378842e4
8 changed files with 255 additions and 38 deletions

View File

@@ -65,6 +65,17 @@ func StartDevHMR(mux *http.ServeMux, cfg Config) (importMap string, err error) {
return "", err
}
d.register(mux)
// The watcher's seed scan only records starting mtimes and never fires
// onchange (see watch()), so anything already referenced in source before
// this boot — e.g. an icon name — would otherwise sit missing from the
// generated registry until some later edit happened to retrigger it. Run it
// once up front so a bare `go run -tags dev ./cmd/server` (skipping the
// "Bundle: Build" preLaunchTask) still starts consistent.
if err := generateFAIcons(); err != nil {
fmt.Fprintf(os.Stderr, "[hmr] generating FA icons: %v\n", err)
}
go d.watch()
fmt.Println("HMR dev server: serving native-ESM source from /@src/, WebSocket at /@hmr/ws")