Skip to content

Commit

Permalink
importPromise fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Dec 17, 2024
1 parent 64e15b1 commit b89bb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umd/src/AmdLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class AmdLoader {
return m;
}
if (module.isResolved) {
module.importPromise = Promise.resolve(module.getExports());
module.importPromise ??= Promise.resolve(module.getExports());
return module.importPromise;
}
module.importPromise = this.importAsync(module);
Expand Down

0 comments on commit b89bb2b

Please sign in to comment.