File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tsc-multi" ,
3- "version" : " 1.1.8 " ,
3+ "version" : " 1.1.9 " ,
44 "description" : " Compile multiple TypeScript projects into multiple targets." ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { trimSuffix } from "./utils";
44import assert from "assert" ;
55
66const JS_EXT = ".js" ;
7+ const MJS_EXT = ".mjs" ;
8+ const CJS_EXT = ".cjs" ;
79const JSON_EXT = ".json" ;
810
911function isRelativePath ( path : string ) : boolean {
@@ -70,6 +72,10 @@ export function createTransformer<T extends ts.SourceFile | ts.Bundle>(
7072
7173 const ext = extname ( node . text ) ;
7274
75+ if ( ext === MJS_EXT || ext === CJS_EXT ) {
76+ return node ;
77+ }
78+
7379 if ( ext === JSON_EXT && ctx . getCompilerOptions ( ) . resolveJsonModule ) {
7480 return node ;
7581 }
You can’t perform that action at this time.
0 commit comments