@weapp-tailwindcss/postcss 1.1.0-alpha.1 → 1.1.0

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
@@ -147,6 +147,9 @@ function createRuleTransform(rule, options) {
147
147
  if (selector.value === ":root" && _optionalChain([cssSelectorReplacement, 'optionalAccess', _2 => _2.root])) {
148
148
  selector.value = composeIsPseudo(cssSelectorReplacement.root);
149
149
  } else if (selector.value === ":where") {
150
+ if (uniAppX) {
151
+ selector.value = ":is";
152
+ }
150
153
  if (index === 0 && selector.length === 1) {
151
154
  selector.walk((node, idx) => {
152
155
  if (idx === 0 && node.type === "class") {
package/dist/index.mjs CHANGED
@@ -147,6 +147,9 @@ function createRuleTransform(rule, options) {
147
147
  if (selector.value === ":root" && cssSelectorReplacement?.root) {
148
148
  selector.value = composeIsPseudo(cssSelectorReplacement.root);
149
149
  } else if (selector.value === ":where") {
150
+ if (uniAppX) {
151
+ selector.value = ":is";
152
+ }
150
153
  if (index === 0 && selector.length === 1) {
151
154
  selector.walk((node, idx) => {
152
155
  if (idx === 0 && node.type === "class") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "1.1.0-alpha.1",
3
+ "version": "1.1.0",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",