Bundle.js

WebAssembly First-Class Support

August 26, 2025 By the Dev Team

We're excited to announce that Bundle.js now provides native support for WebAssembly! This means you can import and use WASM modules directly in your JavaScript projects with no external tooling.

Key Features

  • Native WebAssembly integration with module auto-detection
  • Zero-config SIMD and threads support for optimized execution
  • Automatic Emscripten compatibility layer for legacy projects
wasm/add.wasm

// Rust implementation using wasm-bindgen:
#[wasm_bindgen]
pub fn add(a: i32, b: i32) -> i32 {
    a + b
}

                    
JavaScript usage

import add from './add.wasm';

const result = await add(2, 3);
console.log(result); // 5

                    

Performance Benchmarks

Initial Load Time 45% faster
880ms 500ms
Memory Usage 62% reduced
1.2MB 472KB

Getting Started

Try it with your favorite language. Simply compile to WASM and import directly in your project.

Install the wasm plugin

npm install --save-dev wasm-loader

                    
Previous Post

Next.js Integration Now Stable

August 10, 2025 Frameworks