From 0d23c1cfdbd44df73bd3e28fd45b5999c94dc95b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 7 Jan 2015 09:56:17 +1100 Subject: [PATCH] add todo for module collisions --- lib/6to5/transformation/modules/_default.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/6to5/transformation/modules/_default.js b/lib/6to5/transformation/modules/_default.js index 0580550fa2..64608d26d5 100644 --- a/lib/6to5/transformation/modules/_default.js +++ b/lib/6to5/transformation/modules/_default.js @@ -13,7 +13,7 @@ function DefaultFormatter(file) { this.remapAssignments(); - this.checkImportAssignments(); + this.checkCollisions(); } DefaultFormatter.prototype.getLocalExports = function () { @@ -45,7 +45,9 @@ DefaultFormatter.prototype.getLocalImports = function () { return localImports; }; -DefaultFormatter.prototype.checkImportAssignments = function () { +DefaultFormatter.prototype.checkCollisions = function () { + // todo: all check export collissions + var localImports = this.localImports; var file = this.file; @@ -70,7 +72,7 @@ DefaultFormatter.prototype.checkImportAssignments = function () { } check(left); - } if (t.isDeclaration(node)) { + } else if (t.isDeclaration(node)) { _.each(t.getIds(node, true), check); } }