Mark GM
Denoβ€’6mo agoβ€’
1 reply
Mark G

Remap transient npm dependencies

Is there a way to remap npm dependencies to a http url?

Let's say I import package 'jsr:@foo/a', which imports 'npm:@bar/b', can I remap that via my import map to
https://.../bar/b.js
?

I basically want to remap some npm's to a cdn like jspm/esm etc, to avoid having a node_modules, for which there are reasons that I'm not going into, as I don't want to go off on tangental discussions.
Was this page helpful?