weapp-tailwindcss 3.5.1 → 3.5.2

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 (45) hide show
  1. package/README.md +8 -8
  2. package/dist/cache/index.d.ts +1 -1
  3. package/dist/cli.js +16 -16
  4. package/dist/cli.mjs +16 -16
  5. package/dist/core.js +12 -12
  6. package/dist/core.mjs +12 -12
  7. package/dist/css-macro/index.js +1 -1
  8. package/dist/css-macro/index.mjs +1 -1
  9. package/dist/defaults.js +2 -2
  10. package/dist/defaults.mjs +2 -2
  11. package/dist/escape.d.ts +1 -1
  12. package/dist/gulp.js +14 -14
  13. package/dist/gulp.mjs +14 -14
  14. package/dist/{index-CCbEWRGc.js → index-B2LUAr--.js} +126 -126
  15. package/dist/{index-CvOeCzMu.mjs → index-CMRC3rPR.mjs} +2 -2
  16. package/dist/{index-OCXtSR4S.js → index-D_Im3H17.js} +3 -3
  17. package/dist/{index-BmK79Rz9.mjs → index-DnKMgPUl.mjs} +3 -3
  18. package/dist/{index-Dm02XDmu.js → index-DzdjmBcg.js} +2 -2
  19. package/dist/{index-szMvMylQ.mjs → index-zFq7tKDr.mjs} +126 -126
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +20 -20
  22. package/dist/index.mjs +18 -18
  23. package/dist/{options-GppthPlx.mjs → options-B9PPOdJv.mjs} +112 -112
  24. package/dist/{options-Uv-owbdp.js → options-DgkOONy_.js} +114 -114
  25. package/dist/postcss.js +4 -4
  26. package/dist/postcss.mjs +4 -4
  27. package/dist/replace.d.ts +2 -2
  28. package/dist/replace.js +2 -2
  29. package/dist/replace.mjs +2 -2
  30. package/dist/tailwindcss/patcher.d.ts +1 -1
  31. package/dist/types.d.ts +6 -6
  32. package/dist/{v5-C_U1pkH8.js → v5-CqteGjOW.js} +5 -5
  33. package/dist/{v5-DqFFl6uq.mjs → v5-c6m3PupX.mjs} +4 -4
  34. package/dist/vite.js +13 -13
  35. package/dist/vite.mjs +13 -13
  36. package/dist/webpack.js +13 -13
  37. package/dist/webpack.mjs +13 -13
  38. package/dist/webpack4.js +13 -13
  39. package/dist/webpack4.mjs +12 -12
  40. package/dist/wxml/index.d.ts +1 -1
  41. package/package.json +8 -7
  42. package/dist/{defaults-DW-EahCC.js → defaults-Bo5n6a1r.js} +2 -2
  43. package/dist/{defaults-w3rlKQwe.mjs → defaults-CWrYZAlE.mjs} +2 -2
  44. package/dist/{shared-DbJl6i6a.mjs → shared-COWjpokr.mjs} +1 -1
  45. package/dist/{shared-hzYeE1wX.js → shared-r_GpWheO.js} +1 -1
@@ -1,22 +1,22 @@
1
+ import { LRUCache } from 'lru-cache';
2
+ import md5 from 'md5';
3
+ import { d as defuOverrideArray, a as defaultOptions, i as isMap } from './defaults-CWrYZAlE.mjs';
1
4
  import MagicString from 'magic-string';
2
5
  import _babelGenerate from '@babel/generator';
3
6
  import _babelTraverse from '@babel/traverse';
4
7
  import { parse, parseExpression } from '@babel/parser';
5
- import '@weapp-core/escape';
6
8
  import { jsStringEscape } from '@ast-core/escape';
7
- import { d as defuOverrideArray, a as defaultOptions, i as isMap } from './defaults-w3rlKQwe.mjs';
8
- import { replaceJs as replaceWxml } from './replace.mjs';
9
+ import '@weapp-core/escape';
9
10
  import { escapeStringRegexp } from '@weapp-core/regex';
11
+ import { replaceJs as replaceWxml } from './replace.mjs';
10
12
  import { ClassGenerator, defaultMangleClassFilter } from '@tailwindcss-mangle/shared';
