Skip to content

v7.2.0 - Universal WASM Loading

Latest

Choose a tag to compare

@itsmeadarsh2008 itsmeadarsh2008 released this 08 Jan 14:10
· 9 commits to main since this release

📦 v7.2.0 - Universal Bundler Compatibility

🔧 Fix: WASM Asset Loading

Problem: Bundlephobia and other tools reported .module.wasm asset errors due to Vite-specific ?url import syntax.

Solution: Simplified WASM loading to use wasm-bindgen's built-in asset resolution:

  • Removed Vite-specific ?url import suffix
  • Let wasm-bindgen handle WASM file location via import.meta.url
  • Works with Webpack, Rollup, Vite, esbuild, and other bundlers
  • No configuration required from consumers

📄 Package.json Cleanup

  • Fixed duplicate files key warning
  • Proper exports configuration for WASM assets

✅ Compatibility

Works out-of-the-box with:

  • Vite
  • Webpack 5
  • Rollup
  • esbuild
  • Parcel
  • Next.js
  • Create React App