Skip to content

Commit

Permalink
fix(compiler-sfc): fix scss source map regression
Browse files Browse the repository at this point in the history
close #9970
close #9969
  • Loading branch information
yyx990803 committed Jan 3, 2024
1 parent 0160264 commit 71d3121
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/compiler-sfc/src/style/preprocessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ const scss: StylePreprocessor = (source, map, options, load = require) => {
if (map) {
return {
code: result.css.toString(),
map: merge(
map,
result.map.toJSON
? result.map.toJSON()
: JSON.parse(result.map.toString()),
),
map: merge(map, JSON.parse(result.map.toString())),
errors: [],
dependencies,
}
Expand Down

0 comments on commit 71d3121

Please sign in to comment.