1.0.3 • Published 1 year ago

encoded-uint8array-loader v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

encoded-uint8array-loader

NPM Version

Encoded byte array (Uint8Array) loader for webpack.

Optimized vs bin-loader because output is around 30% smaller.

Installation

# npm install encoded-uint8array-loader

Usage

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

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago