You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tailwind CSS v4.0 is designed for and tested on modern browsers, and the core functionality of the framework specifically depends on these browser versions:
However, SvelteKit currently builds on target: 'modules' which targets Chrome 87:
Browser compatibility target for the final bundle. The default value is a Vite special value, 'modules', which targets browsers with native ES Modules, native ESM dynamic import, and import.meta support. Vite will replace 'modules' to ['es2020', 'edge88', 'firefox78', 'chrome87', 'safari14']
Tailwind CSS now requires Chrome 111+
However, SvelteKit currently builds on
target: 'modules'
which targets Chrome 87:This causes Vite to target older browsers with its CSS build output.
This can be fixed by setting Vite's
build.cssTarget
out-of-the box.Note
Even with this setting, browser native CSS nesting is not flattened since it is supported from Safari 17.2. Reference sveltejs/kit#13732
The text was updated successfully, but these errors were encountered: