Skip to content

Commit 84a2a16

Browse files
Revert debugging code
1 parent 8345e05 commit 84a2a16

File tree

4 files changed

+1
-31
lines changed

4 files changed

+1
-31
lines changed

packages/tailwindcss/src/compat/screens-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { ResolvedConfig } from './config/types'
44
import DefaultTheme from './default-theme'
55

66
export function registerScreensConfig(config: ResolvedConfig, designSystem: DesignSystem) {
7-
return
87
let screens = config.theme.screens || {}
98

109
// We want to insert the breakpoints in the right order as best we can. In the

packages/tailwindcss/src/compile.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,9 @@ export function compileCandidates(
3232

3333
// Sort the variants
3434
let variants = designSystem.getUsedVariants().sort((a, z) => {
35-
console.log(a, z, designSystem.variants.compare(a, z))
3635
return designSystem.variants.compare(a, z)
3736
})
3837

39-
// max-sm 0 => 1
40-
// min-sm 1 => 2
41-
// sm 2 => 4
42-
43-
//
44-
// max-sm // [1]
45-
// max-md // [1]
46-
//
47-
48-
// [
49-
// [max-sm, max-md],
50-
// [[&:foo]],
51-
// [[&:bar]],
52-
// ]
53-
54-
// To do this, variantOrder needs to be an array and the inner sorting needs to work
55-
5638
// Create the AST
5739
for (let [rawCandidate, candidates] of matches) {
5840
let found = false
@@ -68,13 +50,9 @@ export function compileCandidates(
6850
// variant. This allows us to sort the rules based on the order of
6951
// variants used.
7052
let variantOrder = 0n
71-
console.log(candidate.variants)
72-
7353
for (let variant of candidate.variants) {
74-
console.log(designSystem.variants.getOrders(variant))
7554
variantOrder |= 1n << BigInt(variants.indexOf(variant))
7655
}
77-
console.log({ variantOrder })
7856

7957
nodeSorting.set(node, {
8058
properties: propertySort,

packages/tailwindcss/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ describe('Parsing themes values from CSS', () => {
14161416
`)
14171417
})
14181418

1419-
test.only('`default` theme values can be overridden by plugin theme values', async () => {
1419+
test('`default` theme values can be overridden by plugin theme values', async () => {
14201420
let { build } = await compile(
14211421
css`
14221422
@theme default {

packages/tailwindcss/src/variants.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,6 @@ export class Variants {
130130
return compareFn(a, z) || (a.root < z.root ? -1 : 1)
131131
}
132132

133-
getOrders(a: Variant): number[] {
134-
if (a.kind === 'compound') {
135-
return [this.variants.get(a.root)!.order, ...this.getOrders(a.variant)]
136-
}
137-
return [this.variants.get(a.root)!.order]
138-
}
139-
140133
keys() {
141134
return this.variants.keys()
142135
}

0 commit comments

Comments
 (0)