{"library":"wasm-loader","type":"library","category":null,"description":"A Webpack loader that allows importing .wasm binary files directly into JavaScript bundles as constructor functions returning a Promise resolving to WebAssembly.Instance. Current stable version 1.3.0. It eliminates the need for manual fetch and instantiation, converting wasm bytes to Uint8Arrays embedded in the JS bundle. Differentiators include optional dead code elimination via `dce=1` query parameter and support for passing custom import objects. Requires Webpack and Node.js, with peer dependency on wasm-dce. Suitable for basic wasm modules; for complex Emscripten output, custom imports are necessary.","language":"javascript","status":"maintenance","version":"1.3.0","tags":["javascript","wasm","webassembly","webpack","loader"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install wasm-loader","imports":["import createInstance from './module.wasm'","import createInstance from './module.wasm?dce=1&exportedFunc'","import createInstance from './module.wasm'; createInstance({ 'env': { 'memory': new WebAssembly.Memory({initial: 100}) } })"]},{"cmd":"yarn add wasm-loader","imports":[]},{"cmd":"pnpm add wasm-loader","imports":[]}],"homepage":null,"github":"https://github.com/ballercat/wasm-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/wasm-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}