@weapp-tailwindcss/postcss 2.2.1-next.0 → 2.2.1-next.1

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
@@ -1809,23 +1809,21 @@ const postcssWeappTailwindcssPostPlugin = (options) => {
1809
1809
  }
1810
1810
  };
1811
1811
  }
1812
- if (enableMainChunkTransforms) {
1813
- p.DeclarationExit = (decl) => {
1814
- if (opts.majorVersion === void 0) normalizeTailwindcssRpxDeclaration(decl);
1815
- else normalizeTailwindcssRpxDeclaration(decl, { majorVersion: opts.majorVersion });
1816
- normalizeTailwindcssV4Declaration(decl);
1817
- };
1818
- p.AtRuleExit = (atRule) => {
1819
- /**
1820
- * @description 移除 property
1821
- */
1822
- if (opts.cssRemoveProperty && atRule.name === "property") atRule.remove();
1823
- /**
1824
- * 清除空节点
1825
- */
1826
- atRule.nodes?.length === 0 && atRule.remove();
1827
- };
1828
- }
1812
+ p.DeclarationExit = (decl) => {
1813
+ if (opts.majorVersion === void 0) normalizeTailwindcssRpxDeclaration(decl);
1814
+ else normalizeTailwindcssRpxDeclaration(decl, { majorVersion: opts.majorVersion });
1815
+ if (enableMainChunkTransforms) normalizeTailwindcssV4Declaration(decl);
1816
+ };
1817
+ if (enableMainChunkTransforms) p.AtRuleExit = (atRule) => {
1818
+ /**
1819
+ * @description 移除 property
1820
+ */
1821
+ if (opts.cssRemoveProperty && atRule.name === "property") atRule.remove();
1822
+ /**
1823
+ * 清除空节点
1824
+ */
1825
+ atRule.nodes?.length === 0 && atRule.remove();
1826
+ };
1829
1827
  return p;
1830
1828
  };
1831
1829
  postcssWeappTailwindcssPostPlugin.postcss = true;
package/dist/index.mjs CHANGED
@@ -1799,23 +1799,21 @@ const postcssWeappTailwindcssPostPlugin = (options) => {
1799
1799
  }
1800
1800
  };
1801
1801
  }
1802
- if (enableMainChunkTransforms) {
1803
- p.DeclarationExit = (decl) => {
1804
- if (opts.majorVersion === void 0) normalizeTailwindcssRpxDeclaration(decl);
1805
- else normalizeTailwindcssRpxDeclaration(decl, { majorVersion: opts.majorVersion });
1806
- normalizeTailwindcssV4Declaration(decl);
1807
- };
1808
- p.AtRuleExit = (atRule) => {
1809
- /**
1810
- * @description 移除 property
1811
- */
1812
- if (opts.cssRemoveProperty && atRule.name === "property") atRule.remove();
1813
- /**
1814
- * 清除空节点
1815
- */
1816
- atRule.nodes?.length === 0 && atRule.remove();
1817
- };
1818
- }
1802
+ p.DeclarationExit = (decl) => {
1803
+ if (opts.majorVersion === void 0) normalizeTailwindcssRpxDeclaration(decl);
1804
+ else normalizeTailwindcssRpxDeclaration(decl, { majorVersion: opts.majorVersion });
1805
+ if (enableMainChunkTransforms) normalizeTailwindcssV4Declaration(decl);
1806
+ };
1807
+ if (enableMainChunkTransforms) p.AtRuleExit = (atRule) => {
1808
+ /**
1809
+ * @description 移除 property
1810
+ */
1811
+ if (opts.cssRemoveProperty && atRule.name === "property") atRule.remove();
1812
+ /**
1813
+ * 清除空节点
1814
+ */
1815
+ atRule.nodes?.length === 0 && atRule.remove();
1816
+ };
1819
1817
  return p;
1820
1818
  };
1821
1819
  postcssWeappTailwindcssPostPlugin.postcss = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "2.2.1-next.0",
3
+ "version": "2.2.1-next.1",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@csstools/postcss-is-pseudo-class": "^6.0.0",
74
- "fast-check": "^4.7.0",
74
+ "fast-check": "^4.8.0",
75
75
  "postcss-calc": "^10.1.1",
76
76
  "postcss-custom-properties": "^14.0.6"
77
77
  },