Skip to content

Commit 7b22853

Browse files
committed
Fix CSS imports during tests
1 parent 7012df6 commit 7b22853

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/tailwindcss-language-server/vitest.config.mts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ export default defineConfig({
1414
name: 'force-inline-css',
1515
enforce: 'pre',
1616
resolveId(id) {
17-
if (!id.includes('index.css')) return
1817
if (id.includes('?raw')) return
19-
return this.resolve(`${id}?raw`)
18+
19+
if (
20+
id.includes('index.css') ||
21+
id.includes('theme.css') ||
22+
id.includes('utilities.css') ||
23+
id.includes('preflight.css')
24+
) {
25+
return this.resolve(`${id}?raw`)
26+
}
2027
},
2128
},
2229
],

0 commit comments

Comments
 (0)