Skip to content

Commit

Permalink
module.paths to exist for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 3, 2016
1 parent 4d78a97 commit 36ab9d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cjs.js
Expand Up @@ -94,6 +94,8 @@
require.resolve = function(name) {
return loader.get('@@cjs-helpers').requireResolve(name, module.id);
};
// support module.paths ish
module.paths = [];

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

0 comments on commit 36ab9d4

Please sign in to comment.