Skip to content

Is it possible to work with highcharts / highmaps / highstock importing seperately? #339

@hijiangtao

Description

@hijiangtao

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.

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions