We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59be3bd commit 7dcf79eCopy full SHA for 7dcf79e
packages/tailwindcss-language-server/src/project-locator.ts
@@ -345,6 +345,11 @@ export class ProjectLocator {
345
// Resolve all @source directives
346
await Promise.all(imports.map((file) => file.resolveSourceDirectives()))
347
348
+ // Link every entry in the import graph
349
+ let byRealPath: Record<string, FileEntry> = {}
350
+ for (let file of imports) byRealPath[file.realpath] = file
351
+ for (let file of imports) file.deps = file.deps.map((dep) => byRealPath[dep.realpath] ?? dep)
352
+
353
// Create a graph of all the CSS files that might (indirectly) use Tailwind
354
let graph = new Graph<FileEntry>()
355
0 commit comments