@weapp-tailwindcss/postcss 1.0.14 → 1.0.15

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
@@ -857,16 +857,20 @@ var postcssWeappTailwindcssPrePlugin = (options) => {
857
857
  let layerProperties;
858
858
  p.Once = (root) => {
859
859
  root.walkAtRules((atRule) => {
860
- if (atRule.name === "layer" && atRule.params === "properties") {
861
- if (atRule.nodes === void 0 || _optionalChain([atRule, 'access', _30 => _30.nodes, 'optionalAccess', _31 => _31.length]) === 0) {
862
- layerProperties = atRule;
863
- } else if (_optionalChain([atRule, 'access', _32 => _32.first, 'optionalAccess', _33 => _33.type]) === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) {
864
- if (layerProperties) {
865
- layerProperties.replaceWith(atRule.first.nodes);
866
- atRule.remove();
867
- } else {
868
- atRule.replaceWith(atRule.first.nodes);
860
+ if (atRule.name === "layer") {
861
+ if (atRule.params === "properties") {
862
+ if (atRule.nodes === void 0 || _optionalChain([atRule, 'access', _30 => _30.nodes, 'optionalAccess', _31 => _31.length]) === 0) {
863
+ layerProperties = atRule;
864
+ } else if (_optionalChain([atRule, 'access', _32 => _32.first, 'optionalAccess', _33 => _33.type]) === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) {
865
+ if (layerProperties) {
866
+ layerProperties.replaceWith(atRule.first.nodes);
867
+ atRule.remove();
868
+ } else {
869
+ atRule.replaceWith(atRule.first.nodes);
870
+ }
869
871
  }
872
+ } else {
873
+ atRule.replaceWith(atRule.nodes);
870
874
  }
871
875
  } else if (isTailwindcssV4ModernCheck(atRule)) {
872
876
  if (_optionalChain([atRule, 'access', _34 => _34.first, 'optionalAccess', _35 => _35.type]) === "atrule" && atRule.first.name === "layer") {
package/dist/index.mjs CHANGED
@@ -857,16 +857,20 @@ var postcssWeappTailwindcssPrePlugin = (options) => {
857
857
  let layerProperties;
858
858
  p.Once = (root) => {
859
859
  root.walkAtRules((atRule) => {
860
- if (atRule.name === "layer" && atRule.params === "properties") {
861
- if (atRule.nodes === void 0 || atRule.nodes?.length === 0) {
862
- layerProperties = atRule;
863
- } else if (atRule.first?.type === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) {
864
- if (layerProperties) {
865
- layerProperties.replaceWith(atRule.first.nodes);
866
- atRule.remove();
867
- } else {
868
- atRule.replaceWith(atRule.first.nodes);
860
+ if (atRule.name === "layer") {
861
+ if (atRule.params === "properties") {
862
+ if (atRule.nodes === void 0 || atRule.nodes?.length === 0) {
863
+ layerProperties = atRule;
864
+ } else if (atRule.first?.type === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) {
865
+ if (layerProperties) {
866
+ layerProperties.replaceWith(atRule.first.nodes);
867
+ atRule.remove();
868
+ } else {
869
+ atRule.replaceWith(atRule.first.nodes);
870
+ }
869
871
  }
872
+ } else {
873
+ atRule.replaceWith(atRule.nodes);
870
874
  }
871
875
  } else if (isTailwindcssV4ModernCheck(atRule)) {
872
876
  if (atRule.first?.type === "atrule" && atRule.first.name === "layer") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",