We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5efbaad commit 5f2cdecCopy full SHA for 5f2cdec
packages/vite/src/node/server/hmr.ts
@@ -394,6 +394,11 @@ function isNodeWithinCircularImports(
394
// Node may import itself which is safe
395
if (importer === node) continue
396
397
+ // a PostCSS plugin like Tailwind JIT may register
398
+ // any file as a dependency to a CSS file.
399
+ // But in that case, the actual dependency chain is separate.
400
+ if (isCSSRequest(importer.url)) continue
401
+
402
// Check circular imports
403
const importerIndex = nodeChain.indexOf(importer)
404
if (importerIndex > -1) {
0 commit comments