mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2026-10-28 17:56:21 +08:00
de2255ba3f3a9bbcfb2955711bcf8dece43db14e
## Summary Cached compilers retain the module and stylesheet loader callbacks after compilation. Callbacks supplied by build tools can capture completed build state, keeping it alive during later builds. Capture the `from` and `polyfills` values used by subsequent builds and isolate config and plugin loading from the compatibility theme resolver's scope. This allows the loader callbacks and their captured state to be collected after compilation. ## Test plan The regression keeps the compiler alive across garbage collection, verifies that both loader callbacks can be collected, and confirms that a subsequent utility build still works. - `corepack pnpm test:integrations postcss/compiler-lifetime.test.ts` (Node.js 24.19.0) - `corepack pnpm run test` (Node.js 24.19.0) - `corepack pnpm build` (Node.js 22.23.3) The complete integration suite remains unverified locally because several framework fixtures require filesystem and network capabilities unavailable in the sandbox. Lint stopped on generated files and embedded templates; the scoped type check reports the same diagnostics on the unchanged base. --------- Co-authored-by: Robin Malfait <robin.malfait@shopify.com>
A utility-first CSS framework for rapidly building custom user interfaces.
Documentation
For full documentation, visit tailwindcss.com.
Community
For help, discussion about best practices, or feature ideas:
Discuss Tailwind CSS on GitHub
Contributing
If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.
Languages
TypeScript
80%
Rust
17.8%
JavaScript
0.7%
CSS
0.6%
HTML
0.6%
Other
0.3%