Tschrock / esbuild-plugin-wasm

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

mode: embedded uses unnecessary if statements in `generateWasmModule` #6

Closed jpoehnelt closed 5 months ago

jpoehnelt commented 6 months ago

The conditional should not be included if mode is embedded because it will never be true but cannot be pruned by ESBuild.

https://github.com/Tschrock/esbuild-plugin-wasm/blob/79a97c6fbdd30fa5af164c561149c57b679f2bb6/src/module.ts#L61