Skip to content

Commit 3a16360

Browse files
authored
Update packages/@tailwindcss-upgrade/src/template/codemods/prefix.ts
1 parent 20839bc commit 3a16360

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/@tailwindcss-upgrade/src/template/codemods

packages/@tailwindcss-upgrade/src/template/codemods/prefix.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { DesignSystem } from '../../../../tailwindcss/src/design-system'
44
import { segment } from '../../../../tailwindcss/src/utils/segment'
55
import { printCandidate } from '../candidates'
66

7-
const SEEDED = new WeakSet<DesignSystem>()
7+
let seenDesignSystems = new WeakSet<DesignSystem>()
88

99
export function prefix(
1010
designSystem: DesignSystem,
@@ -13,10 +13,10 @@ export function prefix(
1313
): string {
1414
if (!designSystem.theme.prefix) return rawCandidate
1515

16-
if (!SEEDED.has(designSystem)) {
16+
if (!seenDesignSystems.has(designSystem)) {
1717
designSystem.utilities.functional('group', () => null)
1818
designSystem.utilities.functional('peer', () => null)
19-
SEEDED.add(designSystem)
19+
seenDesignSystems.add(designSystem)
2020
}
2121

2222
let v3Base = extractV3Base(designSystem, userConfig, rawCandidate)

0 commit comments

Comments
 (0)