mirror of https://github.com/vuejs/core.git
fix(compiler-sfc): fix scss source map regression
close #9970 close #9969
This commit is contained in:
parent
0160264d67
commit
71d3121b72
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue