Skip to content

Commit cc292d3

Browse files
authored
fix: the line number offset in the DEV (#344)
1 parent 51082c8 commit cc292d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sourcemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function getSourceMap(
4040
templateMap as Omit<RawSourceMap, 'version'> as TraceEncodedSourceMap,
4141
)
4242
const offset =
43-
(trimAnalyzedBindings(scriptCode).match(/\r?\n/g)?.length ?? 0) + 1
43+
(trimAnalyzedBindings(scriptCode).match(/\r?\n/g)?.length ?? 0)
4444
eachMapping(tracer, (m) => {
4545
if (m.source == null) return
4646
addMapping(gen, {

0 commit comments

Comments
 (0)