andy
andy
DDeno
Created by andy on 11/17/2023 in #help
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.
2 replies