Skip to content

Commit c855406

Browse files
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

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [1.0.8] - 2025-01-02
4+
5+
### Added
6+
- Improved path resolution with suffix matching for self-referential source maps
7+
- Better handling when source map paths share parent directories with map file location
8+
9+
### Fixed
10+
- Source maps with paths like "examples/uwu/file.js" now correctly resolve when the map file is in "examples/uwu/"
11+
- Both generated file and source file resolution now handle shared directory structures
12+
313
## [1.0.7] - 2025-01-02
414

515
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "source-map-visualizer",
33
"displayName": "Source Map Visualizer",
44
"description": "Advanced source map visualization and visual mapping editor for VSCode",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"engines": {
77
"vscode": "^1.74.0"
88
},

0 commit comments

Comments
 (0)