Support more TypeScript/JavaScript file extensions #11238
Unanswered
shrinktofit
asked this question in
Ideas
Replies: 1 comment
-
It doesn't seem to see too obvious a benefit, and we still recommend staying unified at this stage. For third party modules, we can support importing mts if needed. But it does not feel necessary to create mts scripts in editor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now that TypeScript 4.7 was released, it eventually implemented full Node.js ESM support. It introduces new file extensions: .mts, .cts which corresponding to .mjs, .cjs respectively. We're planing to land TypeScript 4.7 into ~3.6 and It'd be better if we can support these extensions.
Basic support, including:
Editor recognizes them as script assets(i.e allocates UUIDs to them).
Module resolution algorithm.
.mjs/.cjs should not be imported as "plugin script".
Document and teach.
Possible asset creation menu change? Shall we add new menu items into asset creation menu to create .mts or .cts files?
Beta Was this translation helpful? Give feedback.
All reactions