From 8d725e2e11ec5e11a2c3ee37aecae61a95d5184d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 15 Mar 2022 09:45:49 +0100 Subject: [PATCH] fix(core): update --- ts/tsbuild.classes.compiler.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/tsbuild.classes.compiler.ts b/ts/tsbuild.classes.compiler.ts index 185ce1b..cb3127e 100644 --- a/ts/tsbuild.classes.compiler.ts +++ b/ts/tsbuild.classes.compiler.ts @@ -52,6 +52,10 @@ export const mergeCompilerOptions = ( ...argvArg && argvArg.allowimplicitany ? { noImplicitAny: false } : {}, + ...argvArg && argvArg.commonjs ? { + module: plugins.typescript.ModuleKind.CommonJS, + moduleResolution: plugins.typescript.ModuleResolutionKind.Classic, + } : {}, }; return mergedOptions;