component/component — pull request #216 by wilmoore (2012-12-23 09:18:57+00:00)
Title: adds AMD support to --standalone

Per #139, adds AMD support to --standalone by way of a UMD module wrapper.

**ORIGINAL OUTPUT**

```
if ("undefined" == typeof module) {
window.attributes = require("validator");
} else {
module.exports = require("validator");
}
```

**NEW OUTPUT**

```
if (typeof exports == "object") {
module.exports = require("attributes");
} else if (typeof define == "function" && define.amd) {
define(require("attributes"));
} else {
window["validator"] = require("attributes");
}
```