We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 675330b commit 2f69167Copy full SHA for 2f69167
packages/compiler-sfc/src/parse.ts
@@ -258,17 +258,19 @@ function generateSourceMap(
258
const originalLine = index + 1 + lineOffset
259
const generatedLine = index + 1
260
for (let i = 0; i < line.length; i++) {
261
- map.addMapping({
262
- source: filename,
263
- original: {
264
- line: originalLine,
265
- column: i
266
- },
267
- generated: {
268
- line: generatedLine,
269
270
- }
271
- })
+ if (!/\s/.test(line[i])) {
+ map.addMapping({
+ source: filename,
+ original: {
+ line: originalLine,
+ column: i
+ },
+ generated: {
+ line: generatedLine,
+ }
272
+ })
273
274
}
275
276
})
0 commit comments