#20038·Tailwind CSS

Add support for polyfill configuration in Vite plugin

Author: wongjnCreated May 11, 2026Updated Aug 19, 2026

Reopen issue #20035

As discussed in PR https://github.com/tailwindlabs/tailwindcss/pull/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.

Source: tailwindlabs/tailwindcss