Skip to content

Commit

Permalink
Added post exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Dec 17, 2024
1 parent 647cca6 commit 6b79804
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions umd/src/System.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ class System {
module.getExports();
await postResolve;
module.isResolved = true;
if (module.postExports) {
module.postExports();
}

if (module.dynamicImports) {
for (const iterator of module.dynamicImports) {
if (iterator.replacedModule.importPromise) {
continue;
}
await this.import(iterator.replacedModule);
}
}
return module.exports;
};
resolve(module);
Expand Down

0 comments on commit 6b79804

Please sign in to comment.