From ed157bd4689cf3d187715306cff57effb8d06fa6 Mon Sep 17 00:00:00 2001 From: eaglux Date: Sat, 17 Nov 2018 17:21:19 +0300 Subject: [PATCH 1/2] Add reexport of internal components (required for correct import from es/index.js module, in webpack4 to make treeshaking work) --- src/index.js | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/src/index.js b/src/index.js index 4d47f4ea0..98c4bb66c 100644 --- a/src/index.js +++ b/src/index.js @@ -7,25 +7,17 @@ export { default as GenericChartComponent } from "./lib/GenericChartComponent"; export { default as GenericComponent } from "./lib/GenericComponent"; export { default as BackgroundText } from "./lib/BackgroundText"; export { default as ZoomButtons } from "./lib/ZoomButtons"; +export { getAxisCanvas, getMouseCanvas } from "./lib/GenericComponent"; +export * from "./lib/scale"; +export * from "./lib/series"; +export * from "./lib/axes"; +export * from "./lib/coordinates"; +export * from "./lib/tooltip"; +export * from "./lib/helper"; +export * from "./lib/utils"; +export * from "./lib/indicator"; +export * from "./lib/interactive"; +export * from "./lib/algorithm"; +export * from "./lib/annotation"; export const version = "0.7.8"; - -/* -// chart types & Series -import * as series from "./lib/series"; -import * as scale from "./lib/scale"; - -import * as coordinates from "./lib/coordinates"; -import * as indicator from "./lib/indicator"; -import * as algorithm from "./lib/algorithm"; - -import * as annotation from "./lib/annotation"; - -import * as axes from "./lib/axes"; -import * as tooltip from "./lib/tooltip"; -import * as helper from "./lib/helper"; - -import * as interactive from "./lib/interactive"; -import * as utils from "./lib/utils"; - -*/ From 80907c08145000a83e7b21522c704b58732345d3 Mon Sep 17 00:00:00 2001 From: eaglux Date: Sat, 17 Nov 2018 17:51:01 +0300 Subject: [PATCH 2/2] fix algorithm reexport --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 98c4bb66c..e3b146f30 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ export * from "./lib/helper"; export * from "./lib/utils"; export * from "./lib/indicator"; export * from "./lib/interactive"; -export * from "./lib/algorithm"; +export { default as algorithm } from "./lib/algorithm"; export * from "./lib/annotation"; export const version = "0.7.8";