Skip to content

Commit

Permalink
Merge branch 'master' into betterdiag
Browse files Browse the repository at this point in the history
Conflicts:
	lib/dryice/index.js
  • Loading branch information
joewalker committed May 8, 2014
2 parents 2202fd1 + a0cdb59 commit 0bfb723
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/dryice/index.js
Expand Up @@ -858,10 +858,21 @@ function findRequires(module) {
else if (args[0][0] === 'string' && args[1][0] == 'array') {
params = args[1][1];
}
// Check if it's a Simplified CommonJS Wrapper. A module is only
// treated as a CJS module if it doesn't contain a dependency array and
// the definition function contains at least one parameter.
// http://requirejs.org/docs/api.html#cjsmodule
else if ((args[0][0] === 'function' && args[0][2].length) ||
(args[1][0] === 'function' && args[1][2].length &&
args[0][0] === 'string')) {
// By definition there are no dependencies, so no more work is
// necessary.
return;
}
else {
/*
console.log('- ' + module.path + ' has define(...) ' +
'with non-array parameter. Ignoring requirement.');
'with unrecognized parameter. Ignoring requirement.');
*/
return;
}
Expand Down

0 comments on commit 0bfb723

Please sign in to comment.