lucacasonato / esbuild_deno_loader

Deno module resolution for `esbuild`
https://deno.land/x/esbuild_deno_loader
MIT License
160 stars 43 forks source link

fix: don't depend on npm:esbuild #120

Closed lucacasonato closed 5 months ago

lucacasonato commented 5 months ago

npm:esbuild-wasm does not actually use WASM when not loaded in a browser. As such, we need to use https://deno.land/x/esbuild@0.20.2/wasm.js when targeting wasm.

This commit decouples esbuild_deno_loader from any specific esbuild version, by bundling the required types for the esbuild plugin API itself.