Skip to content

Use ngDevMode to tree shake error messages in pipes #40096

@dev054

Description

@dev054

🚀 feature request

Description

Currently all the errors throwed by pipes are not being tree-shaked in production mode.

Relevant Package

@angular/common/(pipes)

Example:

if (typeof value !== 'string') {
throw invalidPipeArgumentError(LowerCasePipe, value);
}

Describe the solution you'd like

I have seen that you made a lot of progress with ngDevMode, so I think it would be a case of using it for the purpose of making the package smaller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: commonIssues related to APIs in the @angular/common packagecross-cutting: tree-shakingfeature: in backlogFeature request for which voting has completed and is now in the backlogrefactoringIssue that involves refactoring or code-cleanup

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions