Commit c855406
committed
feat: Improve path resolution with suffix matching for self-referential source maps
- Add suffix path matching to correctly resolve paths when source map and referenced files share parent directories
- Fix issue where paths like "examples/uwu/file.js" weren't resolving when map file was in "examples/uwu/"
- Both generated file and source file resolution now handle shared directory structures
- Ensure path overlap matching happens at the end of paths (suffix matching), not arbitrary subsets
This improves source map visualization for projects where the map file is located in the same directory structure as the files it references.1 parent 9d9fa65 commit c855406
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments