We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ec604 commit cd7980eCopy full SHA for cd7980e
lib/wasm/WasmMainTemplatePlugin.js
@@ -143,6 +143,10 @@ class WasmMainTemplatePlugin {
143
"// object to store loaded and loading wasm modules",
144
"var installedWasmModules = {};",
145
"",
146
+ // This function is used to delay reading the installed wasm module promises
147
+ // by a microtask. Sorting them doesn't help because there are egdecases where
148
+ // sorting is not possible (modules splitted into different chunks).
149
+ // So we not even trying and solve this by a microtask delay.
150
"function promiseResolve() { return Promise.resolve(); }",
151
152
"var wasmImportObjects = {",
0 commit comments