Skip to content

Add support for polyfill configuration in Vite plugin #20038

Description

@wongjn

Reopen issue #20035

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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