jrburke/requirejs — pull request #301 by shannonmoeller (2012-06-01 22:25:52+00:00)
Title: Fallback on main if package name not given.

It's fairly common for packages use the package name as the filename for the main script. For example, Ace uses the filename `ace.js` rather than `main.js`. Falling back on the `main` parameter of package configurations when `name` is not specified reduces verbosity:

```javascript
packages: [
...
{ main: 'ace', location: 'ace/0.2.0' }
...
]
```

Previously, this was required:

```javascript
packages: [
...
{ name: 'ace', main: 'ace', location: 'ace/0.2.0' }
...
]
```