We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d7f2c3 commit cd6eec1Copy full SHA for cd6eec1
lib/wasm/WasmMainTemplatePlugin.js
@@ -102,7 +102,7 @@ function generateImportObject(module) {
102
return Template.asString([
103
`${JSON.stringify(module.id)}: function() {`,
104
Template.indent([
105
- `return Promise.all([${promises}]).then(function(array) {`,
+ `return Promise.resolve().then(function() { return Promise.all([${promises}]); }).then(function(array) {`,
106
107
variables,
108
"return {",
0 commit comments