Skip to content

v7.1.0 - Async WASM Loading

Choose a tag to compare

@itsmeadarsh2008 itsmeadarsh2008 released this 08 Jan 13:59
· 10 commits to main since this release

馃摝 v7.1.0 - Bundle Optimization

馃敡 Fix: Bundlephobia Compatibility

Problem: WebAssembly module was included in initial chunk, causing errors in bundle analyzers like Bundlephobia.

Solution: Refactored WASM loading to use dynamic imports, creating an async splitpoint:

  • WASM binary now loaded via import('../wasm/warper_wasm_bg.wasm?url')
  • WASM bindings loaded via import('../wasm/warper_wasm.js')
  • Types exported separately from runtime code
  • No changes to public API - fully backwards compatible

This ensures the WASM module is properly code-split and loaded asynchronously as required by bundlers.