mirror of
https://github.com/denoland/deno.git
synced 2025-02-24 14:11:58 -05:00

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);
|