1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00
denoland-deno/tests/testdata/import_attributes/dynamic_import.ts

7 lines
226 B
TypeScript
Raw Normal View History

const data1 = await import("./data.json", { with: { type: "json" } });
// deno-lint-ignore no-import-assertions
const data2 = await import("./data.json", { assert: { type: "json" } });
console.log(data1);
console.log(data2);