summaryrefslogtreecommitdiff
path: root/tests/testdata/run/single_compile_with_reload.ts
blob: 9478ad5236978d288146b08f3f381e30ba06107d (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");