mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
6bd846a780
Moves to using a minimal System loader for bundles generated by Deno. TypeScript in 3.8 will be able to output TLA for modules, and the loader is written to take advantage of that as soon as we update Deno to TS 3.8. System also allows us to support `import.meta` and provide more ESM aligned assignment of exports, as well as there is better handling of circular imports. The loader is also very terse versus to try to save overhead. Also, fixed an issue where abstract classes were not being re-exported. Fixes #2553 Fixes #3559 Fixes #3751 Fixes #3825 Refs #3301
24 lines
586 B
Text
24 lines
586 B
Text
[WILDCARD]
|
|
let System;
|
|
let __inst;
|
|
[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 = await __inst("mod1");
|
|
export const returnsHi = __exp["returnsHi"];
|
|
export const returnsFoo2 = __exp["returnsFoo2"];
|
|
export const printHello3 = __exp["printHello3"];
|
|
export const throwsError = __exp["throwsError"];
|
|
[WILDCARD]
|