Skip to content

Commit 0dccfa9

Browse files
evilebottnawimichael-ciniawsky
authored andcommitted
fix(loader): correctly check if source map is undefined (#641)
1 parent d999f4a commit 0dccfa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/loader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function(content, map) {
110110
}
111111

112112
var moduleJs;
113-
if(query.sourceMap && result.map) {
113+
if(sourceMap && result.map) {
114114
// add a SourceMap
115115
map = result.map;
116116
if(map.sources) {
@@ -129,7 +129,7 @@ module.exports = function(content, map) {
129129
// embed runtime
130130
callback(null, "exports = module.exports = require(" +
131131
loaderUtils.stringifyRequest(this, require.resolve("./css-base.js")) +
132-
")(" + query.sourceMap + ");\n" +
132+
")(" + sourceMap + ");\n" +
133133
"// imports\n" +
134134
importJs + "\n\n" +
135135
"// module\n" +

0 commit comments

Comments
 (0)