Skip to content

Importing/referencing NgbAnything inside LazyModule breaks tree shaking #13635

@aitboudad

Description

@aitboudad

🐞 Bug report

Command (mark with an x)

- [x] build

Is this a regression?

No

Description

Hi, I've noticed that some packages (ng-bootstrap) which provide fesm5 as a default package module doesn't take advantage of build optimizer, importing a submodule will include the whole library

🔬 Minimal Reproduction

see ng-bootstrap/ng-bootstrap#2883

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions