Skip to content

Commit 17237ae

Browse files
authored
Merge pull request #1994 from plotly/fix-karma
Fix karma tests in windows
2 parents 832a4f8 + 8acd32a commit 17237ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tasks/util/strict_d3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = transformTools.makeRequireTransform('requireTransform',
1818
var pathOut;
1919

2020
if(pathIn === 'd3' && opts.file !== pathToStrictD3Module) {
21-
pathOut = 'require(\'' + pathToStrictD3Module + '\')';
21+
pathOut = 'require(' + JSON.stringify(pathToStrictD3Module) + ')';
2222
}
2323

2424
if(pathOut) return cb(null, pathOut);

0 commit comments

Comments
 (0)