fix(react): extracting the tsconfig base should also copy existing paths (#16936)
This commit is contained in:
parent
2e16017fd8
commit
392312f847
@ -15,6 +15,7 @@ export const tsConfigBaseOptions = {
|
|||||||
skipLibCheck: true,
|
skipLibCheck: true,
|
||||||
skipDefaultLibCheck: true,
|
skipDefaultLibCheck: true,
|
||||||
baseUrl: '.',
|
baseUrl: '.',
|
||||||
|
paths: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
export function extractTsConfigBase(host: Tree) {
|
export function extractTsConfigBase(host: Tree) {
|
||||||
@ -22,6 +23,7 @@ export function extractTsConfigBase(host: Tree) {
|
|||||||
|
|
||||||
const tsconfig = readJson(host, 'tsconfig.json');
|
const tsconfig = readJson(host, 'tsconfig.json');
|
||||||
const baseCompilerOptions = {} as any;
|
const baseCompilerOptions = {} as any;
|
||||||
|
|
||||||
for (let compilerOption of Object.keys(tsConfigBaseOptions)) {
|
for (let compilerOption of Object.keys(tsConfigBaseOptions)) {
|
||||||
baseCompilerOptions[compilerOption] =
|
baseCompilerOptions[compilerOption] =
|
||||||
tsconfig.compilerOptions[compilerOption];
|
tsconfig.compilerOptions[compilerOption];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user