Skip to content

bundle size significantly larger for experimental vs legacy components #27392

@jponeill

Description

@jponeill

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I know this is work in progress, but when I compare the bundle size of the legacy components vs the experimental ones, the experimental ones are significantly larger (50% larger, in my project). I've attached source-map-explorer that shows the difference for form-field, button, dialog, expansion & icon.
Screenshot 2023-06-30 at 11 54 29 AM
Screenshot 2023-06-30 at 11 44 19 AM

Reproduction

StackBlitz link:
Steps to reproduce:

  1. Build project w/ material legacy components
    2.Build project w/ material experimental components
  2. Compare bundle size using source-map-explorer
    ... experimental bundle size is much larger.

Expected Behavior

I expect legacy and experimental bundle sizes to be close in size

Actual Behavior

Experimental bundle sizes are much larger.

Environment

  • Angular: 16.2.0-next.0
  • CDK/Material: 16.2.0-next.1
  • Browser(s): N/A
  • Operating System (e.g. Windows, macOS, Ubuntu): MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: build & ciRelated the build and CI infrastructure of the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions