keb
Using esbuild with import maps
Hello 👋 I'm attempting to migrate one of my front-end projects to using Deno for tooling instead of Node. The setup is very simple; my frontend code lives in
src/
and should be bundled by esbuild and output to dist/
. I'd like to use import maps to keep my front-end code easy to read, so for example, in my frontend code I have an import that looks like import { m } from 'umai';
and then in my deno.json
file I have:
However, when I try running my esbuild build script, I get this error:
Which seems to imply that while Deno can resolve import maps, esbuild cannot. Has anyone figure out a way around this?25 replies