Skip to content

Add @tailwindcss/turbopack loader - #20367

Open
timneutkens wants to merge 3 commits into
tailwindlabs:mainfrom
timneutkens:codex/add-tailwindcss-turbopack-loader
Open

Add @tailwindcss/turbopack loader#20367
timneutkens wants to merge 3 commits into
tailwindlabs:mainfrom
timneutkens:codex/add-tailwindcss-turbopack-loader

Conversation

@timneutkens

Copy link
Copy Markdown
Contributor

Summary

  • add a new @tailwindcss/turbopack package based on the webpack loader
  • document Turbopack installation, configuration, and loader options
  • register the package in the lockfile, integration overrides, and changelog

Test plan

  • pnpm --filter @tailwindcss/turbopack build
  • pnpm exec prettier --check on changed files
  • verify loader source and build configuration match @tailwindcss/webpack byte-for-byte
  • pnpm pack --pack-destination /tmp

@timneutkens
timneutkens requested a review from a team as a code owner July 30, 2026 19:47
Comment thread packages/@tailwindcss-turbopack/src/index.ts
Comment thread packages/@tailwindcss-turbopack/src/index.ts Outdated
@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge, although the previously requested Turbopack integration coverage is still not executed by CI.

The instrumentation-label issue is fixed across the loader’s runtime paths. The new fixture exercises real initial generation and watch updates, but the integration workflow matrix does not select the turbopack directory, leaving that non-blocking coverage gap outstanding.

Reviews (3): Last reviewed commit: "Use default Turbopack mode in integratio..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ae0269ae-7340-48b4-bae1-d71b3c21d925

📥 Commits

Reviewing files that changed from the base of the PR and between 481bfc1 and 257dedc.

📒 Files selected for processing (1)
  • integrations/turbopack/loader.test.ts

Walkthrough

Adds the @tailwindcss/turbopack package configuration, CommonJS/ESM build outputs, loader instrumentation labels, documentation, workspace version override, and changelog entry. Adds an integration test that verifies Tailwind CSS output updates during a Next.js Turbopack development rebuild.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding the @tailwindcss/turbopack loader.
Description check ✅ Passed The description matches the changeset, covering the new package, docs, lockfile overrides, and changelog.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5d970c0e-53be-484b-866c-fd1ee361313d

📥 Commits

Reviewing files that changed from the base of the PR and between 6de87c6 and afac0af.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • CHANGELOG.md
  • integrations/utils.ts
  • packages/@tailwindcss-turbopack/README.md
  • packages/@tailwindcss-turbopack/package.json
  • packages/@tailwindcss-turbopack/src/index.cts
  • packages/@tailwindcss-turbopack/src/index.ts
  • packages/@tailwindcss-turbopack/tsconfig.json
  • packages/@tailwindcss-turbopack/tsup.config.ts

Comment thread packages/@tailwindcss-turbopack/src/index.ts
Comment thread packages/@tailwindcss-turbopack/src/index.ts Outdated
Comment thread packages/@tailwindcss-turbopack/src/index.ts
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.

1 participant