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
index.html imports an ES module like this: <script type="module" src="js/main.js"></script> - so far OK
js/main.js imports from another JS file like import { foo } from './foo.js' - that's when it fails, because Magic Sandbox does not support ES modules properly
Potential solution:
Extend the V2 runtime environment to use <script type="module> in the main entry point
It has to be backwards compatible, so we could introduce a config option or something to switch from using browser globals to use proper ESM via importmap
When we split up an HTML file into script tags with type="module", the runtime environment doesn't seem to be working properly.
Example: https://vizhub.com/curran/3d-fractal-tree/60c90d44f42c4f1585bd3cac59f22cfc?edit=files&file=index.html&tabs=js%2Fground.js%7Eindex.html
This code should work correctly:
It doesn't pull in the
main.js
.The text was updated successfully, but these errors were encountered: