-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reporter): improve source map handling and reporting.
- Avoid prepending basepath to every file path. The original path is usually relative to the project, and much more meaningful than basepath + path, which is usually a long, absolute path. - Format as [mapped location] <- [original location] The mapped location is the more important part for users, it's the source file they are working on. - Resolve source map file paths relative to the original file path. It's common for tools that generate a source map to not have a complete understanding of what paths they should generate, in which case they just use the local path. An example tool is TypeScript. Resolving the path against the original file path makes these paths unambiguous in the project.
- Loading branch information
Showing
2 changed files
with
38 additions
and
20 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