Description
To load a JavaScript file as a module that uses native import statements, it requires the type="module" parameter in the script tag:
<script type="module" src="myfile.js"></script>
It would be nice if we could specify this with $xwiki.jsfx.use(), similar to how defer is added:
$xwiki.jsfx.use('myfile.js', {'type': 'module'})
or even in conjunction with defer:
$xwiki.jsfx.use('myfile.js', {'defer': false, 'type': 'module'})