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.
- package/dist/chunk-23B34GUU.js +126 -0
- package/dist/chunk-33GCHXV2.js +953 -0
- package/dist/chunk-556KTBON.js +31 -0
- package/dist/chunk-6Z776ZWK.js +43 -0
- package/dist/chunk-75EWCRQW.mjs +13 -0
- package/dist/chunk-76AXDOI5.js +173 -0
- package/dist/chunk-77FRX3XG.js +30 -0
- package/dist/chunk-AB467PG7.mjs +43 -0
- package/dist/chunk-D7TNNBED.js +95 -0
- package/dist/chunk-E7XGHGC7.mjs +62 -0
- package/dist/chunk-F7IR3ASC.mjs +152 -0
- package/dist/chunk-GUE4UCRJ.mjs +126 -0
- package/dist/chunk-H62TECOL.js +216 -0
- package/dist/chunk-HBQASQKY.js +13 -0
- package/dist/chunk-IOYI6MSW.mjs +533 -0
- package/dist/chunk-JMMU4NZL.mjs +173 -0
- package/dist/chunk-KR2M4GD3.mjs +953 -0
- package/dist/chunk-LYLCSEZ7.js +152 -0
- package/dist/chunk-NVFWRLOI.mjs +27 -0
- package/dist/chunk-ODCGCGWM.js +533 -0
- package/dist/chunk-ORMKM6ZA.mjs +30 -0
- package/dist/chunk-S2GPPMOJ.js +27 -0
- package/dist/chunk-SRLZU2YE.mjs +95 -0
- package/dist/chunk-U2UGOG3R.js +62 -0
- package/dist/chunk-VECXHWWG.mjs +31 -0
- package/dist/chunk-Z3EH2XYL.mjs +216 -0
- package/dist/cli.d.mts +2 -0
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +32 -51
- package/dist/cli.mjs +34 -46
- package/dist/core.d.mts +22 -0
- package/dist/core.d.ts +16 -2
- package/dist/core.js +43 -63
- package/dist/core.mjs +46 -62
- package/dist/css-macro/index.d.mts +18 -0
- package/dist/css-macro/index.d.ts +7 -4
- package/dist/css-macro/index.js +37 -34
- package/dist/css-macro/index.mjs +35 -28
- package/dist/css-macro/postcss.d.mts +7 -0
- package/dist/css-macro/postcss.d.ts +5 -3
- package/dist/css-macro/postcss.js +54 -45
- package/dist/css-macro/postcss.mjs +54 -45
- package/dist/defaults.d.mts +16 -0
- package/dist/defaults.d.ts +16 -2
- package/dist/defaults.js +6 -9
- package/dist/defaults.mjs +9 -4
- package/dist/gulp.d.mts +26 -0
- package/dist/gulp.d.ts +26 -1
- package/dist/gulp.js +12 -37
- package/dist/gulp.mjs +15 -32
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -4
- package/dist/index.js +23 -44
- package/dist/index.mjs +23 -34
- package/dist/postcss.d.mts +23 -0
- package/dist/postcss.d.ts +23 -1
- package/dist/postcss.js +10 -24
- package/dist/postcss.mjs +17 -8
- package/dist/replace.d.mts +19 -0
- package/dist/replace.d.ts +19 -3
- package/dist/replace.js +30 -50
- package/dist/replace.mjs +30 -26
- package/dist/types-DSNuiOhH.d.mts +519 -0
- package/dist/types-DSNuiOhH.d.ts +519 -0
- package/dist/vite.d.mts +22 -0
- package/dist/vite.d.ts +22 -1
- package/dist/vite.js +12 -35
- package/dist/vite.mjs +15 -30
- package/dist/weapp-tw-runtime-loader.d.mts +7 -0
- package/dist/{bundlers/webpack/loaders/weapp-tw-runtime-loader.d.ts → weapp-tw-runtime-loader.d.ts} +4 -2
- package/dist/weapp-tw-runtime-loader.js +12 -12
- package/dist/weapp-tw-runtime-loader.mjs +12 -8
- package/dist/webpack.d.mts +26 -0
- package/dist/webpack.d.ts +26 -1
- package/dist/webpack.js +12 -35
- package/dist/webpack.mjs +15 -30
- package/dist/webpack4.d.mts +27 -0
- package/dist/webpack4.d.ts +27 -1
- package/dist/webpack4.js +205 -192
- package/dist/webpack4.mjs +211 -189
- package/package.json +18 -19
- package/dist/babel/index.d.ts +0 -16
- package/dist/bundlers/gulp/index.d.ts +0 -8
- package/dist/bundlers/vite/index.d.ts +0 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +0 -8
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +0 -8
- package/dist/bundlers/webpack/index.d.ts +0 -1
- package/dist/cache/index.d.ts +0 -32
- package/dist/constants-CFM1J-h1.js +0 -42
- package/dist/constants-Dy2Dd3Fz.mjs +0 -36
- package/dist/constants.d.ts +0 -7
- package/dist/css-macro/constants.d.ts +0 -14
- package/dist/debug/index.d.ts +0 -2
- package/dist/defaults-DUZZvtdg.mjs +0 -149
- package/dist/defaults-syv_N3uk.js +0 -156
- package/dist/defu-Cdz2PomB.js +0 -60
- package/dist/defu-n46TJT6t.mjs +0 -57
- package/dist/env.d.ts +0 -2
- package/dist/escape.d.ts +0 -4
- package/dist/extractors/split.d.ts +0 -3
- package/dist/index-B8TOcVAt.js +0 -130
- package/dist/index-BEIjgKpF.mjs +0 -11
- package/dist/index-BKZH-Gxq.mjs +0 -134
- package/dist/index-BPzIdybK.mjs +0 -513
- package/dist/index-Bc61v7B0.mjs +0 -124
- package/dist/index-DXeB6ex8.js +0 -136
- package/dist/index-DwZHOkK3.js +0 -526
- package/dist/index-HC-Qkn0i.js +0 -17
- package/dist/js/handlers.d.ts +0 -13
- package/dist/js/index.d.ts +0 -7
- package/dist/mangle/index.d.ts +0 -8
- package/dist/options-BHJnjA_a.mjs +0 -981
- package/dist/options-DAp5AdGz.js +0 -1014
- package/dist/options.d.ts +0 -2
- package/dist/postcss/cssVars.d.ts +0 -5
- package/dist/postcss/index.d.ts +0 -3
- package/dist/postcss/mp.d.ts +0 -8
- package/dist/postcss/plugins/ctx.d.ts +0 -6
- package/dist/postcss/plugins/index.d.ts +0 -7
- package/dist/postcss/plugins/post.d.ts +0 -5
- package/dist/postcss/plugins/pre.d.ts +0 -5
- package/dist/postcss/preflight.d.ts +0 -3
- package/dist/postcss/selectorParser.d.ts +0 -6
- package/dist/postcss/shared.d.ts +0 -3
- package/dist/postcss/symbols.d.ts +0 -1
- package/dist/reg.d.ts +0 -1
- package/dist/shared-DbJl6i6a.mjs +0 -25
- package/dist/shared-hzYeE1wX.js +0 -28
- package/dist/tailwindcss/patcher.d.ts +0 -8
- package/dist/tailwindcss/supportCustomUnit.d.ts +0 -6
- package/dist/types.d.ts +0 -179
- package/dist/utils.d.ts +0 -18
- package/dist/v5-B9S3lBOs.mjs +0 -174
- package/dist/v5-QURRYPNk.js +0 -181
- package/dist/wxml/Tokenizer.d.ts +0 -31
- package/dist/wxml/index.d.ts +0 -2
- package/dist/wxml/shared.d.ts +0 -2
- 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;
|