fix(js): Use correctly resolved path to tsconfig in readTsConfigWithRemappedPaths() (#30156)

## 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 <leosvel.perez.espinosa@gmail.com>
This commit is contained in:
Joshua Carter 2025-04-08 05:39:56 -07:00 committed by GitHub
parent 64030f55b5
commit 2fd964fd3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,7 @@ function readTsConfigWithRemappedPaths(
normalizedTsConfig
);
generatedTsConfig.compilerOptions.paths = computeCompilerOptionsPaths(
originalTsconfigPath,
normalizedTsConfig,
dependencies
);