From 22aeddfa077a956d9dd557d569be0efa019ca2e6 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 5 Dec 2024 11:56:43 +0100 Subject: [PATCH] Reference imports should not generate utilities --- CHANGELOG.md | 4 +++- integrations/vite/svelte.test.ts | 11 ++++------ integrations/vite/vue.test.ts | 2 +- packages/tailwindcss/src/index.test.ts | 30 ++++++++++++++++++++++++++ packages/tailwindcss/src/index.ts | 16 +++++++++++--- 5 files changed, 51 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e7e13bff111..07fa9c953329 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Fixed + +- Ensure `@import "…" reference` never generates utilities ([#15307](https://github.com/tailwindlabs/tailwindcss/pull/15307)) ## [4.0.0-beta.5] - 2024-12-04 diff --git a/integrations/vite/svelte.test.ts b/integrations/vite/svelte.test.ts index 0f7953c63e1c..3cbfc66fa622 100644 --- a/integrations/vite/svelte.test.ts +++ b/integrations/vite/svelte.test.ts @@ -48,7 +48,7 @@ test( target: document.body, }) `, - 'src/index.css': css`@import 'tailwindcss' reference;`, + 'src/index.css': css`@import 'tailwindcss';`, 'src/App.svelte': html`