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

@@ -115,20 +115,20 @@ func TestDevServerEndToEnd(t *testing.T) {
}
// --- SPA entry: hot bootstrap + bare imports kept + relative imports rewritten
code, app := get(srcURLPrefix + "app.ts")
code, app := get(srcURLPrefix + "app.tsx")
if code != 200 {
t.Fatalf("app.ts status %d:\n%s", code, app)
t.Fatalf("app.tsx status %d:\n%s", code, app)
}
for _, want := range []string{
`__createHotContext("/@src/app.ts")`, // hot bootstrap
`/@hmr/client`, // client import injected
`"solid-js/web"`, // bare specifier preserved for import map
`"@solidjs/router"`, // bare specifier preserved
`/@src/routes/app-routes.ts`, // relative import rewritten
`/@src/layouts/AppLayout.ts`, // relative import rewritten
`__createHotContext("/@src/app.tsx")`, // hot bootstrap
`/@hmr/client`, // client import injected
`"solid-js/web"`, // bare specifier preserved for import map
`"@solidjs/router"`, // bare specifier preserved
`/@src/routes/app-routes.ts`, // relative import rewritten
`/@src/layouts/AppLayout.tsx`, // relative import rewritten
} {
if !strings.Contains(app, want) {
t.Errorf("app.ts missing %q", want)
t.Errorf("app.tsx missing %q", want)
}
}