[ 
https://issues.apache.org/jira/browse/WICKET-7187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090463#comment-18090463
 ] 

Johan Stuyts commented on WICKET-7187:
--------------------------------------

Not The PR is not ready yet. Firefox cannot handle multiple import maps in the 
same document: 
[https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#browser_compatibility]

I am looking into it, but merging all import maps may have quite an impact, so 
it could take me a while to find a good solution.

> JavaScript header items: `module` for content, and import maps
> --------------------------------------------------------------
>
>                 Key: WICKET-7187
>                 URL: https://issues.apache.org/jira/browse/WICKET-7187
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-core
>            Reporter: Johan Stuyts
>            Priority: Major
>
> A number of JavaScript components has stopped providing 
> [UMD|https://github.com/umdjs/umd] builds, and provide [ECMAScript 
> modules|https://tc39.es/ecma262/#sec-modules] instead. To be able to use 
> those modules, JavaScript in the header must also be a module. But currently 
> it is not possible to specify the type for 
> {{{}JavaScriptContentHeaderItem{}}}.
> Additionally, modules use "[bare 
> modules|https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#bare_modules]";
>  to import dependencies, and these bare modules need to be mapped to the URLs 
> of resource references so the JavaScript can be loaded.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to