weapp-tailwindcss 3.3.7 → 3.4.0-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.
Files changed (138) hide show
  1. package/dist/chunk-23B34GUU.js +126 -0
  2. package/dist/chunk-33GCHXV2.js +953 -0
  3. package/dist/chunk-556KTBON.js +31 -0
  4. package/dist/chunk-6Z776ZWK.js +43 -0
  5. package/dist/chunk-75EWCRQW.mjs +13 -0
  6. package/dist/chunk-76AXDOI5.js +173 -0
  7. package/dist/chunk-77FRX3XG.js +30 -0
  8. package/dist/chunk-AB467PG7.mjs +43 -0
  9. package/dist/chunk-D7TNNBED.js +95 -0
  10. package/dist/chunk-E7XGHGC7.mjs +62 -0
  11. package/dist/chunk-F7IR3ASC.mjs +152 -0
  12. package/dist/chunk-GUE4UCRJ.mjs +126 -0
  13. package/dist/chunk-H62TECOL.js +216 -0
  14. package/dist/chunk-HBQASQKY.js +13 -0
  15. package/dist/chunk-IOYI6MSW.mjs +533 -0
  16. package/dist/chunk-JMMU4NZL.mjs +173 -0
  17. package/dist/chunk-KR2M4GD3.mjs +953 -0
  18. package/dist/chunk-LYLCSEZ7.js +152 -0
  19. package/dist/chunk-NVFWRLOI.mjs +27 -0
  20. package/dist/chunk-ODCGCGWM.js +533 -0
  21. package/dist/chunk-ORMKM6ZA.mjs +30 -0
  22. package/dist/chunk-S2GPPMOJ.js +27 -0
  23. package/dist/chunk-SRLZU2YE.mjs +95 -0
  24. package/dist/chunk-U2UGOG3R.js +62 -0
  25. package/dist/chunk-VECXHWWG.mjs +31 -0
  26. package/dist/chunk-Z3EH2XYL.mjs +216 -0
  27. package/dist/cli.d.mts +2 -0
  28. package/dist/cli.d.ts +2 -1
  29. package/dist/cli.js +32 -51
  30. package/dist/cli.mjs +34 -46
  31. package/dist/core.d.mts +22 -0
  32. package/dist/core.d.ts +16 -2
  33. package/dist/core.js +43 -63
  34. package/dist/core.mjs +46 -62
  35. package/dist/css-macro/index.d.mts +18 -0
  36. package/dist/css-macro/index.d.ts +7 -4
  37. package/dist/css-macro/index.js +37 -34
  38. package/dist/css-macro/index.mjs +35 -28
  39. package/dist/css-macro/postcss.d.mts +7 -0
  40. package/dist/css-macro/postcss.d.ts +5 -3
  41. package/dist/css-macro/postcss.js +54 -45
  42. package/dist/css-macro/postcss.mjs +54 -45
  43. package/dist/defaults.d.mts +16 -0
  44. package/dist/defaults.d.ts +16 -2
  45. package/dist/defaults.js +6 -9
  46. package/dist/defaults.mjs +9 -4
  47. package/dist/gulp.d.mts +26 -0
  48. package/dist/gulp.d.ts +26 -1
  49. package/dist/gulp.js +12 -37
  50. package/dist/gulp.mjs +15 -32
  51. package/dist/index.d.mts +17 -0
  52. package/dist/index.d.ts +17 -4
  53. package/dist/index.js +23 -44
  54. package/dist/index.mjs +23 -34
  55. package/dist/postcss.d.mts +23 -0
  56. package/dist/postcss.d.ts +23 -1
  57. package/dist/postcss.js +10 -24
  58. package/dist/postcss.mjs +17 -8
  59. package/dist/replace.d.mts +19 -0
  60. package/dist/replace.d.ts +19 -3
  61. package/dist/replace.js +30 -50
  62. package/dist/replace.mjs +30 -26
  63. package/dist/types-DSNuiOhH.d.mts +519 -0
  64. package/dist/types-DSNuiOhH.d.ts +519 -0
  65. package/dist/vite.d.mts +22 -0
  66. package/dist/vite.d.ts +22 -1
  67. package/dist/vite.js +12 -35
  68. package/dist/vite.mjs +15 -30
  69. package/dist/weapp-tw-runtime-loader.d.mts +7 -0
  70. package/dist/{bundlers/webpack/loaders/weapp-tw-runtime-loader.d.ts → weapp-tw-runtime-loader.d.ts} +4 -2
  71. package/dist/weapp-tw-runtime-loader.js +12 -12
  72. package/dist/weapp-tw-runtime-loader.mjs +12 -8
  73. package/dist/webpack.d.mts +26 -0
  74. package/dist/webpack.d.ts +26 -1
  75. package/dist/webpack.js +12 -35
  76. package/dist/webpack.mjs +15 -30
  77. package/dist/webpack4.d.mts +27 -0
  78. package/dist/webpack4.d.ts +27 -1
  79. package/dist/webpack4.js +205 -192
  80. package/dist/webpack4.mjs +211 -189
  81. package/package.json +18 -19
  82. package/dist/babel/index.d.ts +0 -16
  83. package/dist/bundlers/gulp/index.d.ts +0 -8
  84. package/dist/bundlers/vite/index.d.ts +0 -3
  85. package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +0 -8
  86. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +0 -8
  87. package/dist/bundlers/webpack/index.d.ts +0 -1
  88. package/dist/cache/index.d.ts +0 -32
  89. package/dist/constants-CFM1J-h1.js +0 -42
  90. package/dist/constants-Dy2Dd3Fz.mjs +0 -36
  91. package/dist/constants.d.ts +0 -7
  92. package/dist/css-macro/constants.d.ts +0 -14
  93. package/dist/debug/index.d.ts +0 -2
  94. package/dist/defaults-DUZZvtdg.mjs +0 -149
  95. package/dist/defaults-syv_N3uk.js +0 -156
  96. package/dist/defu-Cdz2PomB.js +0 -60
  97. package/dist/defu-n46TJT6t.mjs +0 -57
  98. package/dist/env.d.ts +0 -2
  99. package/dist/escape.d.ts +0 -4
  100. package/dist/extractors/split.d.ts +0 -3
  101. package/dist/index-B8TOcVAt.js +0 -130
  102. package/dist/index-BEIjgKpF.mjs +0 -11
  103. package/dist/index-BKZH-Gxq.mjs +0 -134
  104. package/dist/index-BPzIdybK.mjs +0 -513
  105. package/dist/index-Bc61v7B0.mjs +0 -124
  106. package/dist/index-DXeB6ex8.js +0 -136
  107. package/dist/index-DwZHOkK3.js +0 -526
  108. package/dist/index-HC-Qkn0i.js +0 -17
  109. package/dist/js/handlers.d.ts +0 -13
  110. package/dist/js/index.d.ts +0 -7
  111. package/dist/mangle/index.d.ts +0 -8
  112. package/dist/options-BHJnjA_a.mjs +0 -981
  113. package/dist/options-DAp5AdGz.js +0 -1014
  114. package/dist/options.d.ts +0 -2
  115. package/dist/postcss/cssVars.d.ts +0 -5
  116. package/dist/postcss/index.d.ts +0 -3
  117. package/dist/postcss/mp.d.ts +0 -8
  118. package/dist/postcss/plugins/ctx.d.ts +0 -6
  119. package/dist/postcss/plugins/index.d.ts +0 -7
  120. package/dist/postcss/plugins/post.d.ts +0 -5
  121. package/dist/postcss/plugins/pre.d.ts +0 -5
  122. package/dist/postcss/preflight.d.ts +0 -3
  123. package/dist/postcss/selectorParser.d.ts +0 -6
  124. package/dist/postcss/shared.d.ts +0 -3
  125. package/dist/postcss/symbols.d.ts +0 -1
  126. package/dist/reg.d.ts +0 -1
  127. package/dist/shared-DbJl6i6a.mjs +0 -25
  128. package/dist/shared-hzYeE1wX.js +0 -28
  129. package/dist/tailwindcss/patcher.d.ts +0 -8
  130. package/dist/tailwindcss/supportCustomUnit.d.ts +0 -6
  131. package/dist/types.d.ts +0 -179
  132. package/dist/utils.d.ts +0 -18
  133. package/dist/v5-B9S3lBOs.mjs +0 -174
  134. package/dist/v5-QURRYPNk.js +0 -181
  135. package/dist/wxml/Tokenizer.d.ts +0 -31
  136. package/dist/wxml/index.d.ts +0 -2
  137. package/dist/wxml/shared.d.ts +0 -2
  138. package/dist/wxml/utils.d.ts +0 -9
