editor
editor copied to clipboard
Monaco support for ES Modules
Our Monaco implementation can provide a better DX for working with ES Modules. This is a non-exhaustive list of ideas that can improve the experience.
- [ ] Auto imports - Detect when a symbol is exported from another module and show option to auto-import
- [ ] Import paths - When importing a relative module, Monaco should auto-complete the path
- [ ] Import docs - Show documentation tooltips for imported symbol (https://github.com/playcanvas/editor-ui/pull/210)
- [ ] Support 'static' - Our current Monaco version doesn't show correct highlighting for 'static' members
- [ ] Code transforming - For better DX, provide a shorthand for migrating from a ES5 script to an ESM Script, by performing a code transformation shortcut