Jelajahi Sumber

chore: use `value` instead of `n.value` (#1770)

edison 5 tahun lalu
induk
melakukan
2a1b0fc6d7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/compiler-sfc/src/stylePluginScoped.ts

+ 1 - 1
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