Commit 6d4c90f
committed
Fix path construction to handle both bsb and rewatch
bsb passes path='.' and expects source_subdir to be extracted from output_prefix.
rewatch passes path=file_path.parent() which already contains the full directory.
Now check if path is a base directory (., lib/es6, etc.) and only then
extract source_subdir from output_prefix. Otherwise use path as-is.1 parent 4b9142e commit 6d4c90f
2 files changed
Lines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | 307 | | |
310 | | - | |
311 | | - | |
| 308 | + | |
| 309 | + | |
312 | 310 | | |
313 | 311 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
320 | 326 | | |
321 | 327 | | |
322 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments