diff --git a/CHANGELOG.md b/CHANGELOG.md
index ae525cc8c69b..b53d74ef35fd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- PostCSS: Ensure files containing `@tailwind utilities` are processed ([#17514](https://github.com/tailwindlabs/tailwindcss/pull/17514))
- Ensure the `color-mix(…)` polyfill creates fallbacks even when using colors that cannot be statically analyzed ([#17513](https://github.com/tailwindlabs/tailwindcss/pull/17513))
- Fix slow incremental builds with `@tailwindcss/vite` and `@tailwindcss/postscss` (especially on Windows) ([#17511](https://github.com/tailwindlabs/tailwindcss/pull/17511))
+- Vite: Fix an issue with Qwik setups ([#17533](https://github.com/tailwindlabs/tailwindcss/pull/17533))
## [4.1.1] - 2025-04-02
diff --git a/integrations/vite/qwik.test.ts b/integrations/vite/qwik.test.ts
new file mode 100644
index 000000000000..42db6563aa7a
--- /dev/null
+++ b/integrations/vite/qwik.test.ts
@@ -0,0 +1,100 @@
+import { candidate, css, fetchStyles, json, retryAssertion, test, ts } from '../utils'
+
+test(
+ 'dev mode',
+ {
+ fs: {
+ 'package.json': json`
+ {
+ "type": "module",
+ "dependencies": {
+ "@builder.io/qwik": "^1",
+ "@builder.io/qwik-city": "^1",
+ "vite": "^5",
+ "@tailwindcss/vite": "workspace:^",
+ "tailwindcss": "workspace:^"
+ }
+ }
+ `,
+ 'vite.config.ts': ts`
+ import { defineConfig } from 'vite'
+ import { qwikVite } from '@builder.io/qwik/optimizer'
+ import { qwikCity } from '@builder.io/qwik-city/vite'
+ import tailwindcss from '@tailwindcss/vite'
+
+ export default defineConfig(() => {
+ return {
+ plugins: [tailwindcss(), qwikCity(), qwikVite()],
+ }
+ })
+ `,
+ 'src/root.tsx': ts`
+ import { component$ } from '@builder.io/qwik'
+ import { QwikCityProvider, RouterOutlet } from '@builder.io/qwik-city'
+
+ import './global.css'
+
+ export default component$(() => {
+ return (
+