diff --git a/go/bundler/ssr.go b/go/bundler/ssr.go index 97c63887..d4c45d78 100644 --- a/go/bundler/ssr.go +++ b/go/bundler/ssr.go @@ -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{