-
Notifications
You must be signed in to change notification settings - Fork 12k
Importing/referencing NgbAnything inside LazyModule breaks tree shaking #13635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
this occurs only if the concerned module is declared in a lazy module, in that case using |
I think I know what's going on. But I'll actually comment on ng-bootstrap/ng-bootstrap#2883 instead, as people have been looking into the issue there already. |
Closing as this is expected and is also documented in https://angular.io/guide/angular-package-format#entrypoints-and-code-splitting |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
NoDescription
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
The text was updated successfully, but these errors were encountered: