diff --git a/tslib.js b/tslib.js index 5fe3931..e666988 100644 --- a/tslib.js +++ b/tslib.js @@ -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; }; }