From 4c5e7db2dd864421d76dcc21546bbb3d6131bdcd Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 7 Feb 2020 09:27:23 -0500 Subject: [PATCH] Move the iD.data export from data/index.js to coreData coreData now owns all the data, and data/index.js should eventually go away (re: #4994) --- data/index.js | 2 -- modules/core/data.js | 3 ++- modules/core/index.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data/index.js b/data/index.js index 77f936b4c..a94be0cfa 100644 --- a/data/index.js +++ b/data/index.js @@ -1,4 +1,2 @@ export { dataLocales } from './locales.json'; export { en as dataEn } from '../dist/locales/en.json'; - -export let data = {}; diff --git a/modules/core/data.js b/modules/core/data.js index 4c783ea8d..66f06c69d 100644 --- a/modules/core/data.js +++ b/modules/core/data.js @@ -1,6 +1,7 @@ import { json as d3_json } from 'd3-fetch'; -import { data as _data } from '../../data'; // prebundled data +let _data = {}; +export { _data as data }; // // The coreData module fetches data from JSON files diff --git a/modules/core/index.js b/modules/core/index.js index ed3748884..ec335b964 100644 --- a/modules/core/index.js +++ b/modules/core/index.js @@ -1,5 +1,5 @@ export { coreContext } from './context'; -export { coreData } from './data'; +export { data, coreData } from './data'; export { coreDifference } from './difference'; export { coreGraph } from './graph'; export { coreHistory } from './history';