]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use `value` instead of `n.value` (#1770)
authoredison <daiwei521@126.com>
Fri, 14 Aug 2020 21:00:49 +0000 (05:00 +0800)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2020 21:00:49 +0000 (17:00 -0400)
packages/compiler-sfc/src/stylePluginScoped.ts

index 6274da818a6883154f7fcf7fcc189ff737793195..0c2b02bfc5b3400529799687326e1b287f1f1451 100644 (file)
@@ -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