diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index 8ab309b332cfb2e62b1b1cdde9b02de1e4a15764..e5173944ca7bd6523e2a5a47e586b34ef7c0344b 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -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); }