This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch label-enhancement
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/label-enhancement by this push:
new 7e84356 fix: avoid unexpected treeshaking.
7e84356 is described below
commit 7e84356bd4708a9853548bc816c52a75218e9399
Author: pissang <[email protected]>
AuthorDate: Thu Apr 30 13:12:27 2020 +0800
fix: avoid unexpected treeshaking.
---
src/component/geo.ts | 3 +++
src/component/parallel.ts | 3 +++
2 files changed, 6 insertions(+)
diff --git a/src/component/geo.ts b/src/component/geo.ts
index 4f8f8ea..21e499c 100644
--- a/src/component/geo.ts
+++ b/src/component/geo.ts
@@ -25,6 +25,9 @@ import '../coord/geo/geoCreator';
import './geo/GeoView';
import '../action/geoRoam';
import { ActionInfo } from '../util/types';
+
+// NOTE: DONT Remove this import, or GeoModel will be treeshaked.
+import '../coord/geo/GeoModel';
import GeoModel from '../coord/geo/GeoModel';
function makeAction(
diff --git a/src/component/parallel.ts b/src/component/parallel.ts
index 6b691f5..0c9f50e 100644
--- a/src/component/parallel.ts
+++ b/src/component/parallel.ts
@@ -25,6 +25,9 @@ import parallelPreprocessor from
'../coord/parallel/parallelPreprocessor';
import '../coord/parallel/parallelCreator';
import './parallelAxis';
import GlobalModel from '../model/Global';
+
+// NOTE: DONT Remove this import, or GeoModel will be treeshaked.
+import '../coord/parallel/ParallelModel';
import ParallelModel, { ParallelCoordinateSystemOption } from
'../coord/parallel/ParallelModel';
import ExtensionAPI from '../ExtensionAPI';
import ComponentView from '../view/Component';
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]