Hacker News new | ask | show | jobs
by eyelidlessness 1206 days ago
Deno does support import maps out of the box. For Node there’s a loader[1] you can use (though a glance at the GitHub issues suggests it’s incomplete).

1: https://www.npmjs.com/package/@node-loader/import-maps

1 comments

Does it generate import maps for me automatically? That's the hard part.

I'm using Vite with Sveltekit, which is great because it compiles files separately, but still doesn't generate import maps, but uses imports with relative and absolute filenames.

I don’t use Svelte of any kind so I’m possibly out of my depth, but I don’t know what I’d want to automate with import maps. I don’t think Deno addresses any use case like that but I’m hesitant to say so because I really don’t know what need I’m even addressing.