Axel Rauschmayer on Nostr: Deno: Does anyone know why import maps have to look like this? { "imports": { ...
Published at
2025-02-16 14:00:17 UTCEvent JSON
{
"id": "4c622995dfc484985a305861afaeff68ded8220026026bd38ddbc3c2f68a95c5",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1739714417,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@rauschma/114013924068281978",
"web"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/114013924068281978",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/114013924068281978",
"pink.momostr"
],
[
"-"
]
],
"content": "Deno: Does anyone know why import maps have to look like this?\n\n{\n \"imports\": {\n \"@std/async\": \"jsr:@std/async@^1.0.0\",\n \"@std/async/\": \"jsr:/@std/async@^1.0.0/\"\n }\n}\n\nAt 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\n• Only necessary if there is a subpath after @std/async ?\n• Why a slash here (second entry)? jsr:/",
"sig": "6162d64c08540b28b71b956c8402981d49251782681a2548005c8c6a3ffae3c0ff29c2235c1e8af0b7ca61732e2f4d000f04912420a6acde961784f98e5c16c3"
}