From 2a1b0fc6d7ede05828e9b57b4426de33c6835e35 Mon Sep 17 00:00:00 2001 From: edison Date: Sat, 15 Aug 2020 05:00:49 +0800 Subject: [PATCH] chore: use `value` instead of `n.value` (#1770) --- packages/compiler-sfc/src/stylePluginScoped.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/stylePluginScoped.ts b/packages/compiler-sfc/src/stylePluginScoped.ts index 6274da81..0c2b02bf 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