We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 832a4f8 + 8acd32a commit 17237aeCopy full SHA for 17237ae
tasks/util/strict_d3.js
@@ -18,7 +18,7 @@ module.exports = transformTools.makeRequireTransform('requireTransform',
18
var pathOut;
19
20
if(pathIn === 'd3' && opts.file !== pathToStrictD3Module) {
21
- pathOut = 'require(\'' + pathToStrictD3Module + '\')';
+ pathOut = 'require(' + JSON.stringify(pathToStrictD3Module) + ')';
22
}
23
24
if(pathOut) return cb(null, pathOut);
0 commit comments