Skip to content

Commit 2c687f1

Browse files
committed
fix(nf): Inject importmap-shim to the <head> instead of the end of the <body>
1 parent 16630ae commit 2c687f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/native-federation-runtime/src/lib/utils/add-import-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ImportMap } from '../model/import-map';
22

33
export function appendImportMap(importMap: ImportMap) {
4-
document.body.appendChild(
4+
document.head.appendChild(
55
Object.assign(document.createElement('script'), {
66
type: 'importmap-shim',
77
innerHTML: JSON.stringify(importMap),

0 commit comments

Comments
 (0)