From 52212d3bb633a61cdcd1f56d631d88b918af6652 Mon Sep 17 00:00:00 2001 From: Stuart Hudson Date: Sat, 31 Dec 2022 11:01:19 +1100 Subject: [PATCH] Add support for mts/mjs & cts/cjs files Added support for compilation of `.mts` to `.mjs` files and `.cts` to `.cjs` files --- lib/compiler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/compiler.ts b/lib/compiler.ts index de75edb0..171db278 100644 --- a/lib/compiler.ts +++ b/lib/compiler.ts @@ -155,6 +155,8 @@ export class ProjectCompiler implements ICompiler { const [, extension] = utils.splitExtension(fileName, ['d.ts', 'd.ts.map']); switch (extension) { case 'js': + case 'mjs': + case 'cjs': case 'jsx': file.jsFileName = fileName; file.jsContent = content;