We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc4a123 commit e53303bCopy full SHA for e53303b
packages/angular/mf/mf.ts
@@ -58,9 +58,12 @@ async function loadRemoteContainer(remoteName: string) {
58
? remoteUrlDefinitions[remoteName]
59
: await resolveRemoteUrl(remoteName);
60
61
- const containerUrl = `${remoteUrl}${
62
- remoteUrl.endsWith('/') ? '' : '/'
63
- }remoteEntry.mjs`;
+ let containerUrl = remoteUrl;
+ if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {
+ containerUrl = `${remoteUrl}${
64
+ remoteUrl.endsWith('/') ? '' : '/'
65
+ }remoteEntry.mjs`;
66
+ }
67
68
const container = await loadModule(containerUrl);
69
await container.init(__webpack_share_scopes__.default);
0 commit comments