mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 03:27:10 +00:00
refactor(bundler): reuse registration trailer in web bundler
This commit is contained in:
1 parent
868ab78c8e
commit
e156fbc5f6
1 file changed
+1
-3
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user