fix: allow process.env.DEBUG to be a boolean in @tailwindcss/node (#18485)

TanStack Start build to `cloudflare-module`, `debug` value type is
boolean.
reference:
https://developers.cloudflare.com/workers/framework-guides/web-apps/tanstack/

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
Jelf 2025-07-11 23:51:50 +08:00 committed by GitHub
parent c3e2335308
commit fac8cd9def
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix trailing `)` from interfering with extraction in Clojure keywords ([#18345](https://github.com/tailwindlabs/tailwindcss/pull/18345))
- Detect classes inside Elixir charlist, word list, and string sigils ([#18432](https://github.com/tailwindlabs/tailwindcss/pull/18432))
- Track source locations through `@plugin` and `@config` ([#18345](https://github.com/tailwindlabs/tailwindcss/pull/18345))
- Handle when `process.env.DEBUG` is a boolean in `@tailwindcss/node` ([#18485](https://github.com/tailwindlabs/tailwindcss/pull/18485))
## [4.1.11] - 2025-06-26

View File

@ -1,6 +1,10 @@
export const DEBUG = resolveDebug(process.env.DEBUG)
function resolveDebug(debug: typeof process.env.DEBUG) {
if (typeof debug === 'boolean') {
return debug
}
if (debug === undefined) {
return false
}