James Whitney 76fa4b838f Add support for --noEmitHelpers flag
This PR is a Work In Progress that addresses multiple `__extends`
being output as described in #1350: Multiple `__extends` being output
when `--module amd` is set.

The issue still exists as of `v1.5.0 - f53e6a8`.

Apparently a fix was created for this in #1356 but according to #2009, a
[comment](https://github.com/Microsoft/TypeScript/issues/2009#issuecomment-74136291)
later indicated that this was never merged in.

Further conversation continued in #2487 but did not yield any result. I
refer to my earlier recommendation in #1350.

> My question is this, would the TypeScript team be open to a flag that
> can be passed to tsc that will generate something like the following
> ```ts
> define(["require", "exports", "__extends", './mammal'], function (require, exports, __extends, Mammal) {
>     var Human = (function (_super) {
>         __extends(Human, _super);
>         function Human() {
>             _super.apply(this, arguments);
>         }
>         return Human;
>     })(Mammal);
>     return Human;
> });
> ```

To continue with the naming convention I have chosen the flag
`--noEmitHelpers`.
2015-04-30 13:23:30 +10:00
..
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-25 10:55:22 -07:00
2014-08-25 10:55:22 -07:00
2014-08-25 10:55:22 -07:00
2014-08-25 10:55:22 -07:00
2014-08-25 10:55:22 -07:00
2014-08-25 10:55:22 -07:00
2014-09-30 18:09:55 -07:00
2014-09-30 18:09:55 -07:00
2014-10-01 11:27:20 -07:00
2014-09-30 18:09:55 -07:00
2014-10-01 11:27:20 -07:00
2014-09-30 18:09:55 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-02-26 17:42:46 -08:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-09-30 18:09:55 -07:00
2014-07-12 17:30:19 -07:00
2014-09-30 18:09:55 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2015-01-19 16:36:50 -08:00
2015-02-26 16:53:25 -08:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-25 10:55:22 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-02-26 16:53:25 -08:00
2015-02-26 16:53:25 -08:00
2015-02-26 16:53:25 -08:00
2015-02-26 16:53:25 -08:00
2015-03-04 19:34:59 -08:00
2015-02-26 16:53:25 -08:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-04-23 10:44:44 -07:00
2015-04-23 10:44:44 -07:00
2015-04-23 10:44:44 -07:00
2015-03-12 17:14:33 -07:00
2014-10-11 12:52:42 -07:00
2014-10-11 12:52:42 -07:00
2014-10-11 12:52:42 -07:00
2015-04-23 10:44:44 -07:00
2015-04-23 10:44:44 -07:00
2015-03-12 17:14:33 -07:00
2015-03-22 12:18:56 -07:00
2015-03-11 22:55:09 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-01-19 16:36:50 -08:00
2015-04-08 00:14:23 -07:00
2015-04-08 00:14:23 -07:00
2015-04-20 20:33:31 -07:00
2015-04-20 20:33:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-01-19 16:36:50 -08:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-10-30 00:10:58 +01:00
2014-08-27 16:58:31 -07:00
2014-09-08 12:08:15 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-01-19 16:36:50 -08:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-03-11 23:49:35 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-11-19 19:59:07 -08:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2015-01-27 14:42:39 -08:00
2015-01-27 14:42:39 -08:00
2015-04-11 08:50:11 -07:00
2015-04-11 08:50:11 -07:00
2015-04-11 08:50:11 -07:00
2015-04-11 08:50:11 -07:00
2015-04-11 08:50:11 -07:00
2015-04-11 08:50:11 -07:00
2015-04-11 08:50:11 -07:00
2015-04-20 13:40:13 -07:00
2015-04-21 22:27:42 -07:00
2015-04-13 13:00:00 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-08-27 16:58:31 -07:00
2014-10-10 14:41:14 -07:00
2014-11-17 11:16:03 -08:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-08-27 16:58:31 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00
2014-07-12 17:30:19 -07:00