@weapp-tailwindcss/postcss 1.0.10-alpha.0 → 1.0.10-alpha.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
@@ -642,9 +642,13 @@ function commonChunkPreflight(node, options) {
642
642
  function isAtMediaHover(atRule) {
643
643
  return /media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name) || atRule.name === "media" && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params);
644
644
  }
645
- var TAILWIND_V4_MODERN_REGEX = /^\(\(-webkit-hyphens:\s*none\)\s+and\s+\(not\s+\(margin-trim:\s*inline\)\)\)\s+or\s+\(\(-moz-orient:\s*inline\)\s+and\s+\(not\s+\(color:\s*rgb\(from\s+red\s+r\s+g\s+b\)\)\)\)$/;
646
645
  function isTailwindcssV4ModernCheck(atRule) {
647
- return atRule.name === "supports" && TAILWIND_V4_MODERN_REGEX.test(atRule.params);
646
+ return atRule.name === "supports" && [
647
+ /-webkit-hyphens\s*:\s*none/,
648
+ /margin-trim\s*:\s*inline/,
649
+ /-moz-orient\s*:\s*inline/,
650
+ /color\s*:\s*rgb\(\s*from\s+red\s+r\s+g\s+b\s*\)/
651
+ ].every((regex) => regex.test(atRule.params));
648
652
  }
649
653
  var postcssWeappTailwindcssPrePlugin = (options) => {
650
654
  const opts = _shared.defu.call(void 0, options, { isMainChunk: true });
package/dist/index.mjs CHANGED
@@ -642,9 +642,13 @@ function commonChunkPreflight(node, options) {
642
642
  function isAtMediaHover(atRule) {
643
643
  return /media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name) || atRule.name === "media" && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params);
644
644
  }
645
- var TAILWIND_V4_MODERN_REGEX = /^\(\(-webkit-hyphens:\s*none\)\s+and\s+\(not\s+\(margin-trim:\s*inline\)\)\)\s+or\s+\(\(-moz-orient:\s*inline\)\s+and\s+\(not\s+\(color:\s*rgb\(from\s+red\s+r\s+g\s+b\)\)\)\)$/;
646
645
  function isTailwindcssV4ModernCheck(atRule) {
647
- return atRule.name === "supports" && TAILWIND_V4_MODERN_REGEX.test(atRule.params);
646
+ return atRule.name === "supports" && [
647
+ /-webkit-hyphens\s*:\s*none/,
648
+ /margin-trim\s*:\s*inline/,
649
+ /-moz-orient\s*:\s*inline/,
650
+ /color\s*:\s*rgb\(\s*from\s+red\s+r\s+g\s+b\s*\)/
651
+ ].every((regex) => regex.test(atRule.params));
648
652
  }
649
653
  var postcssWeappTailwindcssPrePlugin = (options) => {
650
654
  const opts = defu2(options, { isMainChunk: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "1.0.10-alpha.0",
3
+ "version": "1.0.10-alpha.1",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",