update SSR in bundler

This commit is contained in:
2026-07-09 11:50:46 -04:00
parent ba3d87c27f
commit c8fe422b4e

View File

@@ -224,9 +224,10 @@ func bundleEntry(entrySource, projectRoot string, withMeta bool) (js, metafile s
})
},
}
// The Go Solid compiler (Plugin) compiles .tsx before the catch-all stub sees
// any of its imports.
plugins := []esbuild.Plugin{Plugin(), stubPlugin}
// aliasPlugin resolves @ui/@kjol/@appgen into the kjol web tree first; the Go
// Solid compiler (Plugin) compiles .tsx before the catch-all stub sees any of
// its imports.
plugins := []esbuild.Plugin{aliasPlugin(), Plugin(), stubPlugin}
result := esbuild.Build(esbuild.BuildOptions{
Stdin: &esbuild.StdinOptions{