From 55ebbba387ef9b9a941276994f3734dbd019344d Mon Sep 17 00:00:00 2001 From: daiwei Date: Wed, 28 May 2025 09:14:12 +0800 Subject: [PATCH] chore: tweaks --- packages/compiler-sfc/src/style/pluginScoped.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-sfc/src/style/pluginScoped.ts b/packages/compiler-sfc/src/style/pluginScoped.ts index 51e30fc088..bd1bc39f1a 100644 --- a/packages/compiler-sfc/src/style/pluginScoped.ts +++ b/packages/compiler-sfc/src/style/pluginScoped.ts @@ -257,9 +257,9 @@ function rewriteSelector( } } else { // #13387 don't inject [id] at the selector start if node is null - // and the selector starts with `>` + // and the selector starts with a non-empty combinator const { type, value } = selector.first - if (type === 'combinator' && value === '>') { + if (type === 'combinator' && value !== ' ') { shouldInject = false } } -- 2.47.2