11
- import { LRUCache } from 'lru-cache';
12
- import md5 from 'md5';
13
13
  import postcss from 'postcss';
14
- import { g as getPlugins } from './index-szMvMylQ.mjs';
15
- import * as t from '@babel/types';
16
- import { Parser } from 'htmlparser2';
14
+ import { g as getPlugins } from './index-zFq7tKDr.mjs';
17
15
  import path from 'node:path';
18
16
  import process from 'node:process';
19
17
  import { TailwindcssPatcher } from 'tailwindcss-patch';
18
+ import * as t from '@babel/types';
19
+ import { Parser } from 'htmlparser2';
20
20
 
21
21
  /******************************************************************************
22
22
  Copyright (c) Microsoft Corporation.
@@ -50,11 +50,79 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
50
50
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
51
51
  };
52
52
 
53
- function _interopDefaultCompat(e) {
54
- return e && typeof e === 'object' && 'default' in e ? e.default : e;
53
+ function createCache(options) {
54
+ const disabled = options === false;
55
+ const hashMap = new Map();
56
+ const instance = new LRUCache({
57
+ max: 1024,
58
+ ttl: 0,
59
+ ttlAutopurge: false,
60
+ });
61
+ return {
62
+ hashMap,
63
+ instance,
64
+ hasHashKey(key) {
65
+ return hashMap.has(key);
66
+ },
67
+ getHashValue(key) {
68
+ return hashMap.get(key);
69
+ },
70
+ setHashValue(key, value) {
71
+ return hashMap.set(key, value);
72
+ },
73
+ get(key) {
74
+ return instance.get(key);
75
+ },
76
+ set(key, value) {
77
+ return instance.set(key, value);
78
+ },
79
+ computeHash(message) {
80
+ return md5(message);
81
+ },
82
+ calcHashValueChanged(key, hash) {
83
+ const hit = this.getHashValue(key);
84
+ if (hit) {
85
+ this.setHashValue(key, {
86
+ changed: hash !== hit.hash,
87
+ hash,
88
+ });
89
+ }
90
+ else {
91
+ this.setHashValue(key, {
92
+ changed: true,
93
+ hash,
94
+ });
95
+ }
96
+ return this;
97
+ },
98
+ has(key) {
99
+ return instance.has(key);
100
+ },
101
+ process(key, callback, fallback) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ if (disabled) {
104
+ const res = yield fallback();
105
+ if (res) {
106
+ this.set(res.key, res.source);
107
+ }
108
+ }
109
+ else {
110
+ const hit = this.getHashValue(key);
111
+ if (hit && !hit.changed) {
112
+ const returnFlag = yield callback();
113
+ if (returnFlag !== false) {
114
+ return;
115
+ }
116
+ }
117
+ const res = yield fallback();
118
+ if (res) {
119
+ this.set(res.key, res.source);
120
+ }
121
+ }
122
+ });
123
+ },
124
+ };
55
125
  }
56
- _interopDefaultCompat(_babelGenerate);
57
- const traverse = _interopDefaultCompat(_babelTraverse);
58
126
 
59
127
  function decodeUnicode2(input) {
60
128
  try {
@@ -65,6 +133,12 @@ function decodeUnicode2(input) {
65
133
  }
66
134
  }
67
135
 
136
+ function _interopDefaultCompat(e) {
137
+ return e && typeof e === 'object' && 'default' in e ? e.default : e;
138
+ }
139
+ _interopDefaultCompat(_babelGenerate);
140
+ const traverse = _interopDefaultCompat(_babelTraverse);
141
+
68
142
  const validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
69
143
  function isValidSelector(selector = '') {
70
144
  return validateFilterRE.test(selector);
@@ -359,80 +433,6 @@ function useMangleStore() {
359
433
  };
360
434
  }
361
435
 
362
- function createCache(options) {
363
- const disabled = options === false;
364
- const hashMap = new Map();
365
- const instance = new LRUCache({
366
- max: 1024,
367
- ttl: 0,
368
- ttlAutopurge: false,
369
- });
370
- return {
371
- hashMap,
372
- instance,
373
- hasHashKey(key) {
374
- return hashMap.has(key);
375
- },
376
- getHashValue(key) {
377
- return hashMap.get(key);
378
- },
379
- setHashValue(key, value) {
380
- return hashMap.set(key, value);
381
- },
382
- get(key) {
383
- return instance.get(key);
384
- },
385
- set(key, value) {
386
- return instance.set(key, value);
387
- },
388
- computeHash(message) {
389
- return md5(message);
390
- },
391
- calcHashValueChanged(key, hash) {
392
- const hit = this.getHashValue(key);
393
- if (hit) {
394
- this.setHashValue(key, {
395
- changed: hash !== hit.hash,
396
- hash,
397
- });
398
- }
399
- else {
400
- this.setHashValue(key, {
401
- changed: true,
402
- hash,
403
- });
404
- }
405
- return this;
406
- },
407
- has(key) {
408
- return instance.has(key);
409
- },
410
- process(key, callback, fallback) {
411
- return __awaiter(this, void 0, void 0, function* () {
412
- if (disabled) {
413
- const res = yield fallback();
414
- if (res) {
415
- this.set(res.key, res.source);
416
- }
417
- }
418
- else {
419
- const hit = this.getHashValue(key);
420
- if (hit && !hit.changed) {
421
- const returnFlag = yield callback();
422
- if (returnFlag !== false) {
423
- return;
424
- }
425
- }
426
- const res = yield fallback();
427
- if (res) {
428
- this.set(res.key, res.source);
429
- }
430
- }
431
- });
432
- },
433
- };
434
- }
435
-
436
436
  function styleHandler(rawSource, options) {
437
437
  var _a, _b;
438
438
  return postcss(getPlugins(options))
@@ -465,6 +465,31 @@ function createInjectPreflight(options) {
465
465
  };
466
466
  }
467
467
 
468
+ function createTailwindcssPatcher(basedir, cacheDir, supportCustomLengthUnitsPatch) {
469
+ const cache = {};
470
+ if (cacheDir) {
471
+ if (path.isAbsolute(cacheDir)) {
472
+ cache.dir = cacheDir;
473
+ }
474
+ else if (basedir) {
475
+ cache.dir = path.resolve(basedir, cacheDir);
476
+ }
477
+ else {
478
+ cache.dir = path.resolve(process.cwd(), cacheDir);
479
+ }
480
+ }
481
+ return new TailwindcssPatcher({
482
+ cache,
483
+ patch: {
484
+ basedir,
485
+ applyPatches: {
486
+ exportContext: true,
487
+ extendLengthUnits: supportCustomLengthUnitsPatch,
488
+ },
489
+ },
490
+ });
491
+ }
492
+
468
493
  var State;
469
494
  (function (State) {
470
495
  State[State["START"] = 0] = "START";
@@ -635,7 +660,7 @@ function handleEachClassFragment(ms, tokens, options = {}) {
635
660
  let p = token.start;
636
661
  if (token.expressions.length > 0) {
637
662
  for (const exp of token.expressions) {
638
- if (exp.start > token.start) {
663
+ if (exp.start > token.start && p < exp.start) {
639
664
  ms.update(p, exp.start, replaceWxml(ms.slice(p, exp.start), {
640
665
  keepEOL: true,
641
666
  escapeMap: options.escapeMap,
@@ -760,31 +785,6 @@ function createTemplateHandler(options = {}) {
760
785
  };
761
786
  }
762
787
 
763
- function createTailwindcssPatcher(basedir, cacheDir, supportCustomLengthUnitsPatch) {
764
- const cache = {};
765
- if (cacheDir) {
766
- if (path.isAbsolute(cacheDir)) {
767
- cache.dir = cacheDir;
768
- }
769
- else if (basedir) {
770
- cache.dir = path.resolve(basedir, cacheDir);
771
- }
772
- else {
773
- cache.dir = path.resolve(process.cwd(), cacheDir);
774
- }
775
- }
776
- return new TailwindcssPatcher({
777
- cache,
778
- patch: {
779
- basedir,
780
- applyPatches: {
781
- exportContext: true,
782
- extendLengthUnits: supportCustomLengthUnitsPatch,
783
- },
784
- },
785
- });
786
- }
787
-
788
788
  function getOptions(opts) {
789
789
  const result = defuOverrideArray(opts, defaultOptions, {});
790
790
  result.escapeMap = result.customReplaceDictionary;
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
+ var lruCache = require('lru-cache');
4
+ var md5 = require('md5');
5
+ var defaults = require('./defaults-Bo5n6a1r.js');
3
6
  var MagicString = require('magic-string');
4
7
  var _babelGenerate = require('@babel/generator');
5
8
  var _babelTraverse = require('@babel/traverse');
6
9
  var parser = require('@babel/parser');
7
- require('@weapp-core/escape');
8
10
  var escape = require('@ast-core/escape');
9
- var defaults = require('./defaults-DW-EahCC.js');
10
- var replace = require('./replace.js');
11
+ require('@weapp-core/escape');
11
12
  var regex = require('@weapp-core/regex');
13
+ var replace = require('./replace.js');
12
14
  var shared = require('@tailwindcss-mangle/shared');
13
- var lruCache = require('lru-cache');
14
- var md5 = require('md5');
15
15
  var postcss = require('postcss');
16
- var index = require('./index-CCbEWRGc.js');
17
- var t = require('@babel/types');
18
- var htmlparser2 = require('htmlparser2');
16
+ var index = require('./index-B2LUAr--.js');
19
17
  var path = require('node:path');
20
18
  var process = require('node:process');
21
19
  var tailwindcssPatch = require('tailwindcss-patch');
20
+ var t = require('@babel/types');
21
+ var htmlparser2 = require('htmlparser2');
22
22
 
23
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
24
24
 
@@ -40,14 +40,14 @@ function _interopNamespaceCompat(e) {
40
40
  return Object.freeze(n);
41
41
  }
42
42
 
43
+ var md5__default = /*#__PURE__*/_interopDefaultCompat(md5);
43
44
  var MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
