Support for .mjs files (ESM module loader)



Node v8.5 shipped the ESM module loader feature behind a flag: node --experimental-modules index.jsm
It seems that you’re not currently supporting .mjs files at all.
No syntax highlighting and no hot reload are available for this type of files.

Is there any plan to support that feature?



I imagine so, yes. In the meantime, you can configure which file types trigger a restart on edit with use of a watch.json file. See

Syntax highlighting comes from our use of CodeMirror, so our support for it is downstream of their support.



The watch.json config goes already a long way.
Thanks for your help Gareth.



It seems like CodeMirror should have the ability to configure different extensions to different syntax highlighting. Is that possibly something that could be fixed on the Glitch side?