@weapp-tailwindcss/postcss 1.0.0-alpha.6 → 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 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.6",
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",