File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Fixed
11
11
12
- - Improve ` DEBUG ` flag ([ #6797 ] ( https://github.com/tailwindlabs/tailwindcss/pull/6797 ) )
12
+ - Improve ` DEBUG ` flag ([ #6797 ] ( https://github.com/tailwindlabs/tailwindcss/pull/6797 ) , [ # 6804 ] ( https://github.com/tailwindlabs/tailwindcss/pull/6804 ) )
13
13
14
14
## [ 3.0.8] - 2021-12-28
15
15
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ export function resolveDebug(debug) {
35
35
36
36
let debuggers = debug . split ( ',' ) . map ( ( d ) => d . split ( ':' ) [ 0 ] )
37
37
38
- // Ignoring tailwind / tailwindcss
39
- if ( debuggers . includes ( '-tailwindcss' ) || debuggers . includes ( '-tailwind' ) ) {
38
+ // Ignoring tailwindcss
39
+ if ( debuggers . includes ( '-tailwindcss' ) ) {
40
40
return false
41
41
}
42
42
43
- // Definitely including tailwind / tailwindcss
44
- if ( debuggers . includes ( 'tailwindcss' ) || debuggers . includes ( 'tailwind' ) ) {
43
+ // Including tailwindcss
44
+ if ( debuggers . includes ( 'tailwindcss' ) ) {
45
45
return true
46
46
}
47
47
Original file line number Diff line number Diff line change @@ -7,20 +7,12 @@ it.each`
7
7
${ 'false' } | ${ false }
8
8
${ '0' } | ${ false }
9
9
${ '*' } | ${ true }
10
- ${ 'tailwind' } | ${ true }
11
- ${ 'tailwind:*' } | ${ true }
12
10
${ 'tailwindcss' } | ${ true }
13
11
${ 'tailwindcss:*' } | ${ true }
14
- ${ 'other,tailwind' } | ${ true }
15
- ${ 'other,tailwind:*' } | ${ true }
16
12
${ 'other,tailwindcss' } | ${ true }
17
13
${ 'other,tailwindcss:*' } | ${ true }
18
- ${ 'other,-tailwind' } | ${ false }
19
- ${ 'other,-tailwind:*' } | ${ false }
20
14
${ 'other,-tailwindcss' } | ${ false }
21
15
${ 'other,-tailwindcss:*' } | ${ false }
22
- ${ '-tailwind' } | ${ false }
23
- ${ '-tailwind:*' } | ${ false }
24
16
${ '-tailwindcss' } | ${ false }
25
17
${ '-tailwindcss:*' } | ${ false }
26
18
` ( 'should resolve the debug ($value) flag correctly ($expected)' , ( { value, expected } ) => {
You can’t perform that action at this time.
0 commit comments