1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 19:37:59 -05:00
denoland-deno/cli/tests/testdata/import_attributes/dynamic_import.ts
2023-09-07 09:09:16 -04:00

5 lines
185 B
TypeScript

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