Merge pull request #3264 from nnnnoel/patch-2

Add CommonJS, ESM extension for TS
pull/3774/head v0.37.0-dev.20230310
Henning Dieterichs 2023-03-08 13:50:12 +01:00 committed by GitHub
commit 4a80f8e852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ declare var require: any;
registerLanguage({
id: 'typescript',
extensions: ['.ts', '.tsx'],
extensions: ['.ts', '.tsx', '.cts', '.mts'],
aliases: ['TypeScript', 'ts', 'typescript'],
mimetypes: ['text/typescript'],
loader: (): Promise<any> => {