angular-architects / module-federation-plugin

MIT License
683 stars 184 forks source link

fix(nf): Inject `importmap-shim` to the `<head>` instead of the end of the `<body>` #499

Closed jogelin closed 2 months ago

jogelin commented 2 months ago

Current Behaviour

In the initFederation function, the importmap-shim script is injected at last in the <body>:

image

**In that use case it is not needed because it is injected afterward and loaded dynamically by esms-module-shims

Expected/Implementation

Inject the import maps in the <head> section instead of the <body>