mirror of
https://github.com/denoland/deno.git
synced 2024-11-04 08:54:20 -05:00
01028fcdf4
denoland/eszip#115 added support for statically-analyzed dynamic imports in eszip, which made `deno compile` support dynamic imports starting from #17858. This PR adds a test for it. ---- This test is adapted from PR #17663. Closes #17908
6 lines
180 B
TypeScript
6 lines
180 B
TypeScript
console.log("Starting the main module");
|
|
|
|
setTimeout(() => {
|
|
console.log("Dynamic importing");
|
|
import("./import1.ts").then(() => console.log("Dynamic import done."));
|
|
}, 500);
|