Pixel
esbuild_deno_loader importing Deno modules
A dependancy I use imports modules like "fs" and I want esbuild_deno_loader to treat them as external but currently get this error:
✘ [ERROR] [plugin deno] specifier was a bare specifier, but was not remapped to anything by importMap. deno:https://cdn.jsdelivr.net/npm/assemblyscript@0.20.3/dist/asc.js:7:6107: 7 │ ...t process]",X,un,A,G,gn;gt?(X=await import("fs"),un=await import("module"),A=await import... ╵ ~~~~Has anyone seen this before?
4 replies
How exactly do import maps work?
My import map works but I don't understand how!
If I import
/a/b/c.js
it imports from ./src/a/b/c.js
. I like this.
However, I have no idea about how this works! Could someone explain please? I like to understand what my code does and it bugs me if I don't :p4 replies
Write to virtual file path
Is it possible to provide virtual file paths so that another package writes a file to a variable in memory or to stdout?
I'm using
esbuild.build({ ... })
and I want to take the output of that and give it straight to deno, as in deno run esbuild.js | deno run -
.
I could solve the problem by writing to a temp file and running that.8 replies