fix(compiler-sfc): fix scss source map regression

close #9970
close #9969
This commit is contained in:
Evan You 2024-01-03 17:45:57 +08:00
parent 0160264d67
commit 71d3121b72
1 changed files with 1 additions and 6 deletions

View File

@ -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,
}