Use only imports in babel-traverse and remove double exports (#6881)

This commit is contained in:
Daniel Tschinder 2017-11-23 20:59:54 +01:00 committed by GitHub
parent c583a04a55
commit 9206df964d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ import * as cache from "./cache";
export { default as NodePath } from "./path";
export { default as Scope } from "./scope";
export { default as Hub } from "./hub";
export { visitors };
export default function traverse(
@ -38,10 +39,6 @@ traverse.visitors = visitors;
traverse.verify = visitors.verify;
traverse.explode = visitors.explode;
traverse.NodePath = require("./path");
traverse.Scope = require("./scope");
traverse.Hub = require("./hub");
traverse.cheap = function(node, enter) {
return t.traverseFast(node, enter);
};