Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

v3.0.0

Latest

Choose a tag to compare

@ColinEberhardt ColinEberhardt released this 17 Feb 00:38
· 7 commits to master since this release
ace7b2a

3.0.0 (2018-02-17)

Features

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)

  // ...
})