Просмотр исходного кода

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

edison 5 лет назад
Родитель
Сommit
2a1b0fc6d7
1 измененных файлов с 1 добавлено и 1 удалено
  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