Skip to content

Commit

Permalink
module.require for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 4, 2016
1 parent 36ab9d4 commit 3de7e53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
};
// support module.paths ish
module.paths = [];
module.require = _require;

// ensure meta deps execute first
if (!load.metadata.cjsDeferDepsExecute)
Expand Down

0 comments on commit 3de7e53

Please sign in to comment.