Skip to content

Commit

Permalink
Merge branch 'main' into layers-support
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy authored Nov 25, 2024
2 parents 514cf03 + e26d107 commit be6c95c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-experts-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/runtime': patch
---

add @vite-ignore for dynamic import in loadEsmEntry
4 changes: 3 additions & 1 deletion packages/runtime/src/utils/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ async function loadEsmEntry({
return new Promise<RemoteEntryExports>((resolve, reject) => {
try {
if (!remoteEntryExports) {
import(/* webpackIgnore: true */ entry).then(resolve).catch(reject);
import(/* webpackIgnore: true */ /* @vite-ignore */ entry)
.then(resolve)
.catch(reject);
} else {
resolve(remoteEntryExports);
}
Expand Down

0 comments on commit be6c95c

Please sign in to comment.