diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d97591b..6b809f16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [4.6.1](https://github.com/vuejs/repl/compare/v4.6.0...v4.6.1) (2025-06-13) + + +### Bug Fixes + +* the line number offset in the DEV ([#344](https://github.com/vuejs/repl/issues/344)) ([cc292d3](https://github.com/vuejs/repl/commit/cc292d3dba25ac872edf147e14b6c9bbf6a0c577)) + + + # [4.6.0](https://github.com/vuejs/repl/compare/v4.5.1...v4.6.0) (2025-06-13) diff --git a/package.json b/package.json index a248e83f..f903b846 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vue/repl", - "version": "4.6.0", + "version": "4.6.1", "description": "Vue component for editing Vue components", "packageManager": "pnpm@9.15.5", "type": "module", diff --git a/src/sourcemap.ts b/src/sourcemap.ts index 40d50f98..3ecdf477 100644 --- a/src/sourcemap.ts +++ b/src/sourcemap.ts @@ -40,7 +40,7 @@ export function getSourceMap( templateMap as Omit as TraceEncodedSourceMap, ) const offset = - (trimAnalyzedBindings(scriptCode).match(/\r?\n/g)?.length ?? 0) + 1 + (trimAnalyzedBindings(scriptCode).match(/\r?\n/g)?.length ?? 0) eachMapping(tracer, (m) => { if (m.source == null) return addMapping(gen, {