|
3 | 3 | */ |
4 | 4 | import Chart from './core/core.controller'; |
5 | 5 |
|
6 | | -import helpers from './helpers'; |
| 6 | +import helpers from './helpers/index'; |
7 | 7 | import _adapters from './core/core.adapters'; |
8 | 8 | import Animation from './core/core.animation'; |
9 | 9 | import Animator from './core/core.animator'; |
10 | 10 | import animationService from './core/core.animations'; |
11 | | -import controllers from './controllers'; |
| 11 | +import controllers from './controllers/index'; |
12 | 12 | import DatasetController from './core/core.datasetController'; |
13 | 13 | import defaults from './core/core.defaults'; |
14 | 14 | import Element from './core/core.element'; |
15 | | -import elements from './elements'; |
| 15 | +import elements from './elements/index'; |
16 | 16 | import Interaction from './core/core.interaction'; |
17 | 17 | import layouts from './core/core.layouts'; |
18 | 18 | import platforms from './platform/platforms'; |
@@ -42,17 +42,17 @@ Chart.scaleService = scaleService; |
42 | 42 | Chart.Ticks = Ticks; |
43 | 43 |
|
44 | 44 | // Register built-in scales |
45 | | -import scales from './scales'; |
| 45 | +import scales from './scales/index'; |
46 | 46 | Object.keys(scales).forEach(function(type) { |
47 | 47 | const scale = scales[type]; |
48 | 48 | Chart.scaleService.registerScaleType(type, scale, scale._defaults); |
49 | 49 | }); |
50 | 50 |
|
51 | 51 | // Load to register built-in adapters (as side effects) |
52 | | -import './adapters'; |
| 52 | +import './adapters/index'; |
53 | 53 |
|
54 | 54 | // Loading built-in plugins |
55 | | -import plugins from './plugins'; |
| 55 | +import plugins from './plugins/index'; |
56 | 56 | for (var k in plugins) { |
57 | 57 | if (Object.prototype.hasOwnProperty.call(plugins, k)) { |
58 | 58 | Chart.plugins.register(plugins[k]); |
|
0 commit comments