Skip to content

Conversation

@timneutkens
Copy link
Contributor

@timneutkens timneutkens commented Jan 29, 2026

The PostCSS implementation has a debug logline for registering dependencies but this is missing for @tailwindcss/vite.

Summary

Adds the "Register dependency messages" instrumentation span to the Vite plugin's dependency registration code, matching the existing implementation in @tailwindcss/postcss.

This ensures consistent debug instrumentation across both bundler integrations when DEBUG is enabled.

Test plan

The PostCSS implementation has a debug logline for registering dependencies but this is missing for @tailwindcss/vite.
@timneutkens timneutkens marked this pull request as ready for review January 29, 2026 12:08
@timneutkens timneutkens requested a review from a team as a code owner January 29, 2026 12:08
@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

Walkthrough

The change adds debug instrumentation to the Tailwind CSS Vite plugin. When the Utilities feature is enabled, the code now wraps the dependency-watching process with labeled logging. A start log is emitted before scanning files and a corresponding end log is emitted after processing both files and glob patterns. This instrumentation does not alter the functional behavior of dependency watching; it only adds observability around the dependency registration sequence.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding a Register dependency messages logline to the tailwindcss-vite plugin.
Description check ✅ Passed The description is directly related to the changeset, explaining the motivation and goal of adding instrumentation to match the PostCSS implementation.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@RobinMalfait RobinMalfait enabled auto-merge (squash) January 29, 2026 14:13
@RobinMalfait RobinMalfait merged commit e3e85b3 into tailwindlabs:main Jan 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants