jrburke/requirejs — pull request #854 by njoyard (2013-08-26 06:30:07+00:00)
Title: Add config.define option

This commit adds support for a `define` requirejs config option. This option enables pre-defining module values at config time.

```javascript
requirejs.config({
define: {
fooModule: { foo: "bar" }
}
});
```

This is a very simple implementation. It mainly addresses the need I had to pre-define module in requirejs context to use as a namespaced/sandboxed environment as described in [this thread](https://groups.google.com/forum/#!topic/requirejs/TYxjcTLCISw).