@weapp-tailwindcss/postcss 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
  >
26
26
  > 小程序原生工具链 `weapp-vite` 已经发布,使用它改善你的原生小程序开发体验吧,更多详见 [官方文档](https://vite.icebreaker.top/)
27
27
 
28
- \[[文档地址](https://tw.icebreaker.top)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
28
+ \[[文档地址](https://tw.icebreaker.top)\] \| \[[备用文档地址](https://ice-tw.netlify.app/)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
29
29
 
30
30
  - [特性](#特性)
31
31
  - [版本对应](#版本对应)
@@ -56,7 +56,10 @@
56
56
 
57
57
  ## 版本对应
58
58
 
59
- 目前,`weapp-tailwindcss` 的 `2.x` 和 `3.x` 支持最新版本的 `tailwindcss v3.x.x` 版本和 `webpack5`,`webpack4`, `vite` 和 `gulp`。从 `3.2.0` 开始,`weapp-tailwindcss` 支持最原生的小程序开发方式。
59
+ 目前,`weapp-tailwindcss` 的 `4.x` 版本
60
+
61
+ - 支持最新版本的 `tailwindcss v4` 和 `v3` 还有 `v2 jit` 版本。
62
+ - 支持 `webpack5`,`webpack4`, `vite` 和 `gulp` 这些打包工具,也支持纯 `Nodejs` API 的方式,集成到你自己的构建工具中。
60
63
 
61
64
  > 如果你还在使用 `tailwindcss@2` 版本,那你应该使用从 `weapp-tailwindcss/webpack4` 导出的本插件的 `postcss7` `webpack4` 版本。另外请确保你的 `nodejs` 版本 `>=16.6.0`。目前低于 `16` 的长期维护版本(`偶数版本`) 都已经结束了生命周期,建议安装 `nodejs` 的 `LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
62
65
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-DiXihH4o.mjs';
2
- export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-DiXihH4o.mjs';
1
+ import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-PPOinWpH.mjs';
2
+ export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-PPOinWpH.mjs';
3
3
  import postcss from 'postcss';
4
4
  import '@weapp-tailwindcss/mangle';
5
5
  import 'postcss-load-config';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-DiXihH4o.js';
2
- export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-DiXihH4o.js';
1
+ import { I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions } from './types-PPOinWpH.js';
2
+ export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions, c as createInjectPreflight } from './types-PPOinWpH.js';
3
3
  import postcss from 'postcss';
4
4
  import '@weapp-tailwindcss/mangle';
5
5
  import 'postcss-load-config';
package/dist/index.js CHANGED
@@ -20,7 +20,8 @@ function getDefaultOptions() {
20
20
  autoprefixer: {
21
21
  add: false
22
22
  }
23
- }
23
+ },
24
+ cssRemoveProperty: true
24
25
  };
25
26
  }
26
27
 
@@ -44,6 +45,9 @@ function createContext() {
44
45
  };
45
46
  }
46
47
 
48
+ // src/plugins/post.ts
49
+
50
+
47
51
  // src/constants.ts
48
52
  var postcssPlugin = "postcss-weapp-tailwindcss-rename-plugin";
49
53
 
@@ -289,14 +293,14 @@ function getFallbackRemove(rule) {
289
293
 
290
294
  // src/plugins/post.ts
291
295
  var OklabSuffix = "in oklab";
292
- var postcssWeappTailwindcssPostPlugin = (options = {
293
- isMainChunk: true
294
- }) => {
295
- const { customRuleCallback, isMainChunk } = options;
296
+ var postcssWeappTailwindcssPostPlugin = (options) => {
297
+ const opts = _shared.defu.call(void 0, options, {
298
+ isMainChunk: true
299
+ });
296
300
  const p = {
297
301
  postcssPlugin
298
302
  };
299
- if (isMainChunk) {
303
+ if (opts.isMainChunk) {
300
304
  p.OnceExit = (root) => {
301
305
  root.walkRules((rule) => {
302
306
  getFallbackRemove(rule).transformSync(rule, {
@@ -312,17 +316,23 @@ var postcssWeappTailwindcssPostPlugin = (options = {
312
316
  }
313
317
  });
314
318
  });
319
+ opts.cssRemoveProperty && root.walkAtRules("property", (rule) => {
320
+ rule.remove();
321
+ });
315
322
  };
316
323
  }
317
- if (typeof customRuleCallback === "function") {
324
+ if (typeof opts.customRuleCallback === "function") {
318
325
  p.Rule = (rule) => {
319
- customRuleCallback(rule, options);
326
+ _optionalChain([opts, 'access', _24 => _24.customRuleCallback, 'optionalCall', _25 => _25(rule, opts)]);
320
327
  };
321
328
  }
322
329
  return p;
323
330
  };
324
331
  postcssWeappTailwindcssPostPlugin.postcss = true;
325
332
 
333
+ // src/plugins/pre.ts
334
+
335
+
326
336
  // src/mp.ts
327
337
 
328
338
 
@@ -607,7 +617,7 @@ function remakeCssVarSelector(selectors, options) {
607
617
  function commonChunkPreflight(node, options) {
608
618
  const { ctx, cssInjectPreflight, injectAdditionalCssVarScope } = options;
609
619
  if (testIfVariablesScope(node)) {
610
- _optionalChain([ctx, 'optionalAccess', _24 => _24.markVariablesScope, 'call', _25 => _25(node)]);
620
+ _optionalChain([ctx, 'optionalAccess', _26 => _26.markVariablesScope, 'call', _27 => _27(node)]);
611
621
  node.selectors = remakeCssVarSelector(node.selectors, options);
612
622
  node.before(makePseudoVarRule());
613
623
  if (typeof cssInjectPreflight === "function") {
@@ -632,14 +642,15 @@ function commonChunkPreflight(node, options) {
632
642
  function isAtMediaHover(atRule) {
633
643
  return /media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name) || atRule.name === "media" && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params);
634
644
  }
635
- var postcssWeappTailwindcssPrePlugin = (options = {
636
- isMainChunk: true
637
- }) => {
638
- const { isMainChunk } = options;
645
+ function isTailwindcssV4ModerCheck(atRule) {
646
+ return atRule.name === "supports" && atRule.params === "((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))";
647
+ }
648
+ var postcssWeappTailwindcssPrePlugin = (options) => {
649
+ const opts = _shared.defu.call(void 0, options, { isMainChunk: true });
639
650
  const p = {
640
651
  postcssPlugin,
641
652
  Rule(rule) {
642
- ruleTransformSync(rule, options);
653
+ ruleTransformSync(rule, opts);
643
654
  },
644
655
  AtRule(atRule) {
645
656
  if (isAtMediaHover(atRule)) {
@@ -648,13 +659,17 @@ var postcssWeappTailwindcssPrePlugin = (options = {
648
659
  } else {
649
660
  atRule.remove();
650
661
  }
662
+ } else if (isTailwindcssV4ModerCheck(atRule)) {
663
+ if (_optionalChain([atRule, 'access', _28 => _28.first, 'optionalAccess', _29 => _29.type]) === "atrule" && atRule.first.name === "layer") {
664
+ atRule.replaceWith(atRule.first.nodes);
665
+ }
651
666
  }
652
667
  }
653
668
  };
654
- if (isMainChunk) {
669
+ if (opts.isMainChunk) {
655
670
  p.Once = (root) => {
656
671
  root.walkRules((rule) => {
657
- commonChunkPreflight(rule, options);
672
+ commonChunkPreflight(rule, opts);
658
673
  });
659
674
  };
660
675
  }
@@ -671,7 +686,7 @@ function compare(e3, t2) {
671
686
  return e3.a === t2.a ? e3.b === t2.b ? e3.c - t2.c : e3.b - t2.b : e3.a - t2.a;
672
687
  }
673
688
  function selectorSpecificity(t2, s) {
674
- const i = _optionalChain([s, 'optionalAccess', _26 => _26.customSpecificity, 'optionalCall', _27 => _27(t2)]);
689
+ const i = _optionalChain([s, 'optionalAccess', _30 => _30.customSpecificity, 'optionalCall', _31 => _31(t2)]);
675
690
  if (i) return i;
676
691
  if (!t2) return { a: 0, b: 0, c: 0 };
677
692
  let c = 0, n = 0, o2 = 0;
@@ -747,7 +762,7 @@ function selectorSpecificity(t2, s) {
747
762
  case ":active-view-transition-type":
748
763
  return { a: 0, b: 1, c: 0 };
749
764
  }
750
- else _postcssselectorparser2.default.isContainer(t2) && _optionalChain([t2, 'access', _28 => _28.nodes, 'optionalAccess', _29 => _29.length]) > 0 && t2.nodes.forEach((e3) => {
765
+ else _postcssselectorparser2.default.isContainer(t2) && _optionalChain([t2, 'access', _32 => _32.nodes, 'optionalAccess', _33 => _33.length]) > 0 && t2.nodes.forEach((e3) => {
751
766
  const t3 = selectorSpecificity(e3, s);
752
767
  c += t3.a, n += t3.b, o2 += t3.c;
753
768
  });
@@ -775,8 +790,8 @@ function alwaysValidSelector(s) {
775
790
  const o2 = _postcssselectorparser2.default.call(void 0, ).astSync(s);
776
791
  let t2 = true;
777
792
  return o2.walk((e3) => {
778
- if ("class" !== e3.type && "comment" !== e3.type && "id" !== e3.type && "root" !== e3.type && "selector" !== e3.type && "string" !== e3.type && "tag" !== e3.type && "universal" !== e3.type && ("attribute" !== e3.type || e3.insensitive) && ("combinator" !== e3.type || "+" !== e3.value && ">" !== e3.value && "~" !== e3.value && " " !== e3.value) && ("pseudo" !== e3.type || _optionalChain([e3, 'access', _30 => _30.nodes, 'optionalAccess', _31 => _31.length]) || ":hover" !== e3.value.toLowerCase() && ":focus" !== e3.value.toLowerCase())) {
779
- if ("pseudo" === e3.type && 1 === _optionalChain([e3, 'access', _32 => _32.nodes, 'optionalAccess', _33 => _33.length]) && ":not" === e3.value.toLowerCase()) {
793
+ if ("class" !== e3.type && "comment" !== e3.type && "id" !== e3.type && "root" !== e3.type && "selector" !== e3.type && "string" !== e3.type && "tag" !== e3.type && "universal" !== e3.type && ("attribute" !== e3.type || e3.insensitive) && ("combinator" !== e3.type || "+" !== e3.value && ">" !== e3.value && "~" !== e3.value && " " !== e3.value) && ("pseudo" !== e3.type || _optionalChain([e3, 'access', _34 => _34.nodes, 'optionalAccess', _35 => _35.length]) || ":hover" !== e3.value.toLowerCase() && ":focus" !== e3.value.toLowerCase())) {
794
+ if ("pseudo" === e3.type && 1 === _optionalChain([e3, 'access', _36 => _36.nodes, 'optionalAccess', _37 => _37.length]) && ":not" === e3.value.toLowerCase()) {
780
795
  let s2 = true;
781
796
  if (e3.nodes[0].walkCombinators(() => {
782
797
  s2 = false;
@@ -888,8 +903,8 @@ function splitSelectors(o2, t2, n = 0) {
888
903
  if (_postcssselectorparser2.default.call(void 0, ).astSync(o3).walkPseudos((e3) => {
889
904
  if (":is" !== e3.value.toLowerCase() || !e3.nodes || !e3.nodes.length) return;
890
905
  if ("selector" === e3.nodes[0].type && 0 === e3.nodes[0].nodes.length) return;
891
- if ("pseudo" === _optionalChain([e3, 'access', _34 => _34.parent, 'optionalAccess', _35 => _35.parent, 'optionalAccess', _36 => _36.type]) && ":not" === _optionalChain([e3, 'access', _37 => _37.parent, 'optionalAccess', _38 => _38.parent, 'optionalAccess', _39 => _39.value, 'optionalAccess', _40 => _40.toLowerCase, 'call', _41 => _41()])) return void i.push([{ start: e3.parent.parent.sourceIndex, end: e3.parent.parent.sourceIndex + e3.parent.parent.toString().length, option: `:not(${e3.nodes.toString()})` }]);
892
- if ("pseudo" === _optionalChain([e3, 'access', _42 => _42.parent, 'optionalAccess', _43 => _43.parent, 'optionalAccess', _44 => _44.type]) && ":has" === _optionalChain([e3, 'access', _45 => _45.parent, 'optionalAccess', _46 => _46.parent, 'optionalAccess', _47 => _47.value, 'optionalAccess', _48 => _48.toLowerCase, 'call', _49 => _49()])) return void (e3.value = ":-csstools-matches");
906
+ if ("pseudo" === _optionalChain([e3, 'access', _38 => _38.parent, 'optionalAccess', _39 => _39.parent, 'optionalAccess', _40 => _40.type]) && ":not" === _optionalChain([e3, 'access', _41 => _41.parent, 'optionalAccess', _42 => _42.parent, 'optionalAccess', _43 => _43.value, 'optionalAccess', _44 => _44.toLowerCase, 'call', _45 => _45()])) return void i.push([{ start: e3.parent.parent.sourceIndex, end: e3.parent.parent.sourceIndex + e3.parent.parent.toString().length, option: `:not(${e3.nodes.toString()})` }]);
907
+ if ("pseudo" === _optionalChain([e3, 'access', _46 => _46.parent, 'optionalAccess', _47 => _47.parent, 'optionalAccess', _48 => _48.type]) && ":has" === _optionalChain([e3, 'access', _49 => _49.parent, 'optionalAccess', _50 => _50.parent, 'optionalAccess', _51 => _51.value, 'optionalAccess', _52 => _52.toLowerCase, 'call', _53 => _53()])) return void (e3.value = ":-csstools-matches");
893
908
  let o4 = e3.parent;
894
909
  for (; o4; ) {
895
910
  if (o4.value && ":is" === o4.value.toLowerCase() && "pseudo" === o4.type) return void (a = true);
@@ -911,7 +926,7 @@ function splitSelectors(o2, t2, n = 0) {
911
926
  let s = "";
912
927
  for (let t3 = 0; t3 < e3.length; t3++) {
913
928
  const n2 = e3[t3];
914
- s += o3.substring(_optionalChain([e3, 'access', _50 => _50[t3 - 1], 'optionalAccess', _51 => _51.end]) || 0, e3[t3].start), s += ":-csstools-matches(" + n2.option + ")", t3 === e3.length - 1 && (s += o3.substring(e3[t3].end));
929
+ s += o3.substring(_optionalChain([e3, 'access', _54 => _54[t3 - 1], 'optionalAccess', _55 => _55.end]) || 0, e3[t3].start), s += ":-csstools-matches(" + n2.option + ")", t3 === e3.length - 1 && (s += o3.substring(e3[t3].end));
915
930
  }
916
931
  c.push(s);
917
932
  }), a && n < 10 && (c = splitSelectors(c, t2, n + 1)), c;
@@ -972,7 +987,7 @@ function getPlugins(options) {
972
987
  const ctx = createContext();
973
988
  options.ctx = ctx;
974
989
  const plugins = [
975
- ..._nullishCoalesce(_optionalChain([options, 'access', _52 => _52.postcssOptions, 'optionalAccess', _53 => _53.plugins]), () => ( [])),
990
+ ..._nullishCoalesce(_optionalChain([options, 'access', _56 => _56.postcssOptions, 'optionalAccess', _57 => _57.plugins]), () => ( [])),
976
991
  postcssWeappTailwindcssPrePlugin(options),
977
992
  _postcsspresetenv2.default.call(void 0, options.cssPresetEnv)
978
993
  ];
@@ -1016,7 +1031,7 @@ function styleHandler(rawSource, options) {
1016
1031
  getPlugins(options)
1017
1032
  ).process(
1018
1033
  rawSource,
1019
- _nullishCoalesce(_optionalChain([options, 'access', _54 => _54.postcssOptions, 'optionalAccess', _55 => _55.options]), () => ( {
1034
+ _nullishCoalesce(_optionalChain([options, 'access', _58 => _58.postcssOptions, 'optionalAccess', _59 => _59.options]), () => ( {
1020
1035
  from: void 0
1021
1036
  }))
1022
1037
  ).async();
package/dist/index.mjs CHANGED
@@ -20,7 +20,8 @@ function getDefaultOptions() {
20
20
  autoprefixer: {
21
21
  add: false
22
22
  }
23
- }
23
+ },
24
+ cssRemoveProperty: true
24
25
  };
25
26
  }
26
27
 
@@ -44,6 +45,9 @@ function createContext() {
44
45
  };
45
46
  }
46
47
 
48
+ // src/plugins/post.ts
49
+ import { defu } from "@weapp-tailwindcss/shared";
50
+
47
51
  // src/constants.ts
48
52
  var postcssPlugin = "postcss-weapp-tailwindcss-rename-plugin";
49
53
 
@@ -289,14 +293,14 @@ function getFallbackRemove(rule) {
289
293
 
290
294
  // src/plugins/post.ts
291
295
  var OklabSuffix = "in oklab";
292
- var postcssWeappTailwindcssPostPlugin = (options = {
293
- isMainChunk: true
294
- }) => {
295
- const { customRuleCallback, isMainChunk } = options;
296
+ var postcssWeappTailwindcssPostPlugin = (options) => {
297
+ const opts = defu(options, {
298
+ isMainChunk: true
299
+ });
296
300
  const p = {
297
301
  postcssPlugin
298
302
  };
299
- if (isMainChunk) {
303
+ if (opts.isMainChunk) {
300
304
  p.OnceExit = (root) => {
301
305
  root.walkRules((rule) => {
302
306
  getFallbackRemove(rule).transformSync(rule, {
@@ -312,17 +316,23 @@ var postcssWeappTailwindcssPostPlugin = (options = {
312
316
  }
313
317
  });
314
318
  });
319
+ opts.cssRemoveProperty && root.walkAtRules("property", (rule) => {
320
+ rule.remove();
321
+ });
315
322
  };
316
323
  }
317
- if (typeof customRuleCallback === "function") {
324
+ if (typeof opts.customRuleCallback === "function") {
318
325
  p.Rule = (rule) => {
319
- customRuleCallback(rule, options);
326
+ opts.customRuleCallback?.(rule, opts);
320
327
  };
321
328
  }
322
329
  return p;
323
330
  };
324
331
  postcssWeappTailwindcssPostPlugin.postcss = true;
325
332
 
333
+ // src/plugins/pre.ts
334
+ import { defu as defu2 } from "@weapp-tailwindcss/shared";
335
+
326
336
  // src/mp.ts
327
337
  import { Declaration, Rule } from "postcss";
328
338
 
@@ -632,14 +642,15 @@ function commonChunkPreflight(node, options) {
632
642
  function isAtMediaHover(atRule) {
633
643
  return /media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name) || atRule.name === "media" && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params);
634
644
  }
635
- var postcssWeappTailwindcssPrePlugin = (options = {
636
- isMainChunk: true
637
- }) => {
638
- const { isMainChunk } = options;
645
+ function isTailwindcssV4ModerCheck(atRule) {
646
+ return atRule.name === "supports" && atRule.params === "((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))";
647
+ }
648
+ var postcssWeappTailwindcssPrePlugin = (options) => {
649
+ const opts = defu2(options, { isMainChunk: true });
639
650
  const p = {
640
651
  postcssPlugin,
641
652
  Rule(rule) {
642
- ruleTransformSync(rule, options);
653
+ ruleTransformSync(rule, opts);
643
654
  },
644
655
  AtRule(atRule) {
645
656
  if (isAtMediaHover(atRule)) {
@@ -648,13 +659,17 @@ var postcssWeappTailwindcssPrePlugin = (options = {
648
659
  } else {
649
660
  atRule.remove();
650
661
  }
662
+ } else if (isTailwindcssV4ModerCheck(atRule)) {
663
+ if (atRule.first?.type === "atrule" && atRule.first.name === "layer") {
664
+ atRule.replaceWith(atRule.first.nodes);
665
+ }
651
666
  }
652
667
  }
653
668
  };
654
- if (isMainChunk) {
669
+ if (opts.isMainChunk) {
655
670
  p.Once = (root) => {
656
671
  root.walkRules((rule) => {
657
- commonChunkPreflight(rule, options);
672
+ commonChunkPreflight(rule, opts);
658
673
  });
659
674
  };
660
675
  }
@@ -41,6 +41,7 @@ type IStyleHandlerOptions = {
41
41
  mangleContext?: IMangleScopeContext;
42
42
  ctx?: IContext;
43
43
  postcssOptions?: LoadedPostcssOptions;
44
+ cssRemoveProperty?: boolean;
44
45
  cssRemoveHoverPseudoClass?: boolean;
45
46
  cssPresetEnv?: pluginOptions;
46
47
  } & RequiredStyleHandlerOptions;
@@ -57,6 +58,7 @@ interface UserDefinedPostcssOptions {
57
58
  rem2rpx?: boolean | UserDefinedOptions;
58
59
  postcssOptions?: LoadedPostcssOptions;
59
60
  cssRemoveHoverPseudoClass?: boolean;
61
+ cssRemoveProperty?: boolean;
60
62
  customRuleCallback?: CustomRuleCallback;
61
63
  }
62
64
 
@@ -41,6 +41,7 @@ type IStyleHandlerOptions = {
41
41
  mangleContext?: IMangleScopeContext;
42
42
  ctx?: IContext;
43
43
  postcssOptions?: LoadedPostcssOptions;
44
+ cssRemoveProperty?: boolean;
44
45
  cssRemoveHoverPseudoClass?: boolean;
45
46
  cssPresetEnv?: pluginOptions;
46
47
  } & RequiredStyleHandlerOptions;
@@ -57,6 +58,7 @@ interface UserDefinedPostcssOptions {
57
58
  rem2rpx?: boolean | UserDefinedOptions;
58
59
  postcssOptions?: LoadedPostcssOptions;
59
60
  cssRemoveHoverPseudoClass?: boolean;
61
+ cssRemoveProperty?: boolean;
60
62
  customRuleCallback?: CustomRuleCallback;
61
63
  }
62
64
 
package/dist/types.d.mts CHANGED
@@ -3,4 +3,4 @@ import 'postcss';
3
3
  import 'postcss-load-config';
4
4
  import 'postcss-preset-env';
5
5
  import 'postcss-rem-to-responsive-pixel';
6
- export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-DiXihH4o.mjs';
6
+ export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-PPOinWpH.mjs';
package/dist/types.d.ts CHANGED
@@ -3,4 +3,4 @@ import 'postcss';
3
3
  import 'postcss-load-config';
4
4
  import 'postcss-preset-env';
5
5
  import 'postcss-rem-to-responsive-pixel';
6
- export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-DiXihH4o.js';
6
+ export { d as CssPreflightOptions, C as CustomRuleCallback, b as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, R as RequiredStyleHandlerOptions, U as UserDefinedPostcssOptions } from './types-PPOinWpH.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/postcss",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "@weapp-tailwindcss/postcss",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "@weapp-tailwindcss/shared": "1.0.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@weapp-tailwindcss/mangle": "1.0.3"
44
+ "@weapp-tailwindcss/mangle": "1.0.4"
45
45
  },
46
46
  "scripts": {
47
47
  "dev": "tsup --watch --sourcemap",