diff --git a/internal/bundler/web_bundle.go b/internal/bundler/web_bundle.go index af92d3c..ff4584a 100644 --- a/internal/bundler/web_bundle.go +++ b/internal/bundler/web_bundle.go @@ -50,9 +50,7 @@ func BundleWeb(options WebOptions) (Result, error) { defines["process.env."+key] = quoteJSString(value) } - stdinContents := fmt.Sprintf(`import %q; -import %q; -`, runtimeAbs, specAbs) + stdinContents := fmt.Sprintf("import %q;\n%s", runtimeAbs, registrationEntry(specAbs)) output := esbuild.Build(esbuild.BuildOptions{ Stdin: &esbuild.StdinOptions{