Commit 27606c1
committed
fix: Adapt to node's removal of the module header
As of version 11.11.0 (and backported to 10.16), node automatically strips
the module closure header from the module source code. So, the fix for that
caused off-by-one errors in the sourcemapped file.
Set the headerLength to 0 when it is known to not be present.1 parent 4a9c45d commit 27606c1
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
| |||
0 commit comments