playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
160 stars 28 forks source link

Incorrect URL in ESM parsing #1143

Closed marklundin closed 5 months ago

marklundin commented 7 months ago

Currently when parsing an invalid ESM Scripts in the editor, the UI will display any errors, however urls of module dependancies are displayed as blob urls which provide little indication of where the error occured.

image

Ideally they should provide the correct url to the relevant module.

This is due to the way es-module-shims constructs blob urls during module resolution. https://github.com/guybedford/es-module-shims/issues/416

marklundin commented 5 months ago

Closing as this will be addressed in https://github.com/playcanvas/editor-ui/pull/264