diff --git a/packages/compiler-sfc/src/stylePluginScoped.ts b/packages/compiler-sfc/src/stylePluginScoped.ts index 6274da81..0c2b02bf 100644 --- a/packages/compiler-sfc/src/stylePluginScoped.ts +++ b/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