@weapp-tailwindcss/postcss 1.0.0-alpha.5 → 1.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -2
- package/dist/index.mjs +8 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -137,13 +137,19 @@ function getFallbackRemove(rule) {
|
|
|
137
137
|
];
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
} else if (selector.value === ":where") {
|
|
141
|
+
for (const n of selector.nodes) {
|
|
142
|
+
for (const node of n.nodes) {
|
|
143
|
+
if (node.type === "attribute") {
|
|
144
|
+
node.remove();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
140
148
|
}
|
|
141
149
|
}
|
|
142
150
|
if (selector.type === "attribute") {
|
|
143
151
|
if (selector.attribute === "hidden") {
|
|
144
152
|
_optionalChain([rule, 'optionalAccess', _14 => _14.remove, 'call', _15 => _15()]);
|
|
145
|
-
} else {
|
|
146
|
-
selector.remove();
|
|
147
153
|
}
|
|
148
154
|
}
|
|
149
155
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -137,13 +137,19 @@ function getFallbackRemove(rule) {
|
|
|
137
137
|
];
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
} else if (selector.value === ":where") {
|
|
141
|
+
for (const n of selector.nodes) {
|
|
142
|
+
for (const node of n.nodes) {
|
|
143
|
+
if (node.type === "attribute") {
|
|
144
|
+
node.remove();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
140
148
|
}
|
|
141
149
|
}
|
|
142
150
|
if (selector.type === "attribute") {
|
|
143
151
|
if (selector.attribute === "hidden") {
|
|
144
152
|
rule?.remove();
|
|
145
|
-
} else {
|
|
146
|
-
selector.remove();
|
|
147
153
|
}
|
|
148
154
|
}
|
|
149
155
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/postcss",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"description": "@weapp-tailwindcss/postcss",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"postcss-preset-env": "^10.1.3",
|
|
39
39
|
"postcss-rem-to-responsive-pixel": "~6.0.2",
|
|
40
40
|
"postcss-selector-parser": "~7.0.0",
|
|
41
|
-
"@weapp-tailwindcss/shared": "1.0.0-alpha.
|
|
41
|
+
"@weapp-tailwindcss/shared": "1.0.0-alpha.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@weapp-tailwindcss/mangle": "1.0.0-alpha.
|
|
44
|
+
"@weapp-tailwindcss/mangle": "1.0.0-alpha.5"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"dev": "tsup --watch --sourcemap",
|