Skip to content

Commit fac8cd9

Browse files
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 <[email protected]>
1 parent c3e2335 commit fac8cd9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Fix trailing `)` from interfering with extraction in Clojure keywords ([#18345](https://github.com/tailwindlabs/tailwindcss/pull/18345))
1414
- Detect classes inside Elixir charlist, word list, and string sigils ([#18432](https://github.com/tailwindlabs/tailwindcss/pull/18432))
1515
- Track source locations through `@plugin` and `@config` ([#18345](https://github.com/tailwindlabs/tailwindcss/pull/18345))
16+
- Handle when `process.env.DEBUG` is a boolean in `@tailwindcss/node` ([#18485](https://github.com/tailwindlabs/tailwindcss/pull/18485))
1617

1718
## [4.1.11] - 2025-06-26
1819

packages/@tailwindcss-node/src/env.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
export const DEBUG = resolveDebug(process.env.DEBUG)
22

33
function resolveDebug(debug: typeof process.env.DEBUG) {
4+
if (typeof debug === 'boolean') {
5+
return debug
6+
}
7+
48
if (debug === undefined) {
59
return false
610
}

0 commit comments

Comments
 (0)