-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v4] @tailwindcss/postcss - transpilation either doesn't work or the output is not the same as with Autoprefixer #15160
Comments
Dug into this one quickly, it looks like we need to explicitly set a target for Firefox and iOS Safari to get Lightning CSS to prefix the Will have to figure out the minimum Chrome version we should target but I know we're only targeting Safari >= 16.4 (for Looks like maybe our minimum Chrome version is 111 for |
@adamwathan so it sounds like my browserslist key in package.json is picked up and respected, but this is a Lightning CSS thing (bug)? Otherwise, the Thank you! 🍻 |
Nah no bug, we currently ignore your browserslist config because v4 targets pretty modern browsers only because of features like The main issue is on our end, we currently only explicitly add Safari 16.4 as a browser target but we need to add iOS Safari 16.4 and Firefox 128 as well. |
Ah, that makes a lot more sense. 😆 Definitely makes sense if a browserslist config targets would be too low for what TW4 relies on. Hopefully you'll find a way to support more aggressive configs, that would set the tagrets to even newer versions than what you rely on, such as I'll keep an eye out on the future beta changelogs. Thank you! great work on TW4 so far! Loving it. ❤️ 🍻 |
What version of Tailwind CSS are you using?
4.0.0-beta.2
What build tool (or framework if it abstracts the build tool) are you using?
vite 5.4.11
What version of Node.js are you using?
v22.11.0
What browser are you using?
Chrome 131.0.6778.86
What operating system are you using?
Windows 11 24H2
Describe your issue
When the @tailwindcss/postcss plugin is used, without explicitely using Autoprefixer, the transpilation output is not the same as when autoprefixer is added back in. I tried definiting the browserslist rules via the package.json key or via the
.browserslistrc
file and both work with autoprefixer, but neither one seems to work with the @tailwindcss/postcss plugin alone.I am using this to test:
Here are the browserslist rules:
Here is the correct output if I explicitely add Autoprefixer back in:
Here is the output if I remove Autoprefixer, as the new beta docs say:
Thank you!
The text was updated successfully, but these errors were encountered: