diff options
Diffstat (limited to 'lib')
-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 dfb5f24ff..b99f9e0b5 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -60,6 +60,6 @@ function writeBundleShim (location, depNames, cb) { + "if (i) require.paths.shift(__dirname)\n" + depNames.map(JSON.stringify).map(function (d) { return "exports["+d+"] = require('./'+"+d+")\n" - }) + }).join("\n") fs.writeFile(path.join(location, "index.js"), data, cb) } |