From cb1ad9bdf5266b0313b901b95cbf516543c3fb10 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 4 Nov 2015 13:11:27 -0800 Subject: [PATCH] Concise exports. --- index.js | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/index.js b/index.js index 73d57f6a..82f53060 100644 --- a/index.js +++ b/index.js @@ -1,17 +1,7 @@ -import bundle from "./src/bundle"; -import cluster from "./src/cluster"; -import links from "./src/links"; -import pack from "./src/pack"; -import partition from "./src/partition"; -import tree from "./src/tree"; -import treemap from "./src/treemap"; - -export { - bundle, - cluster, - links, - pack, - partition, - tree, - treemap -}; +export {default as bundle} from "./src/bundle"; +export {default as cluster} from "./src/cluster"; +export {default as links} from "./src/links"; +export {default as pack} from "./src/pack"; +export {default as partition} from "./src/partition"; +export {default as tree} from "./src/tree"; +export {default as treemap} from "./src/treemap";