deno icon indicating copy to clipboard operation
deno copied to clipboard

Feat: Add CLI flag to skip having to add import attributes

Open marvinhagemeister opened this issue 4 months ago • 0 comments

Trying out Deno in Node projects that import .json files currently requires the developer to add import attributes.

// Node
import openings from "../resources/openings.json";
// Deno
import openings from "../resources/openings.json" with { type: "json" };

We should have a flag that allows you to import .json files directly without import attributes. Or maybe only require import attributes for remote specifiers.

marvinhagemeister avatar Oct 11 '24 14:10 marvinhagemeister