esbuild-plugin-wasm icon indicating copy to clipboard operation
esbuild-plugin-wasm copied to clipboard

Relative node_modules import

Open muuvmuuv opened this issue 2 years ago • 1 comments

Atm it seems not to work to import from node_modules. I would like to do:

import OnigWasmSource from 'shiki/dist/onig.wasm'

muuvmuuv avatar Nov 16 '23 12:11 muuvmuuv

To ammend this issue, the error thrown is be the non-sensical

✘ [ERROR] No loader is configured for ".wasm" files: ../package/some.wasm

The plugin assumes the import is a path.

dskvr avatar Oct 25 '24 16:10 dskvr