lucacasonato / esbuild_deno_loader

Deno module resolution for `esbuild`
https://deno.land/x/esbuild_deno_loader
MIT License
160 stars 43 forks source link

importmap support local path #94

Closed Decodetalkers closed 7 months ago

Decodetalkers commented 8 months ago

seems this plugin does not support importmap like

{
"import" : {
  "~": "./src"
}
}

but the import_map of deno support it

johnstonmatt commented 8 months ago

@lucacasonato I've added a reproduction here because I noticed the same issue: https://github.com/polyseam/esbuild-deno-loader-bug

Thanks for all your hard work!

BlackAsLight commented 7 months ago

I've found specifying the deno.json file fixes that problem. denoPlugins({ configPath: await Deno.realPath('./deno.json') })

lucacasonato commented 7 months ago

See also #86