Skip to content

Unused FormsModule is not removed from the bundle after treeshaking #15

Description

@dmitrysteblyuk

I modified app.module a bit by removing routing and all the modules except BrowserModule. Then I run ngr build --prod and the size of the output bundle is 414kB.

If I include FormsModule back in AppModule imports, the bundle is bigger by ~100kB which is about the size of the whole FormsModule minified. Despite FormsModule is never used in the app. So why it's not getting treeshaked?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions