keb
keb
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
interestingggg I'll give that a shot
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
it looks like main.ts doesn't include any external dependencies in your example
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
I'll take a look at the loader. Thanks for clarifying.
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
that's a bummer
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
I was using only esbuild. I'm not near my PC right now, but will send when I have the chance. Is there a way to use esbuild with deno without esbuild_deno_loader while still using third party packages in your source?
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
Plugin "import-map" returned a non-absolute path: https://deno.land/x/umai@0.2.4/index.js (set a namespace if this is not a file path)

src/components.js:1:18:
1 │ import { m } from 'umai';
╵ ~~~~~~
Plugin "import-map" returned a non-absolute path: https://deno.land/x/umai@0.2.4/index.js (set a namespace if this is not a file path)

src/components.js:1:18:
1 │ import { m } from 'umai';
╵ ~~~~~~
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
OK yeah esbuild doesn't like that. I guess because it doesn't want HTTP urls as paths
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
gonna give it a shot and report back
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
I wish Deno just took care of this somehow
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
So like rewrite umai -> https://deno.land/x/umai@0.2.4/index.js at build time. Although I'm not sure if that would even work 🤔
25 replies
DDeno
Created by keb on 9/16/2023 in #help
Using esbuild with import maps
My best guess is that I'll need to implement an esbuild plugin that will resolve the paths at build time to their ESM url counterparts
25 replies