This repository was archived by the owner on Aug 4, 2021. It is now read-only.
3.0.0 (2018-02-17)
Features
- simplify wasm imports (ace7b2a)
BREAKING CHANGES
- A function is now imported instead of the module. You must
change your code from something like this:
import sample from './sample.wasm'
// Using WebAssebly.Module
cache(sample)
WebAssembly.instantiate(sample, imports).then(res => {
// ...
})To this:
import sample from './sample.wasm'
sample(imports).then(res => {
cache(res.module)
// ...
})