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

This commit is contained in:
edison 2020-08-15 05:00:49 +08:00 committed by GitHub
parent 86a4f2a6b3
commit 2a1b0fc6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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