@@ -0,0 +1,126 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
2
+ function isPlainObject(value) {
3
+ if (value === null || typeof value !== "object") {
4
+ return false;
5
+ }
6
+ const prototype = Object.getPrototypeOf(value);
7
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
8
+ return false;
9
+ }
10
+ if (Symbol.iterator in value) {
11
+ return false;
12
+ }
13
+ if (Symbol.toStringTag in value) {
14
+ return Object.prototype.toString.call(value) === "[object Module]";
15
+ }
16
+ return true;
17
+ }
18
+ function _defu(baseObject, defaults, namespace = ".", merger) {
19
+ if (!isPlainObject(defaults)) {
20
+ return _defu(baseObject, {}, namespace, merger);
21
+ }
22
+ const object = Object.assign({}, defaults);
23
+ for (const key in baseObject) {
24
+ if (key === "__proto__" || key === "constructor") {
25
+ continue;
26
+ }
27
+ const value = baseObject[key];
28
+ if (value === null || value === void 0) {
29
+ continue;
30
+ }
31
+ if (merger && merger(object, key, value, namespace)) {
32
+ continue;
33
+ }
34
+ if (Array.isArray(value) && Array.isArray(object[key])) {
35
+ object[key] = [...value, ...object[key]];
36
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
37
+ object[key] = _defu(
38
+ value,
39
+ object[key],
40
+ (namespace ? `${namespace}.` : "") + key.toString(),
41
+ merger
42
+ );
43
+ } else {
44
+ object[key] = value;
45
+ }
46
+ }
47
+ return object;
48
+ }
49
+ function createDefu(merger) {
50
+ return (...arguments_) => (
51
+ // eslint-disable-next-line unicorn/no-array-reduce
52
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
53
+ );
54
+ }
55
+ var defu = createDefu();
56
+ var defuFn = createDefu((object, key, currentValue) => {
57
+ if (object[key] !== void 0 && typeof currentValue === "function") {
58
+ object[key] = currentValue(object[key]);
59
+ return true;
60
+ }
61
+ });
62
+ var defuArrayFn = createDefu((object, key, currentValue) => {
63
+ if (Array.isArray(object[key]) && typeof currentValue === "function") {
64
+ object[key] = currentValue(object[key]);
65
+ return true;
66
+ }
67
+ });
68
+
69
+ // src/utils.ts
70
+ function isMap(value) {
71
+ return Object.prototype.toString.call(value) === "[object Map]";
72
+ }
73
+ function noop() {
74
+ }
75
+ function groupBy(arr, cb) {
76
+ if (!Array.isArray(arr)) {
77
+ throw new TypeError("expected an array for first argument");
78
+ }
79
+ if (typeof cb !== "function") {
80
+ throw new TypeError("expected a function for second argument");
81
+ }
82
+ const result = {};
83
+ for (const item of arr) {
84
+ const bucketCategory = cb(item);
85
+ const bucket = result[bucketCategory];
86
+ if (Array.isArray(bucket)) {
87
+ result[bucketCategory].push(item);
88
+ } else {
89
+ result[bucketCategory] = [item];
90
+ }
91
+ }
92
+ return result;
93
+ }
94
+ function getGroupedEntries(entries, options) {
95
+ const { cssMatcher, htmlMatcher, jsMatcher, wxsMatcher } = options;
96
+ const groupedEntries = groupBy(entries, ([file]) => {
97
+ if (cssMatcher(file)) {
98
+ return "css";
99
+ } else if (htmlMatcher(file)) {
100
+ return "html";
101
+ } else if (jsMatcher(file) || wxsMatcher(file)) {
102
+ return "js";
103
+ } else {
104
+ return "other";
105
+ }
106
+ });
107
+ return groupedEntries;
108
+ }
109
+ function removeExt(file) {
110
+ return file.replace(/\.[^./]+$/, "");
111
+ }
112
+ var defuOverrideArray = createDefu((obj, key, value) => {
113
+ if (Array.isArray(obj[key]) && Array.isArray(value)) {
114
+ obj[key] = value;
115
+ return true;
116
+ }
117
+ });
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ exports.defu = defu; exports.isMap = isMap; exports.noop = noop; exports.getGroupedEntries = getGroupedEntries; exports.removeExt = removeExt; exports.defuOverrideArray = defuOverrideArray;