We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b7d04d commit ab9ca86Copy full SHA for ab9ca86
1 file changed
src/replace.js
@@ -3,6 +3,13 @@ const prefix = "/*" + magic;
3
const postfix = magic + "*/";
4
5
export async function preProcess(code) {
6
+ globalThis.WebAssembly.instantiateStreaming =
7
+ globalThis.WebAssembly.instantiateStreaming ??
8
+ (async (source, importObject) => {
9
+ const response = await Promise.resolve(source);
10
+ const buffer = await response.arrayBuffer();
11
+ return WebAssembly.instantiate(buffer, importObject);
12
+ });
13
const assemblyscript = await import("assemblyscript");
14
const NodeKind = assemblyscript.NodeKind;
15
const visitDecorators = (node) => {
0 commit comments