Skip to content

Commit 537b23d

Browse files
committed
Handle @source not when processing @source directives
1 parent bc215c2 commit 537b23d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/tailwindcss-language-server/src/css/extract-source-directives.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export function extractSourceDirectives(sources: SourcePattern[]): Plugin {
66
postcssPlugin: 'extract-at-rules',
77
AtRule: {
88
source: ({ params }) => {
9-
let negated = false
9+
let negated = /^not\s+/.test(params)
10+
11+
if (negated) params = params.slice(4).trimStart()
1012

1113
if (params[0] !== '"' && params[0] !== "'") return
1214

0 commit comments

Comments
 (0)