Tschrock / esbuild-plugin-wasm

WASM module loader for esbuild
MIT License
25 stars 5 forks source link

Relative node_modules import #5

Open muuvmuuv opened 1 year ago

muuvmuuv commented 1 year ago

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

import OnigWasmSource from 'shiki/dist/onig.wasm'
dskvr commented 1 month ago

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.