tailwindcss/integrations/vite
Philipp Spiess 1238d07ca2
Reference imports should not generate utilities (#15307)
We noticed an issue where the new `@import "…" reference` syntax was not
throwing away `@tailwind` declarations, effectively causing you to
create utility classes whenever you used this feature.

This is especially noticed in setups with very strict compilers like
Svelte.

## Test Plan

### Before

<img width="1142" alt="Screenshot 2024-12-05 at 11 56 00"
src="https://github.com/user-attachments/assets/546f0eb3-4401-48c9-9268-76992e899226">

### After

<img width="2560" alt="Screenshot 2024-12-05 at 12 27 30"
src="https://github.com/user-attachments/assets/16732000-e02c-49bc-ac6f-91da0cfcc7e8">
2024-12-05 16:18:06 +01:00
..
astro.test.ts Revert "Fix Astro integration test by pinning zod-to-json-schema" (#14792) 2024-10-25 11:31:34 +02:00
config.test.ts Update Vite to 6.0 (#15197) 2024-11-27 11:34:50 -05:00
css-modules.test.ts Update Vite to 6.0 (#15197) 2024-11-27 11:34:50 -05:00
index.test.ts Update Vite to 6.0 (#15197) 2024-11-27 11:34:50 -05:00
multi-root.test.ts Update Vite to 6.0 (#15197) 2024-11-27 11:34:50 -05:00
nuxt.test.ts Fix glob pattern hoisting on Windows (#14904) 2024-11-07 15:31:06 -05:00
other-transforms.test.ts Update Vite to 6.0 (#15197) 2024-11-27 11:34:50 -05:00
resolvers.test.ts Vite: Use Vite resolvers for CSS and JS files (#15173) 2024-11-27 11:48:55 -05:00
ssr.test.ts Fix resolution of imported CSS files in Vite SSR builds (#15279) 2024-12-02 17:08:13 -05:00
svelte.test.ts Reference imports should not generate utilities (#15307) 2024-12-05 16:18:06 +01:00
url-rewriting.test.ts Update Vite to 6.0 (#15197) 2024-11-27 11:34:50 -05:00
vue.test.ts Reference imports should not generate utilities (#15307) 2024-12-05 16:18:06 +01:00