Join Nostr
2025-02-16 14:00:17 UTC

Axel Rauschmayer on Nostr: Deno: Does anyone know why import maps have to look like this? { "imports": { ...

Deno: Does anyone know why import maps have to look like this?

{
"imports": {
"@std/async": "jsr:@std/async@^1.0.0",
"@std/async/": "jsr:/@std/async@^1.0.0/"
}
}

At least according to the documentation whose explanation I don’t understand: https://docs.deno.com/runtime/fundamentals/modules/#differentiating-between-imports-or-importmap-in-deno.json-and---import-map-option
• Only necessary if there is a subpath after @std/async ?
• Why a slash here (second entry)? jsr:/