Emit the helpers inside the module body

Fixes #3655
This commit is contained in:
Sheetal Nandi
2015-07-31 11:54:03 -07:00
parent cd018e1af4
commit bfc4dd14da
2 changed files with 21 additions and 13 deletions

View File

@@ -28,12 +28,12 @@ System.register([], function(exports_1) {
}
});
//// [bar.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
System.register(['./foo'], function(exports_1) {
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var foo_1;
var Bar;
return {