Skip to content

Commit

Permalink
fix for require("") bug
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Oct 27, 2011
1 parent 98539b4 commit 925a98c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Wrap.prototype.addEntry = function (file, opts) {
if (!opts.root) {
opts.root = commondir(dir, required.strings.concat(file));
}
file = path.resolve(process.cwd(), file);

required.strings.forEach(function (r) {
var x = r.match(/^(\.\.?)?\//) ? path.resolve(opts.root, r) : r;
Expand Down

0 comments on commit 925a98c

Please sign in to comment.