镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 2fa55ef

Browse files
committed
fix: use printable delimiter in shortcut selector cache key
1 parent e474ca3 commit 2fa55ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/crosswind/src/generator.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ export class CSSGenerator {
20312031
// selector for the same parsed class, so it needs its own cache slot.
20322032
const cacheKey = this.shortcutSelectorRaw === null
20332033
? `${parsed.raw}${childSelector || ''}${pseudoElement || ''}`
2034-
: `${this.shortcutSelectorRaw}
2034+
: `${this.shortcutSelectorRaw}>${parsed.raw}${childSelector || ''}${pseudoElement || ''}`
20352035
let selector = this.selectorCache.get(cacheKey)
20362036
if (!selector) {
20372037
selector = this.buildSelector(parsed)

0 commit comments

Comments
 (0)