Currently, angular-highcharts will import all these three things internally, such as highmaps in
|
import * as Highmaps from 'highcharts/highmaps'; |
and it couldn't let angular-highcharts utilize the efficiency of something like tree shaking.
However, the build bundle is too large for me if I just want to use highcharts for simple charts' visualization.

In this case, if I just ignore highmaps or highstock namespace in webpack bundling (such as webpack.IgnorePlugin), I could get a smaller bundle size but when I run it, it would trigger errors like these:
Error: Cannot find module 'highcharts/highmaps' ...
So, is there some official support for it or some other workarounds? Thanks.
Currently,
angular-highchartswill import all these three things internally, such ashighmapsinangular-highcharts/projects/angular-highcharts/src/lib/mapchart.ts
Line 3 in 0b4c5fc
and it couldn't let
angular-highchartsutilize the efficiency of something like tree shaking.However, the build bundle is too large for me if I just want to use highcharts for simple charts' visualization.
In this case, if I just ignore
highmapsorhighstocknamespace in webpack bundling (such aswebpack.IgnorePlugin), I could get a smaller bundle size but when I run it, it would trigger errors like these:So, is there some official support for it or some other workarounds? Thanks.