mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
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:
parent
c3e2335308
commit
fac8cd9def
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user