mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
671f0b83be
Previously, bundles always utilised top level await, even if the bundled modules didn't require top level await. Now, analysis of the bundle is done and if none of the bundled modules are asynchronously executed, then the bundle as a whole will be synchronously executed. Fixes #4055 Fixes #4123
23 lines
588 B
Text
23 lines
588 B
Text
[WILDCARD]
|
|
let System, __inst, __inst_s;
|
|
[WILDCARD]
|
|
(() => {
|
|
[WILDCARD]
|
|
})();
|
|
|
|
System.register("print_hello", [], function (exports_1, context_1) {
|
|
[WILDCARD]
|
|
});
|
|
System.register("subdir2/mod2", ["print_hello"], function (exports_2, context_2) {
|
|
[WILDCARD]
|
|
});
|
|
System.register("mod1", ["subdir2/mod2"], function (exports_3, context_3) {
|
|
[WILDCARD]
|
|
});
|
|
|
|
const __exp = __inst_s("mod1");
|
|
export const returnsHi = __exp["returnsHi"];
|
|
export const returnsFoo2 = __exp["returnsFoo2"];
|
|
export const printHello3 = __exp["printHello3"];
|
|
export const throwsError = __exp["throwsError"];
|
|
[WILDCARD]
|