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 9d6172e commit 67ea678Copy full SHA for 67ea678
.changeset/big-bulldogs-matter.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/runtime': patch
3
4
+
5
+checking for remote entry type when loading assets
packages/runtime/src/utils/preload.ts
@@ -210,6 +210,7 @@ export function preloadAssets(
210
cb: () => {},
211
attrs: {
212
fetchpriority: 'high',
213
+ type: remoteInfo?.type === 'module' ? 'module' : 'text/javascript',
214
},
215
createScriptHook: (url: string) => {
216
const res = host.loaderHook.lifecycle.createScript.emit({
0 commit comments