DenoDDeno
Powered by
andyA
Denoβ€’3y agoβ€’
1 reply
andy

using imports map to map no-suffix imports to suffix imports

I was hoping i might be able to use an import map in my deno.json like this:
"imports": {
  "./supabase":"./supabase.ts"
}
"imports": {
  "./supabase":"./supabase.ts"
}

But that doesn't seem to work. From what I'm finding online there is no solution to this currently?

Just seemed like making the mapping explicit in this way would be a nice workaround for the side-effect that the intentional decision to require suffixes has had on compatibility with existing libraries.

FWIW, I like the design choice, but why not let us use the mapping to bridge the two worlds?

Unless it is possible to us the imports map in this way and I'm just getting the syntax wrong.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

About imports
drom765Ddrom765 / help
2y ago