This patch, based on commit https://github.com/Microsoft/TypeScript/commit/beebda3574be7f9a51f33ac24ab117f696ca9055, will add Intellisense support to projects which utilise the .mjs file extension for JavaScript modules.
- I have only used this from within
tsserver
. I did not attempt to use thetsc
tool to do any kind of compilation of .mjs files. - This patch causes
tsserver
to treat all .mjs files as regular JavaScript files. This might be semantically wrong since these files have different semantics.