jrburke/r.js — Issue #47: With findNestedDependencies and has config, skip nested requires in has blocks
Author: jrburke
Created: 2011-12-02 01:36:59+00:00
State: open

If findNestedDependencies: true, and have a has: {} config in the build config, then depending on the has: {} config used in the build, only certain one(s) of these nested require() calls should be found for dependency tracing:

```javascript
define(['require', 'a'], function(require, a) {

if (has('needC')) {
require(['c'], function (c) {

});
} else if (has('needB')) {
require(['b'], function (b) {

});
} else {
require(['d'], function (d) {

});
}
});
```