Skip to content

Optimize whitespace in template by default (preserveWhitespace to false by default) #22027

@IgorMinar

Description

@IgorMinar

In #18401 we implemented preserveWhitespace compiler flag to fix #11679.

Initially we made this an opt-in because of a possibility of subtle breaking changes related to applying styles to DOM with whitespace suddenly stripped from most nodes.

Now that we verified that the negative impact of this change at Google has been minimal, we should go ahead and make https://github.com/angular/angular/issues/11679 option set to false by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimebreaking changesfeatureIssue that requests a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions