Skip to content

yurydelendik/system-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System.js loader for WASM modules

Helper for WebAssembly file, to be loaded as module.

Including in a project

For using with system.js:

System.config({
    map: {
        wasm: 'system-wasm'
    }
});

To use and wasm file as module, just call e.g.:

var wasmModule = require('./module.wasm!');   

Execution of the wasm module

If the global Wasm object is present (WebAssembly is enabled for browser), it will use Wasm.instantiateModule, otherwise it will fallback on the binaryen's wasm.js (needs to be explicitly included as script).

About

System.js loader for WASM modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published