mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
c58790ef13
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);
|