-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve
paths
from tsconfig that defined it (#62)
- Loading branch information
1 parent
785457b
commit 4b5f839
Showing
5 changed files
with
181 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* When a tsconfig extends another file with relative `paths` entries and the final tsconfig | ||
* doesn't have a `baseUrl` set, the relative paths are resolved relative to the tsconfig that | ||
* defined the `paths` | ||
* | ||
* However, this is impossible to compute from a flattened tsconfig, because we no longer know | ||
* the path of the tsconfig that defined the `paths` entry. | ||
* | ||
* This is why we store the implicit baseUrl in the flattened tsconfig, so that the pathsMatcher | ||
* can use it to resolve relative paths. | ||
*/ | ||
export const implicitBaseUrlSymbol = Symbol('implicitBaseUrl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters