You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to add a script which type is 'importmap' into top of head, but all solution is failed. The official custom head config, will add script into end of head, this causes 'importmap' to fail to work.
I think importmap should have a special handling and be directly added to the HTML at compile time (even in dev mode) and not added at runtime by useUpdateHead.
When declaring a head element with ['script', { type: 'importmap' }, ``....``] I get the following error (french):
Les mappages d’importation ne sont pas autorisés après le chargement d’un module ou le démarrage du préchargement.
Which roughly transletes to
Import mapping are not autorised after a module has been loaded or after the preloading has begun.
Has I understand it, importmap scripts cannot be added dynamically to the page.
Is your feature request related to a problem? Please describe.
I want to add a script which type is 'importmap' into top of head, but all solution is failed. The official custom head config, will add script into end of head, this causes 'importmap' to fail to work.
Describe the solution you'd like
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: