Is it possible to use modules (import, export) in C3 SDK addon external script files?
Right now it does not seem possible, because the external script files are not referenced with the module type in the generated index.html? Is there a way to change this or a different external file dependency type to use?
Also, I am not sure this is another problem, but in preview, it _seems_ like when trying import, the path may not be intercepted by the service worker to change to something appropriate for import/export (in the way that included C3 project JS scripts do?) Heavy speculation here. The reason I suspect this is I see different import/export error messages in preview compared to using HTML5 project (HTML5 project error is just related to script not having a module tag.)
This is the error I get on preview:
Uncaught TypeError: Failed to resolve module specifier "./spine-gl-cache.js". Invalid relative url or base scheme isn't hierarchical.