Skip to content

Commit

Permalink
fix: undefined when source map undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Dec 7, 2017
1 parent 05c36db commit 4619ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/loader.js
Expand Up @@ -110,7 +110,7 @@ module.exports = function(content, map) {
}

var moduleJs;
if(query.sourceMap && result.map) {
if(sourceMap && result.map) {
// add a SourceMap
map = result.map;
if(map.sources) {
Expand All @@ -129,7 +129,7 @@ module.exports = function(content, map) {
// embed runtime
callback(null, "exports = module.exports = require(" +
loaderUtils.stringifyRequest(this, require.resolve("./css-base.js")) +
")(" + query.sourceMap + ");\n" +
")(" + sourceMap + ");\n" +
"// imports\n" +
importJs + "\n\n" +
"// module\n" +
Expand Down

0 comments on commit 4619ee7

Please sign in to comment.