Skip to content

--experimentalRollupPass feedback issue #15836

@filipesilva

Description

@filipesilva

Heya all,

In #15690 we introduced a new experimental flag, ----experimentalRollupPass, that attempts an advanced optimization pass. It's marked experimental because we don't expect it to work out of the box for all projects.

If you try it and it causes your project to fail to build, or to fail at runtime, please provide us with information here so we can try to address it.

The optimization aims at improving tree-shaking and dead code elimination efficiency for applications that use code splitting and code lazy loading. In our early experiments with some of our apps we've seen significant XX% code size reduction (depending on the app and various factors).

If you do experiment with this setting please post before and after payload size numbers + the output of ng version. thanks!

Docs: https://v9.angular.io/cli/build

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions