Skip to content

Commit 5888095

Browse files
liadymichael-ciniawsky
authored andcommitted
fix: stringify the options.transform request (#230)
1 parent 75d67a8 commit 5888095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports.pitch = function(remainingRequest) {
1616
"if(typeof content === 'string') content = [[module.id, content, '']];",
1717
"// Prepare cssTransformation",
1818
"var transform;",
19-
query.transform ? "transform = require('" + path.resolve(query.transform) + "');" : "",
19+
query.transform ? "transform = require(" + loaderUtils.stringifyRequest(this, "!" + path.resolve(query.transform)) + ");" : "",
2020
"var options = " + JSON.stringify(query),
2121
"options.transform = transform",
2222
"// add the styles to the DOM",

0 commit comments

Comments
 (0)