systemjs-plugin-wasm
v1.0.1-beta
Published
SystemJS plugin for loading and instanciating Web Assembly modules
Downloads
7
Maintainers
Readme
systemjs-plugin-wasm
SystemJS plugin for loading and instanciating Web Assembly modules
Installation
npm
npm install systemjs-plugin-wasm
jspm
jspm install wasm
Configuration
Create a map configuration to the plugin:
System.config({
map: {
'wasm': 'node_modules/systemjs-plugin-wasm/wasm.js'
}
})
Usage
With package config and an extension:
const myApi = (await System.import('myWebAssemblyModule.wasm!')).default;
myApi.myFunction();