DenoDDeno
Powered by
Mark GM
Denoβ€’7mo 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
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.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to install npm dev dependencies?
florentFflorent / help
16mo ago
`deno install` installs workspace members' npm dependencies, but not jsr dependencies?
hosiHhosi / help
17mo ago
npm package command cannot read deno.json dependencies
DiegoDDiego / help
16mo ago
Resolving Dependencies for Local ESM NPM Packages in Deno
staytuned_teamSstaytuned_team / help
13mo ago