summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/single_compile_with_reload.ts
blob: ea6a734742b2bdb07365936ff241465c4b947cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
await import("./single_compile_with_reload_dyn.ts");
console.log("1");
await import("./single_compile_with_reload_dyn.ts");
console.log("2");
await new Promise((r) =>
  new Worker(
    import.meta.resolve("single_compile_with_reload_worker.ts"),
    { type: "module" },
  ).onmessage = r
);
console.log("3");
await new Promise((r) =>
  new Worker(
    import.meta.resolve("single_compile_with_reload_worker.ts"),
    { type: "module" },
  ).onmessage = r
);
console.log("4");