44
45
  var _babelGenerate__default = /*#__PURE__*/_interopDefaultCompat(_babelGenerate);
45
46
  var _babelTraverse__default = /*#__PURE__*/_interopDefaultCompat(_babelTraverse);
46
- var md5__default = /*#__PURE__*/_interopDefaultCompat(md5);
47
47
  var postcss__default = /*#__PURE__*/_interopDefaultCompat(postcss);
48
- var t__namespace = /*#__PURE__*/_interopNamespaceCompat(t);
49
48
  var path__default = /*#__PURE__*/_interopDefaultCompat(path);
50
49
  var process__default = /*#__PURE__*/_interopDefaultCompat(process);
50
+ var t__namespace = /*#__PURE__*/_interopNamespaceCompat(t);
51
51
 
52
52
  /******************************************************************************
53
53
  Copyright (c) Microsoft Corporation.
@@ -81,11 +81,79 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
81
81
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
82
82
  };
83
83
 
84
- function _interopDefaultCompat$1(e) {
85
- return e && typeof e === 'object' && 'default' in e ? e.default : e;
84
+ function createCache(options) {
85
+ const disabled = options === false;
86
+ const hashMap = new Map();
87
+ const instance = new lruCache.LRUCache({
88
+ max: 1024,
89
+ ttl: 0,
90
+ ttlAutopurge: false,
91
+ });
92
+ return {
93
+ hashMap,
94
+ instance,
95
+ hasHashKey(key) {
96
+ return hashMap.has(key);
97
+ },
98
+ getHashValue(key) {
99
+ return hashMap.get(key);
100
+ },
101
+ setHashValue(key, value) {
102
+ return hashMap.set(key, value);
103
+ },
104
+ get(key) {
105
+ return instance.get(key);
106
+ },
107
+ set(key, value) {
108
+ return instance.set(key, value);
109
+ },
110
+ computeHash(message) {
111
+ return md5__default["default"](message);
112
+ },
113
+ calcHashValueChanged(key, hash) {
114
+ const hit = this.getHashValue(key);
115
+ if (hit) {
116
+ this.setHashValue(key, {
117
+ changed: hash !== hit.hash,
118
+ hash,
119
+ });
120
+ }
121
+ else {
122
+ this.setHashValue(key, {
123
+ changed: true,
124
+ hash,
125
+ });
126
+ }
127
+ return this;
128
+ },
129
+ has(key) {
130
+ return instance.has(key);
131
+ },
132
+ process(key, callback, fallback) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ if (disabled) {
135
+ const res = yield fallback();
136
+ if (res) {
137
+ this.set(res.key, res.source);
138
+ }
139
+ }
140
+ else {
141
+ const hit = this.getHashValue(key);
142
+ if (hit && !hit.changed) {
143
+ const returnFlag = yield callback();
144
+ if (returnFlag !== false) {
145
+ return;
146
+ }
147
+ }
148
+ const res = yield fallback();
149
+ if (res) {
150
+ this.set(res.key, res.source);
151
+ }
152
+ }
153
+ });
154
+ },
155
+ };
86
156
  }
87
- _interopDefaultCompat$1(_babelGenerate__default["default"]);
88
- const traverse = _interopDefaultCompat$1(_babelTraverse__default["default"]);
89
157
 
90
158
  function decodeUnicode2(input) {
91
159
  try {
@@ -96,6 +164,12 @@ function decodeUnicode2(input) {
96
164
  }
97
165
  }
98
166
 
167
+ function _interopDefaultCompat$1(e) {
168
+ return e && typeof e === 'object' && 'default' in e ? e.default : e;
169
+ }
170
+ _interopDefaultCompat$1(_babelGenerate__default["default"]);
171
+ const traverse = _interopDefaultCompat$1(_babelTraverse__default["default"]);
172
+
99
173
  const validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
100
174
  function isValidSelector(selector = '') {
101
175
  return validateFilterRE.test(selector);
@@ -390,80 +464,6 @@ function useMangleStore() {
390
464
  };
391
465
  }
392
466
 
393
- function createCache(options) {
394
- const disabled = options === false;
395
- const hashMap = new Map();
396
- const instance = new lruCache.LRUCache({
397
- max: 1024,
398
- ttl: 0,
399
- ttlAutopurge: false,
400
- });
401
- return {
402
- hashMap,
403
- instance,
404
- hasHashKey(key) {
405
- return hashMap.has(key);
406
- },
407
- getHashValue(key) {
408
- return hashMap.get(key);
409
- },
410
- setHashValue(key, value) {
411
- return hashMap.set(key, value);
412
- },
413
- get(key) {
414
- return instance.get(key);
415
- },
416
- set(key, value) {
417
- return instance.set(key, value);
418
- },
419
- computeHash(message) {
420
- return md5__default["default"](message);
421
- },
422
- calcHashValueChanged(key, hash) {
423
- const hit = this.getHashValue(key);
424
- if (hit) {
425
- this.setHashValue(key, {
426
- changed: hash !== hit.hash,
427
- hash,
428
- });
429
- }
430
- else {
431
- this.setHashValue(key, {
432
- changed: true,
433
- hash,
434
- });
435
- }
436
- return this;
437
- },
438
- has(key) {
439
- return instance.has(key);
440
- },
441
- process(key, callback, fallback) {
442
- return __awaiter(this, void 0, void 0, function* () {
443
- if (disabled) {
444
- const res = yield fallback();
445
- if (res) {
446
- this.set(res.key, res.source);
447
- }
448
- }
449
- else {
450
- const hit = this.getHashValue(key);
451
- if (hit && !hit.changed) {
452
- const returnFlag = yield callback();
453
- if (returnFlag !== false) {
454
- return;
455
- }
456
- }
457
- const res = yield fallback();
458
- if (res) {
459
- this.set(res.key, res.source);
460
- }
461
- }
462
- });
463
- },
464
- };
465
- }
466
-
467
467
  function styleHandler(rawSource, options) {
468
468
  var _a, _b;
469
469
  return postcss__default["default"](index.getPlugins(options))
@@ -496,6 +496,31 @@ function createInjectPreflight(options) {
496
496
  };
497
497
  }
498
498
 
499
+ function createTailwindcssPatcher(basedir, cacheDir, supportCustomLengthUnitsPatch) {
500
+ const cache = {};
501
+ if (cacheDir) {
502
+ if (path__default["default"].isAbsolute(cacheDir)) {
503
+ cache.dir = cacheDir;
504
+ }
505
+ else if (basedir) {
506
+ cache.dir = path__default["default"].resolve(basedir, cacheDir);
507
+ }
508
+ else {
509
+ cache.dir = path__default["default"].resolve(process__default["default"].cwd(), cacheDir);
510
+ }
511
+ }
512
+ return new tailwindcssPatch.TailwindcssPatcher({
513
+ cache,
514
+ patch: {
515
+ basedir,
516
+ applyPatches: {
517
+ exportContext: true,
518
+ extendLengthUnits: supportCustomLengthUnitsPatch,
519
+ },
520
+ },
521
+ });
522
+ }
523
+
499
524
  var State;
500
525
  (function (State) {
501
526
  State[State["START"] = 0] = "START";
@@ -666,7 +691,7 @@ function handleEachClassFragment(ms, tokens, options = {}) {
666
691
  let p = token.start;
667
692
  if (token.expressions.length > 0) {
668
693
  for (const exp of token.expressions) {
669
- if (exp.start > token.start) {
694
+ if (exp.start > token.start && p < exp.start) {
670
695
  ms.update(p, exp.start, replace.replaceJs(ms.slice(p, exp.start), {
671
696
  keepEOL: true,
672
697
  escapeMap: options.escapeMap,
@@ -791,31 +816,6 @@ function createTemplateHandler(options = {}) {
791
816
  };
792
817
  }
793
818
 
794
- function createTailwindcssPatcher(basedir, cacheDir, supportCustomLengthUnitsPatch) {
795
- const cache = {};
796
- if (cacheDir) {
797
- if (path__default["default"].isAbsolute(cacheDir)) {
798
- cache.dir = cacheDir;
799
- }
800
- else if (basedir) {
801
- cache.dir = path__default["default"].resolve(basedir, cacheDir);
802
- }
803
- else {
804
- cache.dir = path__default["default"].resolve(process__default["default"].cwd(), cacheDir);
805
- }
806
- }
807
- return new tailwindcssPatch.TailwindcssPatcher({
808
- cache,
809
- patch: {
810
- basedir,
811
- applyPatches: {
812
- exportContext: true,
813
- extendLengthUnits: supportCustomLengthUnitsPatch,
814
- },
815
- },
816
- });
817
- }
818
-
819
819
  function getOptions(opts) {
820
820
  const result = defaults.defuOverrideArray(opts, defaults.defaultOptions, {});
821
821
  result.escapeMap = result.customReplaceDictionary;
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-CCbEWRGc.js');
5
+ var index = require('./index-B2LUAr--.js');
6
6
  var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
7
7
  var postcssRem2rpx = require('postcss-rem-to-responsive-pixel');
8
+ require('postcss');
8
9
  require('postcss-selector-parser');
9
- require('./shared-hzYeE1wX.js');
10
- require('@weapp-core/escape');
10
+ require('./shared-r_GpWheO.js');
11
11
  require('@ast-core/escape');
12
- require('postcss');
12
+ require('@weapp-core/escape');
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-szMvMylQ.mjs';
1
+ export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-zFq7tKDr.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';
4
5
  import 'postcss-selector-parser';
5
- import './shared-DbJl6i6a.mjs';
6
- import '@weapp-core/escape';
6
+ import './shared-COWjpokr.mjs';
7
7
  import '@ast-core/escape';
8
- import 'postcss';
8
+ import '@weapp-core/escape';
package/dist/replace.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { MappingChars2String, MappingChars2StringEntries, MappingStringDictionary, SYMBOL_TABLE, SYMBOL_TABLE_TYPE, SYMBOL_TABLE_TYPE_VALUES, SimpleMappingChars2String, SimpleMappingChars2StringEntries, } from './escape';
2
- export { replaceWxml as replaceJs } from './wxml/shared';
1
+ export { MappingChars2String, MappingChars2StringEntries, MappingStringDictionary, SimpleMappingChars2String, SimpleMappingChars2StringEntries, SYMBOL_TABLE, SYMBOL_TABLE_TYPE, SYMBOL_TABLE_TYPE_VALUES, } from './escape';
3
2
  export { internalCssSelectorReplacer as replaceCss } from './postcss/shared';
3
+ export { replaceWxml as replaceJs } from './wxml/shared';
package/dist/replace.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var escape = require('@weapp-core/escape');
6
5
  require('@ast-core/escape');
7
- var shared = require('./shared-hzYeE1wX.js');
6
+ var escape = require('@weapp-core/escape');
7
+ var shared = require('./shared-r_GpWheO.js');
8
8
 
9
9
  function replaceWxml(original, options = {
10
10
  keepEOL: false,
package/dist/replace.mjs CHANGED
@@ -1,7 +1,7 @@
1
+ import '@ast-core/escape';
1
2
  import { escape, SimpleMappingChars2String } from '@weapp-core/escape';
2
3
  export { MappingChars2String, MappingChars2StringEntries, SYMBOL_TABLE, SimpleMappingChars2String, SimpleMappingChars2StringEntries } from '@weapp-core/escape';
3
- import '@ast-core/escape';
4
- export { i as replaceCss } from './shared-DbJl6i6a.mjs';
4
+ export { i as replaceCss } from './shared-COWjpokr.mjs';
5
5
 
6
6
  function replaceWxml(original, options = {
7
7
  keepEOL: false,
@@ -1,3 +1,3 @@
1
- import type { ILengthUnitsPatchOptions } from 'tailwindcss-patch';
2
1
  import { TailwindcssPatcher } from 'tailwindcss-patch';
2
+ import type { ILengthUnitsPatchOptions } from 'tailwindcss-patch';
3
3
  export declare function createTailwindcssPatcher(basedir?: string, cacheDir?: string, supportCustomLengthUnitsPatch?: boolean | ILengthUnitsPatchOptions): TailwindcssPatcher;
package/dist/types.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import type { Document, Result as PostcssResult, Root, Rule } from 'postcss';
2
- import type { ClassGenerator, IClassGeneratorOptions } from '@tailwindcss-mangle/shared';
3
- import type { SourceMap } from 'magic-string';
4
1
  import type { GeneratorResult } from '@babel/generator';
5
2
  import type { ParseError, ParserOptions } from '@babel/parser';
6
- import type { UserDefinedOptions as rem2rpxOptions } from 'postcss-rem-to-responsive-pixel';
3
+ import type { ClassGenerator, IClassGeneratorOptions } from '@tailwindcss-mangle/shared';
4
+ import type { SourceMap } from 'magic-string';
5
+ import type { Document, Result as PostcssResult, Root, Rule } from 'postcss';
7
6
  import type { Result } from 'postcss-load-config';
7
+ import type { UserDefinedOptions as rem2rpxOptions } from 'postcss-rem-to-responsive-pixel';
8
8
  import type { ILengthUnitsPatchOptions, TailwindcssPatcher } from 'tailwindcss-patch';
9
- import type { InjectPreflight } from './postcss/preflight';
10
- import type { IContext as PostcssContext } from './postcss/plugins/ctx';
11
9
  import type { ICreateCacheReturnType } from './cache';
10
+ import type { IContext as PostcssContext } from './postcss/plugins/ctx';
11
+ import type { InjectPreflight } from './postcss/preflight';
12
12
  type PostcssOptions = Partial<Omit<Result, 'file'>>;
13
13
  export type ItemOrItemArray<T> = T | T[];
14
14
  export type AppType = 'uni-app' | 'uni-app-vite' | 'taro' | 'remax' | 'rax' | 'native' | 'kbone' | 'mpx';
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-Uv-owbdp.js');
4
- var path = require('node:path');
3
+ var options = require('./options-DgkOONy_.js');
5
4
  var fs = require('node:fs');
6
- var index = require('./index-CCbEWRGc.js');
7
- var defaults = require('./defaults-DW-EahCC.js');
5
+ var path = require('node:path');
6
+ var index = require('./index-B2LUAr--.js');
8
7
  var index$1 = require('./index-HC-Qkn0i.js');
8
+ var defaults = require('./defaults-Bo5n6a1r.js');
9
9
 
10
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
11
 
12
- var path__default = /*#__PURE__*/_interopDefaultCompat(path);
13
12
  var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
13
+ var path__default = /*#__PURE__*/_interopDefaultCompat(path);
14
14
 
15
15
  const debug = index$1.createDebug();
16
16
  class UnifiedWebpackPluginV5 {