What Is it?
Try out the new WebAssembly powered dependency for webpack: 60% faster for source-map devtool and 20% for cheap-source-map devtool.
- WebAssembly has huge implications for the web platform — it provides a way to run code written in multiple languages on the web at near native speed.
- Webpack Sources, one of the core packages of Webpack, and its dependencies source-list-map and source-map are re-written in Rust and compiled to WebAssembly binary to speed up the webpack bundling time.
- You can substitute for the old package directly without any modifications in Webpack and plugins.
- WebAssembly has an S-expression-based textual representation, an intermediate form designed to be exposed in text editors, browser developer tools, etc.
Efficient and fast
The Wasm stack machine is designed to be encoded in a size- and load-time-efficient binary format. WebAssembly aims to execute at native speed by taking advantage of common hardware capabilities available on a wide range of platforms.
Open and debuggable
WebAssembly is designed to be pretty-printed in a textual format for debugging, testing, experimenting, optimizing, learning, teaching, and writing programs by hand. The textual format will be used when viewing the source of Wasm modules on the web.
Part of the open web platform
How Does this Work?
The web platform can be thought of as having two parts:
- A set of Web APIs that the Web app can call to control web browser/device functionality.