lib/index.js
function AssemblyScriptLiveLoader(source) {
    var jsModule;
    var wasmModule;
    if (this.cacheable) {
        this.cacheable();
    }
    this.addDependency(wasmFooterPath);
    jsModule = createJsModule(source);
    wasmModule = createWasmModule(source, compile(source));
    return createCompatibleModule(jsModule, wasmModule);
}
function AssemblyScriptLiveLoader(source) {
    var jsModule;
    var wasmModule;
    if (this.cacheable) {
        this.cacheable();
    }
    this.addDependency(wasmFooterPath);
    jsModule = createJsModule(source);
    wasmModule = createWasmModule(source, compile(source));
    return createCompatibleModule(jsModule, wasmModule);
}
function AssemblyScriptLiveLoader ( source ) { var jsModule ; var wasmModule ; if ( this . cacheable ) { this . cacheable ( ) ; } this . addDependency ( wasmFooterPath ) ; jsModule = createJsModule ( source ) ; wasmModule = createWasmModule ( source , compile ( source ) ) ; return createCompatibleModule ( jsModule , wasmModule ) ; }
Webpack loader for assemblyscript to transform wasm and bundle it
@param {string} source - assemblyscript source file
@returns {string} module string
Webpack loader for assemblyscript to transform wasm and bundle it