1.0.3 • Published 3 years ago
encoded-uint8array-loader v1.0.3
encoded-uint8array-loader
Encoded byte array (Uint8Array) loader for webpack.
Optimized vs bin-loader because output is around 30% smaller.
Installation
# npm install encoded-uint8array-loaderUsage
This is the module.rules option to inline a .wasm file as a Uint8Array:
{ test: /\.wasm$/, type: 'javascript/auto', loader: 'encoded-uint8array-loader' }Credits
Song (github.com/pawsong) for code from their bin-loader
License
MIT