From: daiwei Date: Wed, 28 May 2025 01:14:12 +0000 (+0800) Subject: chore: tweaks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55ebbba387ef9b9a941276994f3734dbd019344d;p=thirdparty%2Fvuejs%2Fcore.git chore: tweaks --- 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 } }