Pixel
Pixel3y ago

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?
1 Reply
Pixel
PixelOP3y ago
I thought that Deno supports imports like fs to be compatible with Node? I've tried importing assemblyscript with an npm: specifier but the plugin doesn't seem to support them So there seems to be no way around this