Tamir DubersteinandRobin Malfait de2255ba3f Release loader callbacks after compilation (#20531)
## 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>
2026-10-09 21:24:23 +00:00
2026-08-04 13:55:03 +02:00
2026-06-25 19:14:10 +02:00
2026-06-25 19:14:10 +02:00
2025-03-31 15:26:01 +02:00
2026-02-04 12:38:50 +01:00
2026-08-04 13:55:03 +02:00
2026-08-04 13:55:03 +02:00
2026-08-04 13:55:03 +02:00

Tailwind CSS

A utility-first CSS framework for rapidly building custom user interfaces.

Build Status Total Downloads Latest Release License


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%