From c8fe422b4e5d32a7f7969a29b99e22df1c7abeb1 Mon Sep 17 00:00:00 2001 From: Max Amundsen Date: Thu, 9 Jul 2026 11:50:46 -0400 Subject: [PATCH] update SSR in bundler --- go/bundler/ssr.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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{