From 2fd964fd3fa581b39bcc10a7e69c59a639e18a44 Mon Sep 17 00:00:00 2001 From: Joshua Carter Date: Tue, 8 Apr 2025 05:39:56 -0700 Subject: [PATCH] fix(js): Use correctly resolved path to tsconfig in readTsConfigWithRemappedPaths() (#30156) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Current Behavior When `buildLibsFromSource: false`, webpack fails to resolve custom entries in the tsconfig `paths` ## Expected Behavior The tsconfig paths will be correctly loaded by webpack and resolved. ## Related Issue(s) Fixes #30155. Co-authored-by: Leosvel Pérez Espinosa --- packages/js/src/utils/buildable-libs-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/js/src/utils/buildable-libs-utils.ts b/packages/js/src/utils/buildable-libs-utils.ts index 3212ae55ca..c85ff38e8a 100644 --- a/packages/js/src/utils/buildable-libs-utils.ts +++ b/packages/js/src/utils/buildable-libs-utils.ts @@ -213,7 +213,7 @@ function readTsConfigWithRemappedPaths( normalizedTsConfig ); generatedTsConfig.compilerOptions.paths = computeCompilerOptionsPaths( - originalTsconfigPath, + normalizedTsConfig, dependencies );