mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Merge pull request #3264 from nnnnoel/patch-2
Add CommonJS, ESM extension for TS
This commit is contained in:
commit
4a80f8e852
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ declare var require: any;
|
||||||
|
|
||||||
registerLanguage({
|
registerLanguage({
|
||||||
id: 'typescript',
|
id: 'typescript',
|
||||||
extensions: ['.ts', '.tsx'],
|
extensions: ['.ts', '.tsx', '.cts', '.mts'],
|
||||||
aliases: ['TypeScript', 'ts', 'typescript'],
|
aliases: ['TypeScript', 'ts', 'typescript'],
|
||||||
mimetypes: ['text/typescript'],
|
mimetypes: ['text/typescript'],
|
||||||
loader: (): Promise<any> => {
|
loader: (): Promise<any> => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue