weapp-tailwindcss 2.5.2 → 2.6.0
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 +2 -8
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/gulp.js +2 -2
- package/dist/gulp.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{options-ad127e0c.js → options-487394fa.js} +6 -4
- package/dist/{options-1e3a224a.mjs → options-f7b71f03.mjs} +6 -4
- package/dist/postcss/cssVars.d.ts +5 -0
- package/dist/postcss/mp.d.ts +4 -0
- package/dist/postcss-760298ba.mjs +351 -0
- package/dist/postcss-b53e9504.js +359 -0
- package/dist/postcss.js +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/vite.js +2 -2
- package/dist/vite.mjs +2 -2
- package/dist/webpack.js +2 -2
- package/dist/webpack.mjs +2 -2
- package/package.json +30 -29
- package/dist/postcss-9a63df9d.mjs +0 -115
- package/dist/postcss-fbdc673b.js +0 -123
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var selectorParser = require('postcss-selector-parser');
|
|
4
|
+
var shared = require('./shared-ae7dd073.js');
|
|
5
|
+
var postcss = require('postcss');
|
|
6
|
+
require('@csstools/postcss-is-pseudo-class');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var selectorParser__default = /*#__PURE__*/_interopDefaultCompat(selectorParser);
|
|
11
|
+
|
|
12
|
+
const createTransform = (rule, options) => {
|
|
13
|
+
const { replaceUniversalSelectorWith, escapeMap, mangleContext } = options;
|
|
14
|
+
const replaceFlag = replaceUniversalSelectorWith !== false;
|
|
15
|
+
const transform = (selectors) => {
|
|
16
|
+
selectors.walk((selector) => {
|
|
17
|
+
if (selector.type === 'universal' && replaceFlag) {
|
|
18
|
+
selector.value = replaceUniversalSelectorWith;
|
|
19
|
+
}
|
|
20
|
+
if (selector.type === 'selector') {
|
|
21
|
+
const node = selector.nodes.find((x) => x.type === 'pseudo' && x.value === ':hover');
|
|
22
|
+
node && selector.remove();
|
|
23
|
+
}
|
|
24
|
+
if (selector.type === 'class') {
|
|
25
|
+
selector.value = shared.internalCssSelectorReplacer(selector.value, {
|
|
26
|
+
escapeMap,
|
|
27
|
+
mangleContext
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
if (selectors.length === 0) {
|
|
32
|
+
rule.remove();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return transform;
|
|
36
|
+
};
|
|
37
|
+
const getTransformer = (rule, options) => {
|
|
38
|
+
return selectorParser__default["default"](createTransform(rule, options));
|
|
39
|
+
};
|
|
40
|
+
const transformSync = (rule, options) => {
|
|
41
|
+
const transformer = getTransformer(rule, options);
|
|
42
|
+
return transformer.transformSync(rule, {
|
|
43
|
+
lossless: false,
|
|
44
|
+
updateSelector: true
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var cssVars = [
|
|
49
|
+
{
|
|
50
|
+
prop: '--tw-border-spacing-x',
|
|
51
|
+
value: '0'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
prop: '--tw-border-spacing-y',
|
|
55
|
+
value: '0'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
prop: '--tw-translate-x',
|
|
59
|
+
value: '0'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
prop: '--tw-translate-y',
|
|
63
|
+
value: '0'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
prop: '--tw-rotate',
|
|
67
|
+
value: '0'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
prop: '--tw-skew-x',
|
|
71
|
+
value: '0'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
prop: '--tw-skew-y',
|
|
75
|
+
value: '0'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
prop: '--tw-scale-x',
|
|
79
|
+
value: '1'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
prop: '--tw-scale-y',
|
|
83
|
+
value: '1'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
prop: '--tw-pan-x',
|
|
87
|
+
value: ' '
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
prop: '--tw-pan-y',
|
|
91
|
+
value: ' '
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
prop: '--tw-pinch-zoom',
|
|
95
|
+
value: ' '
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
prop: '--tw-scroll-snap-strictness',
|
|
99
|
+
value: 'proximity'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
prop: '--tw-gradient-from-position',
|
|
103
|
+
value: ' '
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
prop: '--tw-gradient-via-position',
|
|
107
|
+
value: ' '
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
prop: '--tw-gradient-to-position',
|
|
111
|
+
value: ' '
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
prop: '--tw-ordinal',
|
|
115
|
+
value: ' '
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
prop: '--tw-slashed-zero',
|
|
119
|
+
value: ' '
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
prop: '--tw-numeric-figure',
|
|
123
|
+
value: ' '
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
prop: '--tw-numeric-spacing',
|
|
127
|
+
value: ' '
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
prop: '--tw-numeric-fraction',
|
|
131
|
+
value: ' '
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
prop: '--tw-ring-inset',
|
|
135
|
+
value: ' '
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
prop: '--tw-ring-offset-width',
|
|
139
|
+
value: '0rpx'
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
prop: '--tw-ring-offset-color',
|
|
143
|
+
value: '#fff'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
prop: '--tw-ring-color',
|
|
147
|
+
value: 'rgba(59, 130, 246, 0.5)'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
prop: '--tw-ring-offset-shadow',
|
|
151
|
+
value: '0 0 #0000'
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
prop: '--tw-ring-shadow',
|
|
155
|
+
value: '0 0 #0000'
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
prop: '--tw-shadow',
|
|
159
|
+
value: '0 0 #0000'
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
prop: '--tw-shadow-colored',
|
|
163
|
+
value: '0 0 #0000'
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
prop: '--tw-blur',
|
|
167
|
+
value: ' '
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
prop: '--tw-brightness',
|
|
171
|
+
value: ' '
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
prop: '--tw-contrast',
|
|
175
|
+
value: ' '
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
prop: '--tw-grayscale',
|
|
179
|
+
value: ' '
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
prop: '--tw-hue-rotate',
|
|
183
|
+
value: ' '
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
prop: '--tw-invert',
|
|
187
|
+
value: ' '
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
prop: '--tw-saturate',
|
|
191
|
+
value: ' '
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
prop: '--tw-sepia',
|
|
195
|
+
value: ' '
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
prop: '--tw-drop-shadow',
|
|
199
|
+
value: ' '
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
prop: '--tw-backdrop-blur',
|
|
203
|
+
value: ' '
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
prop: '--tw-backdrop-brightness',
|
|
207
|
+
value: ' '
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
prop: '--tw-backdrop-contrast',
|
|
211
|
+
value: ' '
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
prop: '--tw-backdrop-grayscale',
|
|
215
|
+
value: ' '
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
prop: '--tw-backdrop-hue-rotate',
|
|
219
|
+
value: ' '
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
prop: '--tw-backdrop-invert',
|
|
223
|
+
value: ' '
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
prop: '--tw-backdrop-opacity',
|
|
227
|
+
value: ' '
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
prop: '--tw-backdrop-saturate',
|
|
231
|
+
value: ' '
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
prop: '--tw-backdrop-sepia',
|
|
235
|
+
value: ' '
|
|
236
|
+
}
|
|
237
|
+
];
|
|
238
|
+
|
|
239
|
+
const initialNodes = cssVars.map((x) => {
|
|
240
|
+
return new postcss.Declaration({
|
|
241
|
+
prop: x.prop,
|
|
242
|
+
value: x.value
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
const PATTERNS = [/:not\(template\)\s*~\s*:not\(template\)/.source, /:not\(\[hidden\]\)\s*~\s*:not\(\[hidden\]\)/.source].join('|');
|
|
246
|
+
const BROAD_MATCH_GLOBAL_REGEXP = new RegExp(PATTERNS, 'g');
|
|
247
|
+
function testIfVariablesScope(node, count = 1) {
|
|
248
|
+
if (/:?:before/.test(node.selector) && /:?:after/.test(node.selector)) {
|
|
249
|
+
for (let i = 0; i < count; i++) {
|
|
250
|
+
const tryTestDecl = node.nodes[i];
|
|
251
|
+
if (tryTestDecl && tryTestDecl.type === 'decl' && tryTestDecl.prop.startsWith('--tw-')) {
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return true;
|
|
259
|
+
}
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
function testIfTwBackdrop(node, count = 1) {
|
|
263
|
+
if (node.type === 'rule' && node.selector === '::backdrop') {
|
|
264
|
+
for (let i = 0; i < count; i++) {
|
|
265
|
+
const tryTestDecl = node.nodes[i];
|
|
266
|
+
if (tryTestDecl && tryTestDecl.type === 'decl' && tryTestDecl.prop.startsWith('--tw-')) {
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return true;
|
|
274
|
+
}
|
|
275
|
+
return false;
|
|
276
|
+
}
|
|
277
|
+
function makePseudoVarRule() {
|
|
278
|
+
const pseudoVarRule = new postcss.Rule({
|
|
279
|
+
selector: '::before,::after'
|
|
280
|
+
});
|
|
281
|
+
pseudoVarRule.append(new postcss.Declaration({
|
|
282
|
+
prop: '--tw-content',
|
|
283
|
+
value: '""'
|
|
284
|
+
}));
|
|
285
|
+
return pseudoVarRule;
|
|
286
|
+
}
|
|
287
|
+
function remakeCssVarSelector(selectors, cssPreflightRange) {
|
|
288
|
+
const idx = selectors.indexOf('*');
|
|
289
|
+
if (idx > -1) {
|
|
290
|
+
selectors.splice(idx, 1);
|
|
291
|
+
}
|
|
292
|
+
if (!selectors.includes('view')) {
|
|
293
|
+
selectors.push('view');
|
|
294
|
+
}
|
|
295
|
+
if (cssPreflightRange === 'all' &&
|
|
296
|
+
!selectors.includes(':not(not)')) {
|
|
297
|
+
selectors.push(':not(not)');
|
|
298
|
+
}
|
|
299
|
+
return selectors;
|
|
300
|
+
}
|
|
301
|
+
function remakeCombinatorSelector(selector, cssChildCombinatorReplaceValue) {
|
|
302
|
+
let childCombinatorReplaceValue = 'view + view';
|
|
303
|
+
if (Array.isArray(cssChildCombinatorReplaceValue)) {
|
|
304
|
+
const part = cssChildCombinatorReplaceValue.join(',');
|
|
305
|
+
childCombinatorReplaceValue = [part, ' + ', part].join('');
|
|
306
|
+
}
|
|
307
|
+
else if (typeof cssChildCombinatorReplaceValue === 'string') {
|
|
308
|
+
childCombinatorReplaceValue = cssChildCombinatorReplaceValue;
|
|
309
|
+
}
|
|
310
|
+
return selector.replaceAll(BROAD_MATCH_GLOBAL_REGEXP, childCombinatorReplaceValue);
|
|
311
|
+
}
|
|
312
|
+
function commonChunkPreflight(node, options) {
|
|
313
|
+
node.selector = remakeCombinatorSelector(node.selector, options.cssChildCombinatorReplaceValue);
|
|
314
|
+
if (testIfVariablesScope(node)) {
|
|
315
|
+
node.selectors = remakeCssVarSelector(node.selectors, options.cssPreflightRange);
|
|
316
|
+
node.before(makePseudoVarRule());
|
|
317
|
+
if (typeof options.cssInjectPreflight === 'function') {
|
|
318
|
+
node.append(...options.cssInjectPreflight());
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if (options.injectAdditionalCssVarScope && testIfTwBackdrop(node)) {
|
|
322
|
+
const syntheticRule = new postcss.Rule({
|
|
323
|
+
selectors: ['::after', '::before'],
|
|
324
|
+
nodes: initialNodes
|
|
325
|
+
});
|
|
326
|
+
syntheticRule.selectors = remakeCssVarSelector(syntheticRule.selectors, options.cssPreflightRange);
|
|
327
|
+
node.before(syntheticRule);
|
|
328
|
+
node.before(makePseudoVarRule());
|
|
329
|
+
if (typeof options.cssInjectPreflight === 'function') {
|
|
330
|
+
syntheticRule.append(...options.cssInjectPreflight());
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
const postcssPlugin = 'postcss-weapp-tailwindcss-rename-plugin';
|
|
336
|
+
const pluginName = 'weapp-tailwindcss-webpack-plugin';
|
|
337
|
+
const vitePluginName = 'vite-plugin-uni-app-weapp-tailwindcss-adaptor';
|
|
338
|
+
|
|
339
|
+
const postcssWeappTailwindcss = (options = {
|
|
340
|
+
isMainChunk: true
|
|
341
|
+
}) => {
|
|
342
|
+
const { customRuleCallback, isMainChunk } = options;
|
|
343
|
+
const flag = typeof customRuleCallback === 'function';
|
|
344
|
+
return {
|
|
345
|
+
postcssPlugin,
|
|
346
|
+
Once(css) {
|
|
347
|
+
css.walkRules((rule) => {
|
|
348
|
+
transformSync(rule, options);
|
|
349
|
+
isMainChunk && commonChunkPreflight(rule, options);
|
|
350
|
+
flag && customRuleCallback(rule, options);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
postcssWeappTailwindcss.postcss = true;
|
|
356
|
+
|
|
357
|
+
exports.pluginName = pluginName;
|
|
358
|
+
exports.postcssWeappTailwindcss = postcssWeappTailwindcss;
|
|
359
|
+
exports.vitePluginName = vitePluginName;
|
package/dist/postcss.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var postcss = require('./postcss-
|
|
5
|
+
var postcss = require('./postcss-b53e9504.js');
|
|
6
6
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
7
7
|
require('postcss-selector-parser');
|
|
8
8
|
require('./shared-ae7dd073.js');
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { p as postcssWeappTailwindcss } from './postcss-
|
|
1
|
+
export { p as postcssWeappTailwindcss } from './postcss-760298ba.mjs';
|
|
2
2
|
export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
|
|
3
3
|
import 'postcss-selector-parser';
|
|
4
4
|
import './shared-7c88fb94.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export type RequiredStyleHandlerOptions = {
|
|
|
19
19
|
cssChildCombinatorReplaceValue?: string | string[];
|
|
20
20
|
replaceUniversalSelectorWith?: string | false;
|
|
21
21
|
escapeMap?: Record<string, string>;
|
|
22
|
+
injectAdditionalCssVarScope?: boolean;
|
|
22
23
|
};
|
|
23
24
|
export type CustomRuleCallback = (node: Rule, options: Readonly<RequiredStyleHandlerOptions>) => void;
|
|
24
25
|
export interface InternalCssSelectorReplacerOptions {
|
|
@@ -89,6 +90,7 @@ export interface UserDefinedOptions {
|
|
|
89
90
|
cssChildCombinatorReplaceValue?: string | string[];
|
|
90
91
|
wxsMatcher?: ((name: string) => boolean) | string | string[];
|
|
91
92
|
inlineWxs?: boolean;
|
|
93
|
+
injectAdditionalCssVarScope?: boolean;
|
|
92
94
|
}
|
|
93
95
|
export interface IMangleScopeContext {
|
|
94
96
|
rawOptions: UserDefinedOptions['mangle'];
|
package/dist/vite.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
6
|
-
var postcss = require('./postcss-
|
|
5
|
+
var options = require('./options-487394fa.js');
|
|
6
|
+
var postcss = require('./postcss-b53e9504.js');
|
|
7
7
|
require('micromatch');
|
|
8
8
|
require('@babel/types');
|
|
9
9
|
require('@babel/generator');
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-
|
|
2
|
-
import { v as vitePluginName } from './postcss-
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-f7b71f03.mjs';
|
|
2
|
+
import { v as vitePluginName } from './postcss-760298ba.mjs';
|
|
3
3
|
import 'micromatch';
|
|
4
4
|
import '@babel/types';
|
|
5
5
|
import '@babel/generator';
|
package/dist/webpack.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var path = require('node:path');
|
|
6
6
|
var fs = require('node:fs');
|
|
7
|
-
var options = require('./options-
|
|
8
|
-
var postcss = require('./postcss-
|
|
7
|
+
var options = require('./options-487394fa.js');
|
|
8
|
+
var postcss = require('./postcss-b53e9504.js');
|
|
9
9
|
require('micromatch');
|
|
10
10
|
require('@babel/types');
|
|
11
11
|
require('@babel/generator');
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
|
-
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-
|
|
4
|
-
import { a as pluginName } from './postcss-
|
|
3
|
+
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-f7b71f03.mjs';
|
|
4
|
+
import { a as pluginName } from './postcss-760298ba.mjs';
|
|
5
5
|
import 'micromatch';
|
|
6
6
|
import '@babel/types';
|
|
7
7
|
import '@babel/generator';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "把tailwindcss jit引擎,带给小程序开发者们\nbring tailwindcss jit engine to our miniprogram developers!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -96,54 +96,54 @@
|
|
|
96
96
|
},
|
|
97
97
|
"homepage": "https://weapp-tw.icebreaker.top",
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@babel/core": "^7.
|
|
99
|
+
"@babel/core": "^7.22.8",
|
|
100
100
|
"@icebreakers/cli": "^0.1.1",
|
|
101
101
|
"@icebreakers/readme": "0.1.0",
|
|
102
102
|
"@rollup/plugin-alias": "^5.0.0",
|
|
103
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
103
|
+
"@rollup/plugin-commonjs": "^25.0.2",
|
|
104
104
|
"@rollup/plugin-json": "^6.0.0",
|
|
105
105
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
106
106
|
"@rollup/plugin-terser": "^0.4.3",
|
|
107
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
107
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
108
108
|
"@tsconfig/recommended": "^1.0.2",
|
|
109
109
|
"@types/babel__generator": "^7.6.4",
|
|
110
|
-
"@types/babel__traverse": "^7.
|
|
110
|
+
"@types/babel__traverse": "^7.20.1",
|
|
111
111
|
"@types/fs-extra": "^11.0.1",
|
|
112
|
-
"@types/gulp": "^4.0.
|
|
112
|
+
"@types/gulp": "^4.0.13",
|
|
113
113
|
"@types/gulp-postcss": "^8.0.3",
|
|
114
114
|
"@types/jest": "^29.5.2",
|
|
115
115
|
"@types/klaw": "^3.0.3",
|
|
116
116
|
"@types/loader-utils": "^2.0.3",
|
|
117
117
|
"@types/lodash": "^4.14.195",
|
|
118
118
|
"@types/micromatch": "^4.0.2",
|
|
119
|
-
"@types/node": "^20.
|
|
119
|
+
"@types/node": "^20.4.1",
|
|
120
120
|
"@types/semver": "^7.5.0",
|
|
121
121
|
"@types/vinyl": "^2.0.7",
|
|
122
122
|
"@types/webpack": "^5.28.1",
|
|
123
123
|
"@types/webpack-sources": "^3.2.0",
|
|
124
|
-
"@vitest/coverage-v8": "^0.
|
|
124
|
+
"@vitest/coverage-v8": "^0.33.0",
|
|
125
125
|
"autoprefixer": "^10.4.14",
|
|
126
|
-
"babel-loader": "^9.1.
|
|
126
|
+
"babel-loader": "^9.1.3",
|
|
127
127
|
"bumpp": "^9.1.1",
|
|
128
128
|
"chalk": "4.1.2",
|
|
129
129
|
"cross-env": "^7.0.3",
|
|
130
130
|
"css-loader": "^6.8.1",
|
|
131
131
|
"defu": "6.1.2",
|
|
132
132
|
"del": "^6.1.1",
|
|
133
|
-
"eslint": "8.
|
|
133
|
+
"eslint": "8.44.0",
|
|
134
134
|
"eslint-config-icebreaker": "^1.1.0",
|
|
135
135
|
"eslint-config-prettier": "^8.8.0",
|
|
136
136
|
"eslint-plugin-prettier": "^4.2.1",
|
|
137
137
|
"execa": "5",
|
|
138
|
-
"fast-glob": "^3.
|
|
138
|
+
"fast-glob": "^3.3.0",
|
|
139
139
|
"fs-extra": "^11.1.1",
|
|
140
140
|
"gulp": "^4.0.2",
|
|
141
141
|
"gulp-postcss": "^9.0.1",
|
|
142
142
|
"html-loader": "^4.2.0",
|
|
143
|
-
"jest": "^29.
|
|
143
|
+
"jest": "^29.6.1",
|
|
144
144
|
"klaw": "^4.1.0",
|
|
145
145
|
"lodash": "^4.17.21",
|
|
146
|
-
"magic-string": "^0.30.
|
|
146
|
+
"magic-string": "^0.30.1",
|
|
147
147
|
"mini-css-extract-plugin": "^2.7.6",
|
|
148
148
|
"miniprogram-automator": "^0.12.0",
|
|
149
149
|
"pkg-types": "^1.0.3",
|
|
@@ -152,40 +152,40 @@
|
|
|
152
152
|
"postcss-rem-to-responsive-pixel": "^5.1.3",
|
|
153
153
|
"prettier": "^2.8.8",
|
|
154
154
|
"promisify-loader-runner": "^1.0.0",
|
|
155
|
-
"rollup": "^3.
|
|
155
|
+
"rollup": "^3.26.2",
|
|
156
156
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
157
157
|
"style-loader": "^3.3.3",
|
|
158
158
|
"tailwind-children": "^0.5.0",
|
|
159
159
|
"tailwindcss": "^3.3.2",
|
|
160
|
-
"ts-jest": "^29.1.
|
|
160
|
+
"ts-jest": "^29.1.1",
|
|
161
161
|
"ts-node": "^10.9.1",
|
|
162
|
-
"ts-patch": "^3.0.
|
|
162
|
+
"ts-patch": "^3.0.1",
|
|
163
163
|
"tsd": "^0.28.1",
|
|
164
|
-
"tslib": "^2.
|
|
165
|
-
"typescript": "^5.1.
|
|
164
|
+
"tslib": "^2.6.0",
|
|
165
|
+
"typescript": "^5.1.6",
|
|
166
166
|
"typescript-transform-paths": "^3.4.6",
|
|
167
167
|
"vinyl": "^3.0.0",
|
|
168
|
-
"vite": "^4.
|
|
169
|
-
"vitest": "^0.
|
|
168
|
+
"vite": "^4.4.2",
|
|
169
|
+
"vitest": "^0.33.0",
|
|
170
170
|
"weapp-tailwindcss-children": "^0.1.0",
|
|
171
|
-
"webpack": "^5.
|
|
171
|
+
"webpack": "^5.88.1",
|
|
172
172
|
"webpack-build-utils": "^0.0.4"
|
|
173
173
|
},
|
|
174
174
|
"dependencies": {
|
|
175
|
-
"@babel/generator": "^7.
|
|
176
|
-
"@babel/parser": "^7.
|
|
177
|
-
"@babel/traverse": "^7.
|
|
178
|
-
"@babel/types": "^7.
|
|
179
|
-
"@csstools/postcss-is-pseudo-class": "^
|
|
175
|
+
"@babel/generator": "^7.22.7",
|
|
176
|
+
"@babel/parser": "^7.22.7",
|
|
177
|
+
"@babel/traverse": "^7.22.8",
|
|
178
|
+
"@babel/types": "^7.22.5",
|
|
179
|
+
"@csstools/postcss-is-pseudo-class": "^4.0.0",
|
|
180
180
|
"loader-utils": "^2.0.3",
|
|
181
181
|
"micromatch": "^4.0.5",
|
|
182
|
-
"postcss": "8.4.
|
|
182
|
+
"postcss": "8.4.25",
|
|
183
183
|
"postcss-selector-parser": "^6.0.13",
|
|
184
|
-
"semver": "^7.5.
|
|
184
|
+
"semver": "^7.5.4",
|
|
185
185
|
"tailwindcss-mangle-shared": "^1.2.6",
|
|
186
186
|
"tailwindcss-patch": "^1.2.6"
|
|
187
187
|
},
|
|
188
|
-
"packageManager": "pnpm@8.6.
|
|
188
|
+
"packageManager": "pnpm@8.6.3",
|
|
189
189
|
"scripts": {
|
|
190
190
|
"dev": "yarn clean && yarn dts && cross-env NODE_ENV=development rollup -c rollup.config.ts --configPlugin typescript -w",
|
|
191
191
|
"build": "yarn clean && cross-env NODE_ENV=production rollup -c rollup.config.ts --configPlugin typescript && yarn dts",
|
|
@@ -205,6 +205,7 @@
|
|
|
205
205
|
"clean": "node scripts/clean.js",
|
|
206
206
|
"debug:web": "cd demo/web && yarn dev",
|
|
207
207
|
"raw": "ts-node scripts/raw",
|
|
208
|
+
"get-decl": "ts-node scripts/get-decl.ts",
|
|
208
209
|
"demo:dev": "node scripts/demo/dev.js",
|
|
209
210
|
"demo:build": "node scripts/demo/build.js",
|
|
210
211
|
"demo:build:local": "node scripts/demo/build.js --local",
|