Hi, I'm new to Deno and looking for answers regarding imports.
-
deno add @org/packageregisters the package atdeno.jsonc.importseven ifimport_maps.jsonis present. Can this be configured, or is Deno moving away from placing import aliases in a separate file? On one hand, having a separate file seems maintainable; on the other, the import map is kind of a Deno "feature." -
The documentation at https://deno.land/[email protected] suggests that I should avoid using
*when importing only one function (import * as fs from "https://deno.land/[email protected]/fs/mod.ts";).However, since version 1.5, Deno does tree-shaking, making this seem irrelevant. Is this correct? -
Should I avoid or update imports from
deno.land/and usejsrpackages exclusively? The latter seems friendlier to me because I find it cumbersome to look up which file I need within a package (sometimes it's specific like.../assert.ts, sometimes.../mod.ts). Are there any important packages/code that aren't onjsrbut are present ondeno.land? -
The documentation mentions the
$convention for std (only), yet I didn't find any packages, even official ones, using it. Is my iteration on$confusing? ("$assert": "jsr:@std/assert@^1.0.0") -
Is there a benefit to importing modules directly in the source code rather than using an import map in general?