I pretty much copied this API from wasmify. Coming from Browserify, the API is more limited. Something better could be made with Rollup.
For example, no more promise imports:
import example from './example.wat'
example.main()
This would be possible by wrapping the entire bundle in a promise that resolves your WASM modules, so wherever they are imported you just receive the functions.
I pretty much copied this API from
wasmify
. Coming from Browserify, the API is more limited. Something better could be made with Rollup.For example, no more promise imports:
This would be possible by wrapping the entire bundle in a promise that resolves your WASM modules, so wherever they are imported you just receive the functions.