From: edison Date: Fri, 14 Aug 2020 21:00:49 +0000 (+0800) Subject: chore: use `value` instead of `n.value` (#1770) X-Git-Tag: v3.0.0-rc.6~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1b0fc6d7ede05828e9b57b4426de33c6835e35;p=thirdparty%2Fvuejs%2Fcore.git chore: use `value` instead of `n.value` (#1770) --- diff --git a/packages/compiler-sfc/src/stylePluginScoped.ts b/packages/compiler-sfc/src/stylePluginScoped.ts index 6274da818a..0c2b02bfc5 100644 --- a/packages/compiler-sfc/src/stylePluginScoped.ts +++ b/packages/compiler-sfc/src/stylePluginScoped.ts @@ -93,7 +93,7 @@ export default postcss.plugin('vue-scoped', (id: any) => (root: Root) => { // global: replace with inner selector and do not inject [id]. // ::v-global(.foo) -> .foo - if (value === ':global' || n.value === '::v-global') { + if (value === ':global' || value === '::v-global') { selectors.insertAfter(selector, n.nodes[0]) selectors.removeChild(selector) return false