add todo for module collisions
This commit is contained in:
parent
0dafdd6969
commit
0d23c1cfdb
@ -13,7 +13,7 @@ function DefaultFormatter(file) {
|
|||||||
|
|
||||||
this.remapAssignments();
|
this.remapAssignments();
|
||||||
|
|
||||||
this.checkImportAssignments();
|
this.checkCollisions();
|
||||||
}
|
}
|
||||||
|
|
||||||
DefaultFormatter.prototype.getLocalExports = function () {
|
DefaultFormatter.prototype.getLocalExports = function () {
|
||||||
@ -45,7 +45,9 @@ DefaultFormatter.prototype.getLocalImports = function () {
|
|||||||
return localImports;
|
return localImports;
|
||||||
};
|
};
|
||||||
|
|
||||||
DefaultFormatter.prototype.checkImportAssignments = function () {
|
DefaultFormatter.prototype.checkCollisions = function () {
|
||||||
|
// todo: all check export collissions
|
||||||
|
|
||||||
var localImports = this.localImports;
|
var localImports = this.localImports;
|
||||||
var file = this.file;
|
var file = this.file;
|
||||||
|
|
||||||
@ -70,7 +72,7 @@ DefaultFormatter.prototype.checkImportAssignments = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check(left);
|
check(left);
|
||||||
} if (t.isDeclaration(node)) {
|
} else if (t.isDeclaration(node)) {
|
||||||
_.each(t.getIds(node, true), check);
|
_.each(t.getIds(node, true), check);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user