@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 +13 -9
- package/dist/index.mjs +13 -9
- package/package.json +1 -1
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"
|
|
861
|
-
if (atRule.
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
if (
|
|
865
|
-
layerProperties
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
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"
|
|
861
|
-
if (atRule.
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
if (
|
|
865
|
-
layerProperties
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
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") {
|