We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee22bdc commit 79935fbCopy full SHA for 79935fb
index.js
@@ -45,7 +45,7 @@ module.exports = function(source) {
45
// compile and generate sourcemaps
46
const {code, map} = compile(
47
source,
48
- Object.assign(opts, { sourcemap: this.sourceMap }),
+ Object.assign(opts, { sourcemap: opts.sourcemap != null ? opts.sourcemap : this.sourceMap }),
49
this.resourcePath
50
)
51
@@ -68,4 +68,4 @@ module.exports = function(source) {
68
if (map) this.callback(null, output, map.toJSON())
69
70
return output
71
-}
+}
0 commit comments