fix error line shift for bundled files
This commit is contained in:
parent
38806c13f5
commit
980bf30323
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export function parseMergedOutputs(mergedOutputs: MergedOutputs, opts: MergedOut
|
|||
const shiftSourceName = opts.shiftSourceLines && opts.shiftSourceLines.sourcePath;
|
||||
const getLine = (path: string, lineStr: string) => {
|
||||
const line = Number(lineStr);
|
||||
if (shiftSourceName && (path == shiftSourceName)) {
|
||||
if (shiftSourceName && path.endsWith(shiftSourceName)) {
|
||||
return line - opts.shiftSourceLines!.skipLines;
|
||||
} else {
|
||||
return line;
|
||||
|
|
|
|||
Loading…
Reference in a new issue