Make sure that export * from does not overwrite named exports.

This commit is contained in:
Maël Nison
2017-09-12 19:41:24 -07:00
committed by Logan Smyth
parent 5bb6a83fa8
commit 0ea295e83b
3 changed files with 74 additions and 2 deletions

View File

@@ -3,6 +3,15 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
z: true,
a: true,
b: true,
d: true,
e: true,
f: true,
c: true
};
exports.b = b;
exports.default = _default;
Object.defineProperty(exports, "c", {
@@ -17,6 +26,7 @@ var _mod = require("mod");
Object.keys(_mod).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {