summaryrefslogtreecommitdiff
path: root/cli/js/compiler_bundler.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-03-05 00:26:00 +1100
committerGitHub <noreply@github.com>2020-03-04 14:26:00 +0100
commit30682cf74fa039d3493c74101dca2dbb3a8d49b6 (patch)
tree7e30b2a83822f0e8832883156eaa1ff7d1adc6ab /cli/js/compiler_bundler.ts
parent70fe1f9fd3b6eceb39c4324cba668bf069e04f91 (diff)
Migrate internal bundles to System (#4233)
Diffstat (limited to 'cli/js/compiler_bundler.ts')
-rw-r--r--cli/js/compiler_bundler.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/compiler_bundler.ts b/cli/js/compiler_bundler.ts
index f8f0b48e8..a7a021470 100644
--- a/cli/js/compiler_bundler.ts
+++ b/cli/js/compiler_bundler.ts
@@ -50,8 +50,8 @@ export function buildBundle(
let instantiate: string;
if (rootExports && rootExports.length) {
instantiate = hasTla
- ? `const __exp = await __inst("${rootName}");\n`
- : `const __exp = __inst_s("${rootName}");\n`;
+ ? `const __exp = await __instantiateAsync("${rootName}");\n`
+ : `const __exp = __instantiate("${rootName}");\n`;
for (const rootExport of rootExports) {
if (rootExport === "default") {
instantiate += `export default __exp["${rootExport}"];\n`;
@@ -61,8 +61,8 @@ export function buildBundle(
}
} else {
instantiate = hasTla
- ? `await __inst("${rootName}");\n`
- : `__inst_s("${rootName}");\n`;
+ ? `await __instantiateAsync("${rootName}");\n`
+ : `__instantiate("${rootName}");\n`;
}
return `${SYSTEM_LOADER}\n${data}\n${instantiate}`;
}