@weapp-tailwindcss/postcss 1.0.20 → 1.0.21

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
@@ -191,9 +191,7 @@ function createRuleTransform(rule, options) {
191
191
  }
192
192
  }
193
193
  if (uniAppX) {
194
- if (selector.value === "::before" || selector.value === "::after" || selector.value === "::backdrop" || selector.value === "::file-selector-button") {
195
- selector.remove();
196
- }
194
+ selector.remove();
197
195
  }
198
196
  } else if (selector.type === "combinator") {
199
197
  if (selector.value === ">") {
@@ -216,6 +214,14 @@ function createRuleTransform(rule, options) {
216
214
  }
217
215
  }
218
216
  }
217
+ } else if (selector.type === "tag") {
218
+ if (uniAppX) {
219
+ selector.remove();
220
+ }
221
+ } else if (selector.type === "attribute") {
222
+ if (uniAppX) {
223
+ selector.remove();
224
+ }
219
225
  }
220
226
  });
221
227
  selectors.walk((selector) => {
package/dist/index.mjs CHANGED
@@ -191,9 +191,7 @@ function createRuleTransform(rule, options) {
191
191
  }
192
192
  }
193
193
  if (uniAppX) {
194
- if (selector.value === "::before" || selector.value === "::after" || selector.value === "::backdrop" || selector.value === "::file-selector-button") {
195
- selector.remove();
196
- }
194
+ selector.remove();
197
195
  }
198
196
  } else if (selector.type === "combinator") {
199
197
  if (selector.value === ">") {
@@ -216,6 +214,14 @@ function createRuleTransform(rule, options) {
216
214
  }
217
215
  }
218
216
  }
217
+ } else if (selector.type === "tag") {
218
+ if (uniAppX) {
219
+ selector.remove();
220
+ }
221
+ } else if (selector.type === "attribute") {
222
+ if (uniAppX) {
223
+ selector.remove();
224
+ }
219
225
  }
220
226
  });
221
227
  selectors.walk((selector) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",