Do not emit __extends if --noEmitHelpers is set

This commit is contained in:
Mohamed Hegazy
2015-05-01 16:29:41 -07:00
parent 93bf569432
commit 101aedbf4e
3 changed files with 27 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
//// [noEmitHelpers2.ts]
function decorator() { }
@decorator
class A { }
//// [noEmitHelpers2.js]
function decorator() { }
var A = (function () {
function A() {
}
A = __decorate([
decorator
], A);
return A;
})();

View File

@@ -0,0 +1,10 @@
// @noemithelpers: true
// @target: es5
function decorator() { }
@decorator
class A {
constructor(a: number, b: string) {
}
}