Commit 7c382b5
committed
Fix Windows path handling in module-details-from-path
On Windows, module-details-from-path only works with backslash-separated
paths. Bundlers (esbuild, vite, rollup) normalize paths to forward slashes
on all platforms, causing module-details-from-path to return null on Windows.
This fix normalizes bundler paths to use the platform-native separator
before passing to module-details-from-path, ensuring it works correctly
on Windows.
Fixes path matching issues that prevented instrumentation on Windows builds.1 parent 2e4a083 commit 7c382b5
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments