Skip to content

Commit

Permalink
fix: stringify the options.transform request (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
liady authored and michael-ciniawsky committed May 8, 2017
1 parent 75d67a8 commit 5888095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -16,7 +16,7 @@ module.exports.pitch = function(remainingRequest) {
"if(typeof content === 'string') content = [[module.id, content, '']];",
"// Prepare cssTransformation",
"var transform;",
query.transform ? "transform = require('" + path.resolve(query.transform) + "');" : "",
query.transform ? "transform = require(" + loaderUtils.stringifyRequest(this, "!" + path.resolve(query.transform)) + ");" : "",
"var options = " + JSON.stringify(query),
"options.transform = transform",
"// add the styles to the DOM",
Expand Down

0 comments on commit 5888095

Please sign in to comment.