File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,12 @@ export const getTsOptionsToExtend = (config: d.ValidatedConfig): ts.CompilerOpti
2626 // if the `DIST_TYPES` output target is present then we'd like to emit
2727 // declaration files
2828 declaration : config . outputTargets . some ( isOutputTargetDistTypes ) ,
29- module : ts . ModuleKind . ESNext ,
30- moduleResolution : ts . ModuleResolutionKind . NodeJs ,
31- noEmitOnError : false ,
29+ module : config . tsCompilerOptions ?. module || ts . ModuleKind . ESNext ,
30+ moduleResolution :
31+ config . tsCompilerOptions ?. moduleResolution === ts . ModuleResolutionKind . Bundler
32+ ? ts . ModuleResolutionKind . Bundler
33+ : ts . ModuleResolutionKind . NodeJs ,
34+ noEmitOnError : config . tsCompilerOptions ?. noEmitOnError || false ,
3235 outDir : config . cacheDir || config . sys . tmpDirSync ( ) ,
3336 sourceMap : config . sourceMap ,
3437 inlineSources : config . sourceMap ,
You can’t perform that action at this time.
0 commit comments