Skip to content

New Angular builder has issues with autoprefixer #30302

Closed as not planned
Closed as not planned
@waterplea

Description

@waterplea

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

When switching to Vite builder in Angular 18/19 it causes autoprefixer to stop working

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-kycexs5v

Please provide the exception or error you saw

:host {
  width: stretch;
}

remains unprefixed

Please provide the environment you discovered this bug in (run ng version)

Angular 19 with new builder

Anything else?

Here's the same blitz but with old builder:
https://stackblitz.com/edit/stackblitz-starters-ggd5ztxb
As you can see this style:

:host {
  width: stretch;
}

is properly turned into this:

[_nghost-ng-c1419874505] {
    width: -webkit-fill-available;
    width: -moz-available;
    width: stretch;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions