Skip to content

Conversation

jogelin
Copy link
Contributor

@jogelin jogelin commented Mar 11, 2024

Current Behaviour

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

image
  • Usually, it is better to have the import maps earlier because it can be used by other scripts.
  • It should be also specified before the esms-module-shims library (which is located in the polyfills.js)**

**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>

@manfredsteyer manfredsteyer merged commit 9897a1f into angular-architects:main Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants