diff options
author | isaacs <i@izs.me> | 2010-08-27 23:37:25 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-27 23:37:25 +0400 |
commit | d4388749d4ace31b8b1a2dd8901e778a00fbd621 (patch) | |
tree | 4067de5fc8ad84565f32addfe56203fa23297048 | |
parent | 7e0a01a48781fb66f7499245ca378a53aef3da97 (diff) |
unnecessary \n
-rw-r--r-- | lib/bundle.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundle.js b/lib/bundle.js index b99f9e0b5..f299f3cf7 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -59,7 +59,7 @@ function writeBundleShim (location, depNames, cb) { + "if (i && i + 1) require.paths.splice(i, 1)\n" + "if (i) require.paths.shift(__dirname)\n" + depNames.map(JSON.stringify).map(function (d) { - return "exports["+d+"] = require('./'+"+d+")\n" + return "exports["+d+"] = require('./'+"+d+")" }).join("\n") fs.writeFile(path.join(location, "index.js"), data, cb) } |