Commit 2bc41773 authored by James Friend's avatar James Friend
Browse files

code style fixes

parent 015ee2ed
5 merge requests!28721Hot test,!13824Allow npm package to be resolved via node module resolution,!16605Test pull please ignore,!22103test,!25326Adjust examples
Showing with 1 addition and 2 deletions
+1 -2
......@@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
function srcPathToDestRequire(srcFilepath) {
var requirePath = path.relative(destDir, srcFilepath);
return "require('"+requirePath+"')";
return 'require(\'' + requirePath + '\')';
}
var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
try {
fs.writeFileSync(destFilepath, moduleOutputJs);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment