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) {
|
if (map) {
|
||||||
return {
|
return {
|
||||||
code: result.css.toString(),
|
code: result.css.toString(),
|
||||||
map: merge(
|
map: merge(map, JSON.parse(result.map.toString())),
|
||||||
map,
|
|
||||||
result.map.toJSON
|
|
||||||
? result.map.toJSON()
|
|
||||||
: JSON.parse(result.map.toString()),
|
|
||||||
),
|
|
||||||
errors: [],
|
errors: [],
|
||||||
dependencies,
|
dependencies,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue