jrburke/r.js — Issue #54: Strip amdefine uses in modules
Author: jrburke
Created: 2011-12-10 00:49:51+00:00
State: open

[amdefine](https://github.com/jrburke/amdefine) allows using define() in a node module, but the optimizer should not build it in, since it is not needed for optimizer output -- there will already be a define available.

Strip out mentions of this code:

```javascript
if (typeof define !== 'function') { var define = (require('amdefine'))(module); }
```

Allow for spaces/line returns in the above and for 'amdefine' to be a relative ID.