Skip to content

Commit 9897a1f

Browse files
Merge pull request #499 from jogelin/inject-importmap-to-head
fix(nf): Inject `importmap-shim` to the `<head>` instead of the end of the `<body>`
2 parents 7edb1f1 + 2c687f1 commit 9897a1f

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)