Menci / vite-plugin-wasm

Add WebAssembly ESM integration (aka. Webpack's `asyncWebAssembly`) to Vite and support `wasm-pack` generated modules.
MIT License
281 stars 16 forks source link

Fix types for "moduleResolution": "bundler" #41

Closed segevfiner closed 10 months ago

segevfiner commented 11 months ago

Also note that Vite has since removed types for *.wasm files. So you can now just add a proper .wasm.d.ts or .d.wasm.ts (With allowArbitraryExtensions) for them, or an a shorthand ambient declaration in a .d.ts file, if you really want to have any everywhere, to type the wasm module.