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
2 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue