Can we use JavaScript modules in CEP UI?
Hi,
we're building a CEP-based UI for Adobe Illustrator 2023. Our panel's HTML code contains a script tag as follows:
<script type="module" crossorigin src="./index.js"></script>The page fails to load in the Illustrator panel because the engine complains that the index.js file is returned with MIME type "" while the specification requires "text/javascript" for JavaScript files loaded as type="module". If the files are served locally (not sure yet), CORS errors might also appear according to the previously linked MDN page.
Is there a way how to use JavaScript modules in CEP UI? Or do we need to find a way how to compile the source as a non-module JavaScript? Thanks.
