babel-plugin-equire
babel-plugin-equire copied to clipboard
a babel plugin for dynamic load echarts module
when i use equire i got a bug ,the Echarts I used is 5.1.1。 `index.js:1451 "import echarts from 'echarts/lib/echarts'" is not supported anymore. Use "import * as echarts from 'echarts/lib/echarts'"...
``` // eslint-disable-next-line const echarts = equire([ 'line', 'pie', 'radar', 'title', 'legend', 'tooltip' ]) ``` 绘制雷达图的时候提示`"Error: Component series.radar not exists. Load it first."`。 我简单的排查了一下,应该是`echarts-modules`的`chart`和`component`里都有`radar`,导致了只加载了`components/radar`。`echarts-modules`版本是`"version": "1.1.2"`。 BTW:`parallel`也是同时出现在了`echarts-modules`的`chart`和`component`。
i do like your demo, but 'equire' is not defined