1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/tests/testdata/import_attributes/dynamic_import.ts
Bartek Iwańczuk 57541b48ba
test: replace usage of window with globalThis (#25284)
Fixes several tests blocking https://github.com/denoland/deno/pull/25213
by replacing `window` global that is gone in Deno 2 with `globalThis`.

Also adjusted a few tests using deprecated `rid` field.
2024-08-29 01:56:15 +02:00

3 lines
92 B
TypeScript

const data1 = await import("./data.json", { with: { type: "json" } });
console.log(data1);