Closed re-thc closed 4 years ago
@hc-codersatlas I created a PR https://github.com/apexcharts/ng-apexcharts/pull/29 to solve this issue.
Thanks @djabif
I am loading the NgApexchartsModule
in a lazy module but it still appears in the main bundle.
Is the idea that the apexcharts.js
file should be in the lazy module?
I am facing the same issue as @astone2014 does I am only importing the module, but my bundle contains the whole common.js. Is it because of the higher mentioned #29 MR? Since you import the whole thing it's gonna import everything from apexcharts w/o treeshaking unused stuff. How can we fix this issue? As you can see apexcharts is 25%!!!! of the whole bundle. It hurts on mobile especially.
were you able to fix this this? or lazy load apex charts?
Hi, can the apexcharts js be dynamically / lazy loaded? It's a large file and not needed on all pages. Would be good if it can be loaded on demand just as required like a few other angular libs.