This repository was archived by the owner on Aug 4, 2021. It is now read-only.
Tags: rollup/rollup-plugin-wasm
Tags
feat: simplify wasm imports See previous commits, this incudes no changes and is only to trigger release. I messed up the semantic-version formatting. BREAKING CHANGE: A function is now imported instead of the module. You must change your code from something like this: ```js import sample from './sample.wasm' // Using WebAssebly.Module cache(sample) WebAssembly.instantiate(sample, imports).then(res => { // ... }) ``` To this: ```js import sample from './sample.wasm' sample(imports).then(res => { cache(res.module) // ... })