Skip to content

Add support for polyfill configuration in Vite plugin #20035

@lubomirblazekcz

Description

@lubomirblazekcz

As discussed in PR #19942, it would be great if the Vite plugin exposed an option to configure polyfills.

Currently, when optimize: false is set and the project targets browsers through Vite instead, there does not seem to be a way to disable Tailwind’s generated polyfills.

I’d like to propose adding a polyfills option alongside optimize in the Vite plugin configuration. This would allow users to either disable polyfills entirely during compilation, or selectively keep only the ones they need.

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