Skip to content

Commit

Permalink
Do not add __esModule to window/global (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored Nov 8, 2017
1 parent b780e46 commit 375b3f6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ var __makeTemplateObject;
factory(createExporter(root));
}
function createExporter(exports, previous) {
if (typeof Object.create === "function") {
Object.defineProperty(exports, "__esModule", { value: true });
}
else {
exports.__esModule = true;
if (exports !== root) {
if (typeof Object.create === "function") {
Object.defineProperty(exports, "__esModule", { value: true });
}
else {
exports.__esModule = true;
}
}
return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
}
Expand Down

0 comments on commit 375b3f6

Please sign in to comment.