weapp-tailwindcss 3.6.0 → 3.6.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/cli.js +3 -3
- package/dist/cli.mjs +3 -3
- package/dist/core.js +2 -2
- package/dist/core.mjs +2 -2
- package/dist/gulp.js +3 -3
- package/dist/gulp.mjs +3 -3
- package/dist/{index-O6zFVUnP.mjs → index-BKg5XkrT.mjs} +2 -2
- package/dist/{index-mmbDSA4j.mjs → index-BkGbeUsJ.mjs} +108 -109
- package/dist/{index-ejL1iIOn.mjs → index-C02WsbSC.mjs} +1 -1
- package/dist/{index-CW_nvc9M.js → index-CQ2lY08t.js} +2 -2
- package/dist/{index-BUtdpYVL.js → index-NUwXJMr-.js} +1 -1
- package/dist/{index-Cuz6je-V.js → index-OxGGIRJ6.js} +108 -109
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/dist/{options-BH4m6exr.mjs → options-BJrhrWVC.mjs} +1 -1
- package/dist/{options-BI6mlQ4i.js → options-BKnJT3al.js} +1 -1
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/{v5-CafWSEHV.mjs → v5-CyTrcW-A.mjs} +2 -2
- package/dist/{v5-DknUknkv.js → v5-Dn7xHCrQ.js} +2 -2
- package/dist/vite.js +3 -3
- package/dist/vite.mjs +3 -3
- package/dist/webpack.js +3 -3
- package/dist/webpack.mjs +3 -3
- package/dist/webpack4.js +2 -2
- package/dist/webpack4.mjs +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var process$1 = require('node:process');
|
|
4
4
|
var semver = require('semver');
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
var options = require('./options-
|
|
5
|
+
var index = require('./index-OxGGIRJ6.js');
|
|
6
|
+
var options = require('./options-BKnJT3al.js');
|
|
7
7
|
var require$$0$2 = require('fs');
|
|
8
8
|
var require$$0 = require('constants');
|
|
9
9
|
var require$$0$1 = require('stream');
|
|
@@ -13,11 +13,11 @@ var require$$1 = require('path');
|
|
|
13
13
|
var defu = require('./defu-Cdz2PomB.js');
|
|
14
14
|
require('@csstools/postcss-is-pseudo-class');
|
|
15
15
|
require('postcss-rem-to-responsive-pixel');
|
|
16
|
-
require('postcss');
|
|
17
16
|
require('postcss-selector-parser');
|
|
18
17
|
require('./shared-r_GpWheO.js');
|
|
19
18
|
require('@ast-core/escape');
|
|
20
19
|
require('@weapp-core/escape');
|
|
20
|
+
require('postcss');
|
|
21
21
|
require('lru-cache');
|
|
22
22
|
require('md5');
|
|
23
23
|
require('./defaults-CdqzSWsR.js');
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process$1 from 'node:process';
|
|
2
2
|
import semver from 'semver';
|
|
3
|
-
import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-
|
|
4
|
-
import { _ as __awaiter, l as logger, g as getOptions } from './options-
|
|
3
|
+
import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-BkGbeUsJ.mjs';
|
|
4
|
+
import { _ as __awaiter, l as logger, g as getOptions } from './options-BJrhrWVC.mjs';
|
|
5
5
|
import require$$0$2 from 'fs';
|
|
6
6
|
import require$$0 from 'constants';
|
|
7
7
|
import require$$0$1 from 'stream';
|
|
@@ -11,11 +11,11 @@ import require$$1 from 'path';
|
|
|
11
11
|
import { d as defu } from './defu-n46TJT6t.mjs';
|
|
12
12
|
import '@csstools/postcss-is-pseudo-class';
|
|
13
13
|
import 'postcss-rem-to-responsive-pixel';
|
|
14
|
-
import 'postcss';
|
|
15
14
|
import 'postcss-selector-parser';
|
|
16
15
|
import './shared-COWjpokr.mjs';
|
|
17
16
|
import '@ast-core/escape';
|
|
18
17
|
import '@weapp-core/escape';
|
|
18
|
+
import 'postcss';
|
|
19
19
|
import 'lru-cache';
|
|
20
20
|
import 'md5';
|
|
21
21
|
import './defaults-5A8JI2hW.mjs';
|
package/dist/core.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-BKnJT3al.js');
|
|
6
6
|
require('lru-cache');
|
|
7
7
|
require('md5');
|
|
8
8
|
require('./defaults-CdqzSWsR.js');
|
|
@@ -19,7 +19,7 @@ require('./replace.js');
|
|
|
19
19
|
require('./shared-r_GpWheO.js');
|
|
20
20
|
require('@tailwindcss-mangle/shared');
|
|
21
21
|
require('postcss');
|
|
22
|
-
require('./index-
|
|
22
|
+
require('./index-OxGGIRJ6.js');
|
|
23
23
|
require('@csstools/postcss-is-pseudo-class');
|
|
24
24
|
require('postcss-rem-to-responsive-pixel');
|
|
25
25
|
require('postcss-selector-parser');
|
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions } from './options-
|
|
1
|
+
import { g as getOptions } from './options-BJrhrWVC.mjs';
|
|
2
2
|
import 'lru-cache';
|
|
3
3
|
import 'md5';
|
|
4
4
|
import './defaults-5A8JI2hW.mjs';
|
|
@@ -15,7 +15,7 @@ import './replace.mjs';
|
|
|
15
15
|
import './shared-COWjpokr.mjs';
|
|
16
16
|
import '@tailwindcss-mangle/shared';
|
|
17
17
|
import 'postcss';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-BkGbeUsJ.mjs';
|
|
19
19
|
import '@csstools/postcss-is-pseudo-class';
|
|
20
20
|
import 'postcss-rem-to-responsive-pixel';
|
|
21
21
|
import 'postcss-selector-parser';
|
package/dist/gulp.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-NUwXJMr-.js');
|
|
6
|
+
require('./options-BKnJT3al.js');
|
|
7
7
|
require('lru-cache');
|
|
8
8
|
require('md5');
|
|
9
9
|
require('./defaults-CdqzSWsR.js');
|
|
@@ -20,7 +20,7 @@ require('./replace.js');
|
|
|
20
20
|
require('./shared-r_GpWheO.js');
|
|
21
21
|
require('@tailwindcss-mangle/shared');
|
|
22
22
|
require('postcss');
|
|
23
|
-
require('./index-
|
|
23
|
+
require('./index-OxGGIRJ6.js');
|
|
24
24
|
require('@csstools/postcss-is-pseudo-class');
|
|
25
25
|
require('postcss-rem-to-responsive-pixel');
|
|
26
26
|
require('postcss-selector-parser');
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as createPlugins } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { c as createPlugins } from './index-C02WsbSC.mjs';
|
|
2
|
+
import './options-BJrhrWVC.mjs';
|
|
3
3
|
import 'lru-cache';
|
|
4
4
|
import 'md5';
|
|
5
5
|
import './defaults-5A8JI2hW.mjs';
|
|
@@ -16,7 +16,7 @@ import './replace.mjs';
|
|
|
16
16
|
import './shared-COWjpokr.mjs';
|
|
17
17
|
import '@tailwindcss-mangle/shared';
|
|
18
18
|
import 'postcss';
|
|
19
|
-
import './index-
|
|
19
|
+
import './index-BkGbeUsJ.mjs';
|
|
20
20
|
import '@csstools/postcss-is-pseudo-class';
|
|
21
21
|
import 'postcss-rem-to-responsive-pixel';
|
|
22
22
|
import 'postcss-selector-parser';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
2
|
-
import { v as vitePluginName } from './index-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
|
|
2
|
+
import { v as vitePluginName } from './index-BkGbeUsJ.mjs';
|
|
3
3
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
4
4
|
import { g as getGroupedEntries } from './defaults-5A8JI2hW.mjs';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import postcssIsPseudoClass from '@csstools/postcss-is-pseudo-class';
|
|
2
2
|
import postcssRem2rpx from 'postcss-rem-to-responsive-pixel';
|
|
3
|
-
import { Declaration, Rule } from 'postcss';
|
|
4
3
|
import selectorParser from 'postcss-selector-parser';
|
|
5
4
|
import { c as composeIsPseudo, i as internalCssSelectorReplacer } from './shared-COWjpokr.mjs';
|
|
5
|
+
import { Declaration, Rule } from 'postcss';
|
|
6
6
|
|
|
7
7
|
const VariablesScopeSymbol = Symbol('VariablesScope');
|
|
8
8
|
|
|
@@ -26,6 +26,113 @@ const pluginName = 'weapp-tailwindcss-webpack-plugin';
|
|
|
26
26
|
const vitePluginName = 'vite-plugin-uni-app-weapp-tailwindcss-adaptor';
|
|
27
27
|
const WEAPP_TW_REQUIRED_NODE_VERSION = '18.17.0';
|
|
28
28
|
|
|
29
|
+
function createRuleTransform(rule, options) {
|
|
30
|
+
const { escapeMap, mangleContext, cssSelectorReplacement, cssRemoveHoverPseudoClass } = options;
|
|
31
|
+
const transform = (selectors) => {
|
|
32
|
+
selectors.walk((selector) => {
|
|
33
|
+
if (selector.type === 'universal' && cssSelectorReplacement && cssSelectorReplacement.universal) {
|
|
34
|
+
selector.value = composeIsPseudo(cssSelectorReplacement.universal);
|
|
35
|
+
}
|
|
36
|
+
if (cssRemoveHoverPseudoClass && selector.type === 'selector') {
|
|
37
|
+
const node = selector.nodes.find(x => x.type === 'pseudo' && x.value === ':hover');
|
|
38
|
+
if (node) {
|
|
39
|
+
selector.remove();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (selector.type === 'pseudo'
|
|
43
|
+
&& selector.value === ':root'
|
|
44
|
+
&& cssSelectorReplacement
|
|
45
|
+
&& cssSelectorReplacement.root) {
|
|
46
|
+
selector.value = composeIsPseudo(cssSelectorReplacement.root);
|
|
47
|
+
}
|
|
48
|
+
if (selector.type === 'class') {
|
|
49
|
+
selector.value = internalCssSelectorReplacer(selector.value, {
|
|
50
|
+
escapeMap,
|
|
51
|
+
mangleContext,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (selectors.length === 0) {
|
|
56
|
+
rule.remove();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return transform;
|
|
60
|
+
}
|
|
61
|
+
function getRuleTransformer(rule, options) {
|
|
62
|
+
return selectorParser(createRuleTransform(rule, options));
|
|
63
|
+
}
|
|
64
|
+
function ruleTransformSync(rule, options) {
|
|
65
|
+
const transformer = getRuleTransformer(rule, options);
|
|
66
|
+
return transformer.transformSync(rule, {
|
|
67
|
+
lossless: false,
|
|
68
|
+
updateSelector: true,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function isOnlyBeforeAndAfterPseudoElement(node) {
|
|
72
|
+
let b = false;
|
|
73
|
+
let a = false;
|
|
74
|
+
selectorParser((selectors) => {
|
|
75
|
+
selectors.walkPseudos((s) => {
|
|
76
|
+
var _a;
|
|
77
|
+
if (((_a = s.parent) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
78
|
+
if (/^:?:before$/.test(s.value)) {
|
|
79
|
+
b = true;
|
|
80
|
+
}
|
|
81
|
+
if (/^:?:after$/.test(s.value)) {
|
|
82
|
+
a = true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}).astSync(node);
|
|
87
|
+
return b && a;
|
|
88
|
+
}
|
|
89
|
+
const fallbackRemove = selectorParser((selectors) => {
|
|
90
|
+
let maybeImportantId = false;
|
|
91
|
+
selectors.walk((selector, idx) => {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
if (idx === 0 && selector.type === 'id') {
|
|
94
|
+
maybeImportantId = true;
|
|
95
|
+
}
|
|
96
|
+
if (selector.type === 'universal') {
|
|
97
|
+
(_a = selector.parent) === null || _a === void 0 ? void 0 : _a.remove();
|
|
98
|
+
}
|
|
99
|
+
if (selector.type === 'pseudo' && selector.value === ':is') {
|
|
100
|
+
if (maybeImportantId && ((_b = selector.nodes[0]) === null || _b === void 0 ? void 0 : _b.type) === 'selector') {
|
|
101
|
+
selector.replaceWith(selector.nodes[0]);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
(_c = selector.parent) === null || _c === void 0 ? void 0 : _c.remove();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const postcssWeappTailwindcssPostPlugin = (options = {
|
|
111
|
+
isMainChunk: true,
|
|
112
|
+
}) => {
|
|
113
|
+
const { customRuleCallback, isMainChunk } = options;
|
|
114
|
+
const p = {
|
|
115
|
+
postcssPlugin,
|
|
116
|
+
};
|
|
117
|
+
if (isMainChunk) {
|
|
118
|
+
p.OnceExit = (root) => {
|
|
119
|
+
root.walkRules((rule) => {
|
|
120
|
+
fallbackRemove.transformSync(rule, {
|
|
121
|
+
updateSelector: true,
|
|
122
|
+
lossless: false,
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
if (typeof customRuleCallback === 'function') {
|
|
128
|
+
p.Rule = (rule) => {
|
|
129
|
+
customRuleCallback(rule, options);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
return p;
|
|
133
|
+
};
|
|
134
|
+
postcssWeappTailwindcssPostPlugin.postcss = true;
|
|
135
|
+
|
|
29
136
|
var cssVars = [
|
|
30
137
|
{
|
|
31
138
|
prop: '--tw-border-spacing-x',
|
|
@@ -233,78 +340,6 @@ var cssVars = [
|
|
|
233
340
|
},
|
|
234
341
|
];
|
|
235
342
|
|
|
236
|
-
function createRuleTransform(rule, options) {
|
|
237
|
-
const { escapeMap, mangleContext, cssSelectorReplacement, cssRemoveHoverPseudoClass } = options;
|
|
238
|
-
const transform = (selectors) => {
|
|
239
|
-
selectors.walk((selector) => {
|
|
240
|
-
if (selector.type === 'universal' && cssSelectorReplacement && cssSelectorReplacement.universal) {
|
|
241
|
-
selector.value = composeIsPseudo(cssSelectorReplacement.universal);
|
|
242
|
-
}
|
|
243
|
-
if (cssRemoveHoverPseudoClass && selector.type === 'selector') {
|
|
244
|
-
const node = selector.nodes.find(x => x.type === 'pseudo' && x.value === ':hover');
|
|
245
|
-
if (node) {
|
|
246
|
-
selector.remove();
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
if (selector.type === 'pseudo'
|
|
250
|
-
&& selector.value === ':root'
|
|
251
|
-
&& cssSelectorReplacement
|
|
252
|
-
&& cssSelectorReplacement.root) {
|
|
253
|
-
selector.value = composeIsPseudo(cssSelectorReplacement.root);
|
|
254
|
-
}
|
|
255
|
-
if (selector.type === 'class') {
|
|
256
|
-
selector.value = internalCssSelectorReplacer(selector.value, {
|
|
257
|
-
escapeMap,
|
|
258
|
-
mangleContext,
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
if (selectors.length === 0) {
|
|
263
|
-
rule.remove();
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
return transform;
|
|
267
|
-
}
|
|
268
|
-
function getRuleTransformer(rule, options) {
|
|
269
|
-
return selectorParser(createRuleTransform(rule, options));
|
|
270
|
-
}
|
|
271
|
-
function ruleTransformSync(rule, options) {
|
|
272
|
-
const transformer = getRuleTransformer(rule, options);
|
|
273
|
-
return transformer.transformSync(rule, {
|
|
274
|
-
lossless: false,
|
|
275
|
-
updateSelector: true,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
function isOnlyBeforeAndAfterPseudoElement(node) {
|
|
279
|
-
let b = false;
|
|
280
|
-
let a = false;
|
|
281
|
-
selectorParser((selectors) => {
|
|
282
|
-
selectors.walkPseudos((s) => {
|
|
283
|
-
var _a;
|
|
284
|
-
if (((_a = s.parent) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
285
|
-
if (/^:?:before$/.test(s.value)) {
|
|
286
|
-
b = true;
|
|
287
|
-
}
|
|
288
|
-
if (/^:?:after$/.test(s.value)) {
|
|
289
|
-
a = true;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
}).astSync(node);
|
|
294
|
-
return b && a;
|
|
295
|
-
}
|
|
296
|
-
const fallbackRemove = selectorParser((selectors) => {
|
|
297
|
-
selectors.walk((selector) => {
|
|
298
|
-
var _a, _b;
|
|
299
|
-
if (selector.type === 'universal') {
|
|
300
|
-
(_a = selector.parent) === null || _a === void 0 ? void 0 : _a.remove();
|
|
301
|
-
}
|
|
302
|
-
if (selector.type === 'pseudo' && selector.value === ':is') {
|
|
303
|
-
(_b = selector.parent) === null || _b === void 0 ? void 0 : _b.remove();
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
|
|
308
343
|
const initialNodes = cssVars.map((x) => {
|
|
309
344
|
return new Declaration({
|
|
310
345
|
prop: x.prop,
|
|
@@ -417,42 +452,6 @@ function commonChunkPreflight(node, options) {
|
|
|
417
452
|
}
|
|
418
453
|
}
|
|
419
454
|
|
|
420
|
-
const postcssWeappTailwindcssPostPlugin = (options = {
|
|
421
|
-
isMainChunk: true,
|
|
422
|
-
}) => {
|
|
423
|
-
const { customRuleCallback, isMainChunk, ctx } = options;
|
|
424
|
-
const p = {
|
|
425
|
-
postcssPlugin,
|
|
426
|
-
};
|
|
427
|
-
if (isMainChunk) {
|
|
428
|
-
p.OnceExit = (root) => {
|
|
429
|
-
root.walkRules((rule) => {
|
|
430
|
-
if (ctx) {
|
|
431
|
-
if (ctx.isVariablesScope(rule)) {
|
|
432
|
-
fallbackRemove.transformSync(rule, {
|
|
433
|
-
updateSelector: true,
|
|
434
|
-
lossless: false,
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
else if (testIfVariablesScope(rule)) {
|
|
439
|
-
fallbackRemove.transformSync(rule, {
|
|
440
|
-
updateSelector: true,
|
|
441
|
-
lossless: false,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
if (typeof customRuleCallback === 'function') {
|
|
448
|
-
p.Rule = (rule) => {
|
|
449
|
-
customRuleCallback(rule, options);
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
return p;
|
|
453
|
-
};
|
|
454
|
-
postcssWeappTailwindcssPostPlugin.postcss = true;
|
|
455
|
-
|
|
456
455
|
function isAtMediaHover(atRule) {
|
|
457
456
|
return (/media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name)
|
|
458
457
|
|| (atRule.name === 'media' && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
|
|
2
2
|
import { Buffer } from 'node:buffer';
|
|
3
3
|
import stream from 'node:stream';
|
|
4
4
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
4
|
-
var index = require('./index-
|
|
3
|
+
var options = require('./options-BKnJT3al.js');
|
|
4
|
+
var index = require('./index-OxGGIRJ6.js');
|
|
5
5
|
var index$1 = require('./index-HC-Qkn0i.js');
|
|
6
6
|
var defaults = require('./defaults-CdqzSWsR.js');
|
|
7
7
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
4
4
|
var postcssRem2rpx = require('postcss-rem-to-responsive-pixel');
|
|
5
|
-
var postcss = require('postcss');
|
|
6
5
|
var selectorParser = require('postcss-selector-parser');
|
|
7
6
|
var shared = require('./shared-r_GpWheO.js');
|
|
7
|
+
var postcss = require('postcss');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
10
|
|
|
@@ -34,6 +34,113 @@ const pluginName = 'weapp-tailwindcss-webpack-plugin';
|
|
|
34
34
|
const vitePluginName = 'vite-plugin-uni-app-weapp-tailwindcss-adaptor';
|
|
35
35
|
const WEAPP_TW_REQUIRED_NODE_VERSION = '18.17.0';
|
|
36
36
|
|
|
37
|
+
function createRuleTransform(rule, options) {
|
|
38
|
+
const { escapeMap, mangleContext, cssSelectorReplacement, cssRemoveHoverPseudoClass } = options;
|
|
39
|
+
const transform = (selectors) => {
|
|
40
|
+
selectors.walk((selector) => {
|
|
41
|
+
if (selector.type === 'universal' && cssSelectorReplacement && cssSelectorReplacement.universal) {
|
|
42
|
+
selector.value = shared.composeIsPseudo(cssSelectorReplacement.universal);
|
|
43
|
+
}
|
|
44
|
+
if (cssRemoveHoverPseudoClass && selector.type === 'selector') {
|
|
45
|
+
const node = selector.nodes.find(x => x.type === 'pseudo' && x.value === ':hover');
|
|
46
|
+
if (node) {
|
|
47
|
+
selector.remove();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (selector.type === 'pseudo'
|
|
51
|
+
&& selector.value === ':root'
|
|
52
|
+
&& cssSelectorReplacement
|
|
53
|
+
&& cssSelectorReplacement.root) {
|
|
54
|
+
selector.value = shared.composeIsPseudo(cssSelectorReplacement.root);
|
|
55
|
+
}
|
|
56
|
+
if (selector.type === 'class') {
|
|
57
|
+
selector.value = shared.internalCssSelectorReplacer(selector.value, {
|
|
58
|
+
escapeMap,
|
|
59
|
+
mangleContext,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
if (selectors.length === 0) {
|
|
64
|
+
rule.remove();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return transform;
|
|
68
|
+
}
|
|
69
|
+
function getRuleTransformer(rule, options) {
|
|
70
|
+
return selectorParser__default["default"](createRuleTransform(rule, options));
|
|
71
|
+
}
|
|
72
|
+
function ruleTransformSync(rule, options) {
|
|
73
|
+
const transformer = getRuleTransformer(rule, options);
|
|
74
|
+
return transformer.transformSync(rule, {
|
|
75
|
+
lossless: false,
|
|
76
|
+
updateSelector: true,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function isOnlyBeforeAndAfterPseudoElement(node) {
|
|
80
|
+
let b = false;
|
|
81
|
+
let a = false;
|
|
82
|
+
selectorParser__default["default"]((selectors) => {
|
|
83
|
+
selectors.walkPseudos((s) => {
|
|
84
|
+
var _a;
|
|
85
|
+
if (((_a = s.parent) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
86
|
+
if (/^:?:before$/.test(s.value)) {
|
|
87
|
+
b = true;
|
|
88
|
+
}
|
|
89
|
+
if (/^:?:after$/.test(s.value)) {
|
|
90
|
+
a = true;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}).astSync(node);
|
|
95
|
+
return b && a;
|
|
96
|
+
}
|
|
97
|
+
const fallbackRemove = selectorParser__default["default"]((selectors) => {
|
|
98
|
+
let maybeImportantId = false;
|
|
99
|
+
selectors.walk((selector, idx) => {
|
|
100
|
+
var _a, _b, _c;
|
|
101
|
+
if (idx === 0 && selector.type === 'id') {
|
|
102
|
+
maybeImportantId = true;
|
|
103
|
+
}
|
|
104
|
+
if (selector.type === 'universal') {
|
|
105
|
+
(_a = selector.parent) === null || _a === void 0 ? void 0 : _a.remove();
|
|
106
|
+
}
|
|
107
|
+
if (selector.type === 'pseudo' && selector.value === ':is') {
|
|
108
|
+
if (maybeImportantId && ((_b = selector.nodes[0]) === null || _b === void 0 ? void 0 : _b.type) === 'selector') {
|
|
109
|
+
selector.replaceWith(selector.nodes[0]);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
(_c = selector.parent) === null || _c === void 0 ? void 0 : _c.remove();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
const postcssWeappTailwindcssPostPlugin = (options = {
|
|
119
|
+
isMainChunk: true,
|
|
120
|
+
}) => {
|
|
121
|
+
const { customRuleCallback, isMainChunk } = options;
|
|
122
|
+
const p = {
|
|
123
|
+
postcssPlugin,
|
|
124
|
+
};
|
|
125
|
+
if (isMainChunk) {
|
|
126
|
+
p.OnceExit = (root) => {
|
|
127
|
+
root.walkRules((rule) => {
|
|
128
|
+
fallbackRemove.transformSync(rule, {
|
|
129
|
+
updateSelector: true,
|
|
130
|
+
lossless: false,
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
if (typeof customRuleCallback === 'function') {
|
|
136
|
+
p.Rule = (rule) => {
|
|
137
|
+
customRuleCallback(rule, options);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
return p;
|
|
141
|
+
};
|
|
142
|
+
postcssWeappTailwindcssPostPlugin.postcss = true;
|
|
143
|
+
|
|
37
144
|
var cssVars = [
|
|
38
145
|
{
|
|
39
146
|
prop: '--tw-border-spacing-x',
|
|
@@ -241,78 +348,6 @@ var cssVars = [
|
|
|
241
348
|
},
|
|
242
349
|
];
|
|
243
350
|
|
|
244
|
-
function createRuleTransform(rule, options) {
|
|
245
|
-
const { escapeMap, mangleContext, cssSelectorReplacement, cssRemoveHoverPseudoClass } = options;
|
|
246
|
-
const transform = (selectors) => {
|
|
247
|
-
selectors.walk((selector) => {
|
|
248
|
-
if (selector.type === 'universal' && cssSelectorReplacement && cssSelectorReplacement.universal) {
|
|
249
|
-
selector.value = shared.composeIsPseudo(cssSelectorReplacement.universal);
|
|
250
|
-
}
|
|
251
|
-
if (cssRemoveHoverPseudoClass && selector.type === 'selector') {
|
|
252
|
-
const node = selector.nodes.find(x => x.type === 'pseudo' && x.value === ':hover');
|
|
253
|
-
if (node) {
|
|
254
|
-
selector.remove();
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
if (selector.type === 'pseudo'
|
|
258
|
-
&& selector.value === ':root'
|
|
259
|
-
&& cssSelectorReplacement
|
|
260
|
-
&& cssSelectorReplacement.root) {
|
|
261
|
-
selector.value = shared.composeIsPseudo(cssSelectorReplacement.root);
|
|
262
|
-
}
|
|
263
|
-
if (selector.type === 'class') {
|
|
264
|
-
selector.value = shared.internalCssSelectorReplacer(selector.value, {
|
|
265
|
-
escapeMap,
|
|
266
|
-
mangleContext,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
if (selectors.length === 0) {
|
|
271
|
-
rule.remove();
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
return transform;
|
|
275
|
-
}
|
|
276
|
-
function getRuleTransformer(rule, options) {
|
|
277
|
-
return selectorParser__default["default"](createRuleTransform(rule, options));
|
|
278
|
-
}
|
|
279
|
-
function ruleTransformSync(rule, options) {
|
|
280
|
-
const transformer = getRuleTransformer(rule, options);
|
|
281
|
-
return transformer.transformSync(rule, {
|
|
282
|
-
lossless: false,
|
|
283
|
-
updateSelector: true,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
function isOnlyBeforeAndAfterPseudoElement(node) {
|
|
287
|
-
let b = false;
|
|
288
|
-
let a = false;
|
|
289
|
-
selectorParser__default["default"]((selectors) => {
|
|
290
|
-
selectors.walkPseudos((s) => {
|
|
291
|
-
var _a;
|
|
292
|
-
if (((_a = s.parent) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
293
|
-
if (/^:?:before$/.test(s.value)) {
|
|
294
|
-
b = true;
|
|
295
|
-
}
|
|
296
|
-
if (/^:?:after$/.test(s.value)) {
|
|
297
|
-
a = true;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
}).astSync(node);
|
|
302
|
-
return b && a;
|
|
303
|
-
}
|
|
304
|
-
const fallbackRemove = selectorParser__default["default"]((selectors) => {
|
|
305
|
-
selectors.walk((selector) => {
|
|
306
|
-
var _a, _b;
|
|
307
|
-
if (selector.type === 'universal') {
|
|
308
|
-
(_a = selector.parent) === null || _a === void 0 ? void 0 : _a.remove();
|
|
309
|
-
}
|
|
310
|
-
if (selector.type === 'pseudo' && selector.value === ':is') {
|
|
311
|
-
(_b = selector.parent) === null || _b === void 0 ? void 0 : _b.remove();
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
|
|
316
351
|
const initialNodes = cssVars.map((x) => {
|
|
317
352
|
return new postcss.Declaration({
|
|
318
353
|
prop: x.prop,
|
|
@@ -425,42 +460,6 @@ function commonChunkPreflight(node, options) {
|
|
|
425
460
|
}
|
|
426
461
|
}
|
|
427
462
|
|
|
428
|
-
const postcssWeappTailwindcssPostPlugin = (options = {
|
|
429
|
-
isMainChunk: true,
|
|
430
|
-
}) => {
|
|
431
|
-
const { customRuleCallback, isMainChunk, ctx } = options;
|
|
432
|
-
const p = {
|
|
433
|
-
postcssPlugin,
|
|
434
|
-
};
|
|
435
|
-
if (isMainChunk) {
|
|
436
|
-
p.OnceExit = (root) => {
|
|
437
|
-
root.walkRules((rule) => {
|
|
438
|
-
if (ctx) {
|
|
439
|
-
if (ctx.isVariablesScope(rule)) {
|
|
440
|
-
fallbackRemove.transformSync(rule, {
|
|
441
|
-
updateSelector: true,
|
|
442
|
-
lossless: false,
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
else if (testIfVariablesScope(rule)) {
|
|
447
|
-
fallbackRemove.transformSync(rule, {
|
|
448
|
-
updateSelector: true,
|
|
449
|
-
lossless: false,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
if (typeof customRuleCallback === 'function') {
|
|
456
|
-
p.Rule = (rule) => {
|
|
457
|
-
customRuleCallback(rule, options);
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
return p;
|
|
461
|
-
};
|
|
462
|
-
postcssWeappTailwindcssPostPlugin.postcss = true;
|
|
463
|
-
|
|
464
463
|
function isAtMediaHover(atRule) {
|
|
465
464
|
return (/media\(\s*hover\s*:\s*hover\s*\)/.test(atRule.name)
|
|
466
465
|
|| (atRule.name === 'media' && /\(\s*hover\s*:\s*hover\s*\)/.test(atRule.params)));
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
var index$1 = require('./index-
|
|
7
|
-
var v5 = require('./v5-
|
|
8
|
-
require('./options-
|
|
5
|
+
var index = require('./index-NUwXJMr-.js');
|
|
6
|
+
var index$1 = require('./index-CQ2lY08t.js');
|
|
7
|
+
var v5 = require('./v5-Dn7xHCrQ.js');
|
|
8
|
+
require('./options-BKnJT3al.js');
|
|
9
9
|
require('lru-cache');
|
|
10
10
|
require('md5');
|
|
11
11
|
require('./defaults-CdqzSWsR.js');
|
|
@@ -22,7 +22,7 @@ require('./replace.js');
|
|
|
22
22
|
require('./shared-r_GpWheO.js');
|
|
23
23
|
require('@tailwindcss-mangle/shared');
|
|
24
24
|
require('postcss');
|
|
25
|
-
require('./index-
|
|
25
|
+
require('./index-OxGGIRJ6.js');
|
|
26
26
|
require('@csstools/postcss-is-pseudo-class');
|
|
27
27
|
require('postcss-rem-to-responsive-pixel');
|
|
28
28
|
require('postcss-selector-parser');
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as createPlugins } from './index-
|
|
2
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-
|
|
3
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
4
|
-
import './options-
|
|
1
|
+
export { c as createPlugins } from './index-C02WsbSC.mjs';
|
|
2
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-BKg5XkrT.mjs';
|
|
3
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-CyTrcW-A.mjs';
|
|
4
|
+
import './options-BJrhrWVC.mjs';
|
|
5
5
|
import 'lru-cache';
|
|
6
6
|
import 'md5';
|
|
7
7
|
import './defaults-5A8JI2hW.mjs';
|
|
@@ -18,7 +18,7 @@ import './replace.mjs';
|
|
|
18
18
|
import './shared-COWjpokr.mjs';
|
|
19
19
|
import '@tailwindcss-mangle/shared';
|
|
20
20
|
import 'postcss';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-BkGbeUsJ.mjs';
|
|
22
22
|
import '@csstools/postcss-is-pseudo-class';
|
|
23
23
|
import 'postcss-rem-to-responsive-pixel';
|
|
24
24
|
import 'postcss-selector-parser';
|
|
@@ -12,7 +12,7 @@ import { escapeStringRegexp } from '@weapp-core/regex';
|
|
|
12
12
|
import { replaceJs as replaceWxml } from './replace.mjs';
|
|
13
13
|
import { ClassGenerator, defaultMangleClassFilter } from '@tailwindcss-mangle/shared';
|
|
14
14
|
import postcss from 'postcss';
|
|
15
|
-
import { g as getPlugins } from './index-
|
|
15
|
+
import { g as getPlugins } from './index-BkGbeUsJ.mjs';
|
|
16
16
|
import path from 'node:path';
|
|
17
17
|
import process from 'node:process';
|
|
18
18
|
import { TailwindcssPatcher } from 'tailwindcss-patch';
|
|
@@ -14,7 +14,7 @@ var regex = require('@weapp-core/regex');
|
|
|
14
14
|
var replace = require('./replace.js');
|
|
15
15
|
var shared = require('@tailwindcss-mangle/shared');
|
|
16
16
|
var postcss = require('postcss');
|
|
17
|
-
var index = require('./index-
|
|
17
|
+
var index = require('./index-OxGGIRJ6.js');
|
|
18
18
|
var path = require('node:path');
|
|
19
19
|
var process = require('node:process');
|
|
20
20
|
var tailwindcssPatch = require('tailwindcss-patch');
|
package/dist/postcss.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-OxGGIRJ6.js');
|
|
6
6
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
7
7
|
var postcssRem2rpx = require('postcss-rem-to-responsive-pixel');
|
|
8
|
-
require('postcss');
|
|
9
8
|
require('postcss-selector-parser');
|
|
10
9
|
require('./shared-r_GpWheO.js');
|
|
11
10
|
require('@ast-core/escape');
|
|
12
11
|
require('@weapp-core/escape');
|
|
12
|
+
require('postcss');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
15
|
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-
|
|
1
|
+
export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-BkGbeUsJ.mjs';
|
|
2
2
|
export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
|
|
3
3
|
export { default as postcssRem2rpx } from 'postcss-rem-to-responsive-pixel';
|
|
4
|
-
import 'postcss';
|
|
5
4
|
import 'postcss-selector-parser';
|
|
6
5
|
import './shared-COWjpokr.mjs';
|
|
7
6
|
import '@ast-core/escape';
|
|
8
7
|
import '@weapp-core/escape';
|
|
8
|
+
import 'postcss';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { b as pluginName } from './index-
|
|
4
|
+
import { b as pluginName } from './index-BkGbeUsJ.mjs';
|
|
5
5
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
6
6
|
import { g as getGroupedEntries, r as removeExt } from './defaults-5A8JI2hW.mjs';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-BKnJT3al.js');
|
|
4
4
|
var fs = require('node:fs');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-OxGGIRJ6.js');
|
|
7
7
|
var index$1 = require('./index-HC-Qkn0i.js');
|
|
8
8
|
var defaults = require('./defaults-CdqzSWsR.js');
|
|
9
9
|
|
package/dist/vite.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-CQ2lY08t.js');
|
|
6
|
+
require('./options-BKnJT3al.js');
|
|
7
7
|
require('lru-cache');
|
|
8
8
|
require('md5');
|
|
9
9
|
require('./defaults-CdqzSWsR.js');
|
|
@@ -20,7 +20,7 @@ require('./replace.js');
|
|
|
20
20
|
require('./shared-r_GpWheO.js');
|
|
21
21
|
require('@tailwindcss-mangle/shared');
|
|
22
22
|
require('postcss');
|
|
23
|
-
require('./index-
|
|
23
|
+
require('./index-OxGGIRJ6.js');
|
|
24
24
|
require('@csstools/postcss-is-pseudo-class');
|
|
25
25
|
require('postcss-rem-to-responsive-pixel');
|
|
26
26
|
require('postcss-selector-parser');
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-BKg5XkrT.mjs';
|
|
2
|
+
import './options-BJrhrWVC.mjs';
|
|
3
3
|
import 'lru-cache';
|
|
4
4
|
import 'md5';
|
|
5
5
|
import './defaults-5A8JI2hW.mjs';
|
|
@@ -16,7 +16,7 @@ import './replace.mjs';
|
|
|
16
16
|
import './shared-COWjpokr.mjs';
|
|
17
17
|
import '@tailwindcss-mangle/shared';
|
|
18
18
|
import 'postcss';
|
|
19
|
-
import './index-
|
|
19
|
+
import './index-BkGbeUsJ.mjs';
|
|
20
20
|
import '@csstools/postcss-is-pseudo-class';
|
|
21
21
|
import 'postcss-rem-to-responsive-pixel';
|
|
22
22
|
import 'postcss-selector-parser';
|
package/dist/webpack.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-Dn7xHCrQ.js');
|
|
6
|
+
require('./options-BKnJT3al.js');
|
|
7
7
|
require('lru-cache');
|
|
8
8
|
require('md5');
|
|
9
9
|
require('./defaults-CdqzSWsR.js');
|
|
@@ -20,7 +20,7 @@ require('./replace.js');
|
|
|
20
20
|
require('./shared-r_GpWheO.js');
|
|
21
21
|
require('@tailwindcss-mangle/shared');
|
|
22
22
|
require('postcss');
|
|
23
|
-
require('./index-
|
|
23
|
+
require('./index-OxGGIRJ6.js');
|
|
24
24
|
require('@csstools/postcss-is-pseudo-class');
|
|
25
25
|
require('postcss-rem-to-responsive-pixel');
|
|
26
26
|
require('postcss-selector-parser');
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-CyTrcW-A.mjs';
|
|
2
|
+
import './options-BJrhrWVC.mjs';
|
|
3
3
|
import 'lru-cache';
|
|
4
4
|
import 'md5';
|
|
5
5
|
import './defaults-5A8JI2hW.mjs';
|
|
@@ -16,7 +16,7 @@ import './replace.mjs';
|
|
|
16
16
|
import './shared-COWjpokr.mjs';
|
|
17
17
|
import '@tailwindcss-mangle/shared';
|
|
18
18
|
import 'postcss';
|
|
19
|
-
import './index-
|
|
19
|
+
import './index-BkGbeUsJ.mjs';
|
|
20
20
|
import '@csstools/postcss-is-pseudo-class';
|
|
21
21
|
import 'postcss-rem-to-responsive-pixel';
|
|
22
22
|
import 'postcss-selector-parser';
|
package/dist/webpack4.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-BKnJT3al.js');
|
|
6
6
|
var fs = require('node:fs');
|
|
7
7
|
var path = require('node:path');
|
|
8
8
|
var webpackSources = require('webpack-sources');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-OxGGIRJ6.js');
|
|
10
10
|
var index$1 = require('./index-HC-Qkn0i.js');
|
|
11
11
|
var defaults = require('./defaults-CdqzSWsR.js');
|
|
12
12
|
require('lru-cache');
|
package/dist/webpack4.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getOptions, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { ConcatSource, RawSource } from 'webpack-sources';
|
|
5
|
-
import { b as pluginName } from './index-
|
|
5
|
+
import { b as pluginName } from './index-BkGbeUsJ.mjs';
|
|
6
6
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
7
7
|
import { g as getGroupedEntries, r as removeExt } from './defaults-5A8JI2hW.mjs';
|
|
8
8
|
import 'lru-cache';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"lru-cache": "10.4.3",
|
|
143
143
|
"magic-string": "0.30.12",
|
|
144
144
|
"md5": "2.3.0",
|
|
145
|
-
"npm-registry-fetch": "^18.0.
|
|
145
|
+
"npm-registry-fetch": "^18.0.2",
|
|
146
146
|
"postcss": "~8.4.47",
|
|
147
147
|
"postcss-rem-to-responsive-pixel": "~6.0.2",
|
|
148
148
|
"postcss-selector-parser": "~6.1.2",
|