update solid compiler
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user