Open
Description
Currently, deno_cache
only supports URL imports.
The only way to add an npm:
module to Deno's cache is to:
- Import it with a static import. Not ideal since it forces you to execute the package's code which does not make sense for front-end packages.
- Use a
package.json
file.
It's also difficult to get the source code of npm:
modules, unless the "nodeModulesDir"
option is enabled.
Supporting npm:
scheme or finding alternative ways to cache and obtain the source code of npm:
modules that don't rely on the node_modules
folder or the package.json
file could enable better Deno-first tooling.
Metadata
Metadata
Assignees
Labels
No labels