Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/big-bulldogs-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/runtime': patch
---

checking for remote entry type when loading assets
1 change: 1 addition & 0 deletions packages/runtime/src/utils/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export function preloadAssets(
cb: () => {},
attrs: {
fetchpriority: 'high',
type: remoteInfo?.type === 'module' ? 'module' : 'text/javascript',
},
createScriptHook: (url: string) => {
const res = host.loaderHook.lifecycle.createScript.emit({
Expand Down
Loading