We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34294af commit 6771343Copy full SHA for 6771343
src/transformCss.ts
@@ -92,6 +92,18 @@ export async function transformCss(
92
(all: any, name: any, value: any = '') => {
93
name = trim(name.replace(/\s+/g, ' '))
94
95
+ // 过滤掉特殊的CSS选择器
96
+ if (
97
+ name.includes(':deep(')
98
+ || name.includes('>>>')
99
+ || name.includes('/deep/')
100
+ || name.includes('::v-deep')
101
+ || name.includes(':global(')
102
+ || name.includes('@') // 过滤 @media, @keyframes 等
103
+ ) {
104
+ return
105
+ }
106
+
107
const originClassName = name
108
const before = trim(value.replace(/\n\s*/g, ''))
109
0 commit comments