chore: use value
instead of n.value
(#1770)
This commit is contained in:
parent
86a4f2a6b3
commit
2a1b0fc6d7
@ -93,7 +93,7 @@ export default postcss.plugin('vue-scoped', (id: any) => (root: Root) => {
|
|||||||
|
|
||||||
// global: replace with inner selector and do not inject [id].
|
// global: replace with inner selector and do not inject [id].
|
||||||
// ::v-global(.foo) -> .foo
|
// ::v-global(.foo) -> .foo
|
||||||
if (value === ':global' || n.value === '::v-global') {
|
if (value === ':global' || value === '::v-global') {
|
||||||
selectors.insertAfter(selector, n.nodes[0])
|
selectors.insertAfter(selector, n.nodes[0])
|
||||||
selectors.removeChild(selector)
|
selectors.removeChild(selector)
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user