broccoli-rust2wasm
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -101,5 +101,7 @@ "use strict"; | ||
return `${toBuffer} | ||
export default async (imports) => | ||
const mod = await WebAssembly.compile(${deserialized}); | ||
return (await WebAssembly.instantiate(mod, imports)).exports;`; | ||
export default (imports) => { | ||
return WebAssembly.compile(${deserialized}) | ||
.then((mod) => WebAssembly.instantiate(mod, imports)) | ||
.then((m) => m.exports) | ||
}`; | ||
} | ||
@@ -106,0 +108,0 @@ else { |
{ | ||
"name": "broccoli-rust2wasm", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "broccoli plugin to build rust to wasm", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
17623
254