DenoDDeno
Powered by
DanD
Denoβ€’2y agoβ€’
2 replies
Dan

Is there a way to handle subpath imports within a library?

I'm trying to convert a library package to work with deno.

Internally, the package makes a bunch of (different) subpath imports from another library of ours.

If this were an application making these imports, I'd just use an import map. However, the docs are pretty clear that, for a library, you should create a
deps.ts
deps.ts
. The problem with this is that I have to enumerate every single subpath import in the
deps
deps
file to make it available to other files.

Is there a pattern for import map style mappings, for a library?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is there a way to vendor npm specifier imports?
Bustin BaseBBustin Base / help
3y ago
Is there a way to handle permission prompts from a worker?
easrngEeasrng / help
13mo ago