weapp-tailwindcss 3.5.0 → 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 (47) hide show
  1. package/README.md +16 -11
  2. package/bin/weapp-tailwindcss.js +3 -2
  3. package/dist/cache/index.d.ts +1 -1
  4. package/dist/cli.js +16 -16
  5. package/dist/cli.mjs +16 -16
  6. package/dist/core.js +12 -12
  7. package/dist/core.mjs +12 -12
  8. package/dist/css-macro/index.js +1 -1
  9. package/dist/css-macro/index.mjs +1 -1
  10. package/dist/defaults.js +2 -2
  11. package/dist/defaults.mjs +2 -2
  12. package/dist/escape.d.ts +1 -1
  13. package/dist/gulp.js +14 -14
  14. package/dist/gulp.mjs +14 -14
  15. package/dist/{index-CCbEWRGc.js → index-B2LUAr--.js} +126 -126
  16. package/dist/{index-rwuSO4cM.mjs → index-CMRC3rPR.mjs} +2 -2
  17. package/dist/{index-Ddev8wez.js → index-D_Im3H17.js} +3 -3
  18. package/dist/{index-ClzClhjc.mjs → index-DnKMgPUl.mjs} +3 -3
  19. package/dist/{index-B8Pxc74h.js → index-DzdjmBcg.js} +2 -2
  20. package/dist/{index-szMvMylQ.mjs → index-zFq7tKDr.mjs} +126 -126
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +20 -20
  23. package/dist/index.mjs +18 -18
  24. package/dist/{options-BT2K7ro6.mjs → options-B9PPOdJv.mjs} +140 -171
  25. package/dist/{options-BjD225Hm.js → options-DgkOONy_.js} +142 -173
  26. package/dist/postcss.js +4 -4
  27. package/dist/postcss.mjs +4 -4
  28. package/dist/replace.d.ts +2 -2
  29. package/dist/replace.js +2 -2
  30. package/dist/replace.mjs +2 -2
  31. package/dist/tailwindcss/patcher.d.ts +1 -1
  32. package/dist/types.d.ts +6 -6
  33. package/dist/{v5-_VYyLdJC.js → v5-CqteGjOW.js} +5 -5
  34. package/dist/{v5-vdra_05U.mjs → v5-c6m3PupX.mjs} +4 -4
  35. package/dist/vite.js +13 -13
  36. package/dist/vite.mjs +13 -13
  37. package/dist/webpack.js +13 -13
  38. package/dist/webpack.mjs +13 -13
  39. package/dist/webpack4.js +13 -13
  40. package/dist/webpack4.mjs +12 -12
  41. package/dist/wxml/index.d.ts +1 -1
  42. package/dist/wxml/utils.d.ts +2 -5
  43. package/package.json +13 -12
  44. package/dist/{defaults-DW-EahCC.js → defaults-Bo5n6a1r.js} +2 -2
  45. package/dist/{defaults-w3rlKQwe.mjs → defaults-CWrYZAlE.mjs} +2 -2
  46. package/dist/{shared-DbJl6i6a.mjs → shared-COWjpokr.mjs} +1 -1
  47. package/dist/{shared-hzYeE1wX.js → shared-r_GpWheO.js} +1 -1
@@ -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.
@@ -63,7 +63,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
63
63
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
64
64
  PERFORMANCE OF THIS SOFTWARE.
65
65
  ***************************************************************************** */
66
- /* global Reflect, Promise, SuppressedError, Symbol */
66
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
67
67
 
68
68
 
69
69
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -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";
@@ -661,78 +686,47 @@ function generateCode(match, options = {}) {
661
686
  return match;
662
687
  }
663
688
  }
664
- function extract(original, reg) {
665
- let match = reg.exec(original);
666
- const sources = [];
667
- while (match !== null) {
668
- const start = match.index;
669
- const end = reg.lastIndex;
670
- sources.push({
671
- start,
672
- end,
673
- raw: match[1],
674
- });
675
- match = reg.exec(original);
676
- }
677
- return sources;
678
- }
679
- function extractSource(original) {
680
- return extract(original, regex.variableRegExp);
681
- }
682
- function handleEachClassFragment(original, options = {}) {
683
- const sources = extractSource(original);
684
- if (sources.length > 0) {
685
- const resultArray = [];
686
- let p = 0;
687
- for (let i = 0; i < sources.length; i++) {
688
- const m = sources[i];
689
- const before = original.slice(p, m.start);
690
- resultArray.push(replace.replaceJs(before, {
691
- keepEOL: true,
692
- escapeMap: options.escapeMap,
693
- mangleContext: options.mangleContext,
694
- ignoreHead: p > 0,
695
- }));
696
- p = m.start;
697
- if (m.raw.trim().length > 0) {
698
- const code = generateCode(m.raw, options);
699
- const source = `{{${code}}}`;
700
- m.source = source;
701
- }
702
- else {
703
- m.source = '';
689
+ function handleEachClassFragment(ms, tokens, options = {}) {
690
+ for (const token of tokens) {
691
+ let p = token.start;
692
+ if (token.expressions.length > 0) {
693
+ for (const exp of token.expressions) {
694
+ if (exp.start > token.start && p < exp.start) {
695
+ ms.update(p, exp.start, replace.replaceJs(ms.slice(p, exp.start), {
696
+ keepEOL: true,
697
+ escapeMap: options.escapeMap,
698
+ mangleContext: options.mangleContext,
699
+ ignoreHead: p > 0,
700
+ }));
701
+ }
702
+ const code = `{{${generateCode(exp.value.slice(2, -2), options)}}}`;
703
+ ms.update(exp.start, exp.end, code);
704
+ p = exp.end;
704
705
  }
705
- resultArray.push(m.source);
706
- p = m.end;
707
- if (i === sources.length - 1) {
708
- const after = original.slice(m.end);
709
- resultArray.push(replace.replaceJs(after, {
710
- keepEOL: true,
706
+ if (token.end > p) {
707
+ ms.update(p, token.end, replace.replaceJs(ms.slice(p, token.end), {
708
+ keepEOL: false,
711
709
  escapeMap: options.escapeMap,
712
710
  mangleContext: options.mangleContext,
713
711
  ignoreHead: true,
714
712
  }));
715
713
  }
716
714
  }
717
- return resultArray.filter(Boolean).join('').trim();
718
- }
719
- else {
720
- return replace.replaceJs(original, {
721
- keepEOL: false,
722
- escapeMap: options.escapeMap,
723
- mangleContext: options.mangleContext,
724
- ignoreHead: false,
725
- });
715
+ else {
716
+ ms.update(token.start, token.end, replace.replaceJs(token.value, {
717
+ keepEOL: false,
718
+ escapeMap: options.escapeMap,
719
+ mangleContext: options.mangleContext,
720
+ ignoreHead: false,
721
+ }));
722
+ }
726
723
  }
727
724
  }
728
725
  function templateReplacer(original, options = {}) {
729
726
  const ms = new MagicString__default["default"](original);
730
727
  const tokenizer = new Tokenizer();
731
728
  const tokens = tokenizer.run(ms.original);
732
- for (const token of tokens) {
733
- const target = handleEachClassFragment(token.value, options);
734
- ms.update(token.start, token.end, target);
735
- }
729
+ handleEachClassFragment(ms, tokens, options);
736
730
  return ms.toString();
737
731
  }
738
732
  function regTest(reg, str) {
@@ -822,31 +816,6 @@ function createTemplateHandler(options = {}) {
822
816
  };
823
817
  }
824
818
 
825
- function createTailwindcssPatcher(basedir, cacheDir, supportCustomLengthUnitsPatch) {
826
- const cache = {};
827
- if (cacheDir) {
828
- if (path__default["default"].isAbsolute(cacheDir)) {
829
- cache.dir = cacheDir;
830
- }
831
- else if (basedir) {
832
- cache.dir = path__default["default"].resolve(basedir, cacheDir);
833
- }
834
- else {
835
- cache.dir = path__default["default"].resolve(process__default["default"].cwd(), cacheDir);
836
- }
837
- }
838
- return new tailwindcssPatch.TailwindcssPatcher({
839
- cache,
840
- patch: {
841
- basedir,
842
- applyPatches: {
843
- exportContext: true,
844
- extendLengthUnits: supportCustomLengthUnitsPatch,
845
- },
846
- },
847
- });
848
- }
849
-
850
819
  function getOptions(opts) {
851
820
  const result = defaults.defuOverrideArray(opts, defaults.defaultOptions, {});
852
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-BjD225Hm.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 {
@@ -1,9 +1,9 @@
1
- import { g as getOptions, _ as __awaiter } from './options-BT2K7ro6.mjs';
2
- import path from 'node:path';
1
+ import { g as getOptions, _ as __awaiter } from './options-B9PPOdJv.mjs';
3
2
  import fs from 'node:fs';
4
- import { b as pluginName } from './index-szMvMylQ.mjs';
5
- import { g as getGroupedEntries, r as removeExt } from './defaults-w3rlKQwe.mjs';
3
+ import path from 'node:path';
4
+ import { b as pluginName } from './index-zFq7tKDr.mjs';
6
5
  import { c as createDebug } from './index-BEIjgKpF.mjs';
6
+ import { g as getGroupedEntries, r as removeExt } from './defaults-CWrYZAlE.mjs';
7
7
 
8
8
  const debug = createDebug();
9
9
  class UnifiedWebpackPluginV5 {
package/dist/vite.js CHANGED
@@ -2,32 +2,32 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-Ddev8wez.js');
6
- require('./options-BjD225Hm.js');
5
+ var index = require('./index-D_Im3H17.js');
6
+ require('./options-DgkOONy_.js');
7
+ require('lru-cache');
8
+ require('md5');
9
+ require('./defaults-Bo5n6a1r.js');
10
+ require('@ast-core/escape');
11
+ require('@weapp-core/escape');
12
+ require('./defu-Cdz2PomB.js');
7
13
  require('magic-string');
8
14
  require('@babel/generator');
9
15
  require('@babel/traverse');
10
16
  require('@babel/parser');
11
- require('@weapp-core/escape');
12
- require('@ast-core/escape');
13
- require('./defaults-DW-EahCC.js');
14
- require('./defu-Cdz2PomB.js');
15
- require('./replace.js');
16
- require('./shared-hzYeE1wX.js');
17
17
  require('@weapp-core/regex');
18
+ require('./replace.js');
19
+ require('./shared-r_GpWheO.js');
18
20
  require('@tailwindcss-mangle/shared');
19
- require('lru-cache');
20
- require('md5');
21
21
  require('postcss');
22
- require('./index-CCbEWRGc.js');
22
+ require('./index-B2LUAr--.js');
23
23
  require('@csstools/postcss-is-pseudo-class');
24
24
  require('postcss-rem-to-responsive-pixel');
25
25
  require('postcss-selector-parser');
26
- require('@babel/types');
27
- require('htmlparser2');
28
26
  require('node:path');
29
27
  require('node:process');
30
28
  require('tailwindcss-patch');
29
+ require('@babel/types');
30
+ require('htmlparser2');
31
31
  require('./index-HC-Qkn0i.js');
32
32
  require('debug');
33
33
 
package/dist/vite.mjs CHANGED
@@ -1,28 +1,28 @@
1
- export { U as UnifiedViteWeappTailwindcssPlugin } from './index-ClzClhjc.mjs';
2
- import './options-BT2K7ro6.mjs';
1
+ export { U as UnifiedViteWeappTailwindcssPlugin } from './index-DnKMgPUl.mjs';
2
+ import './options-B9PPOdJv.mjs';
3
+ import 'lru-cache';
4
+ import 'md5';
5
+ import './defaults-CWrYZAlE.mjs';
6
+ import '@ast-core/escape';
7
+ import '@weapp-core/escape';
8
+ import './defu-n46TJT6t.mjs';
3
9
  import 'magic-string';
4
10
  import '@babel/generator';
5
11
  import '@babel/traverse';
6
12
  import '@babel/parser';
7
- import '@weapp-core/escape';
8
- import '@ast-core/escape';
9
- import './defaults-w3rlKQwe.mjs';
10
- import './defu-n46TJT6t.mjs';
11
- import './replace.mjs';
12
- import './shared-DbJl6i6a.mjs';
13
13
  import '@weapp-core/regex';
14
+ import './replace.mjs';
15
+ import './shared-COWjpokr.mjs';
14
16
  import '@tailwindcss-mangle/shared';
15
- import 'lru-cache';
16
- import 'md5';
17
17
  import 'postcss';
18
- import './index-szMvMylQ.mjs';
18
+ import './index-zFq7tKDr.mjs';
19
19
  import '@csstools/postcss-is-pseudo-class';
20
20
  import 'postcss-rem-to-responsive-pixel';
21
21
  import 'postcss-selector-parser';
22
- import '@babel/types';
23
- import 'htmlparser2';
24
22
  import 'node:path';
25
23
  import 'node:process';
26
24
  import 'tailwindcss-patch';
25
+ import '@babel/types';
26
+ import 'htmlparser2';
27
27
  import './index-BEIjgKpF.mjs';
28
28
  import 'debug';
package/dist/webpack.js CHANGED
@@ -2,32 +2,32 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var v5 = require('./v5-_VYyLdJC.js');
6
- require('./options-BjD225Hm.js');
5
+ var v5 = require('./v5-CqteGjOW.js');
6
+ require('./options-DgkOONy_.js');
7
+ require('lru-cache');
8
+ require('md5');
9
+ require('./defaults-Bo5n6a1r.js');
10
+ require('@ast-core/escape');
11
+ require('@weapp-core/escape');
12
+ require('./defu-Cdz2PomB.js');
7
13
  require('magic-string');
8
14
  require('@babel/generator');
9
15
  require('@babel/traverse');
10
16
  require('@babel/parser');
11
- require('@weapp-core/escape');
12
- require('@ast-core/escape');
13
- require('./defaults-DW-EahCC.js');
14
- require('./defu-Cdz2PomB.js');
15
- require('./replace.js');
16
- require('./shared-hzYeE1wX.js');
17
17
  require('@weapp-core/regex');
18
+ require('./replace.js');
19
+ require('./shared-r_GpWheO.js');
18
20
  require('@tailwindcss-mangle/shared');
19
- require('lru-cache');
20
- require('md5');
21
21
  require('postcss');
22
- require('./index-CCbEWRGc.js');
22
+ require('./index-B2LUAr--.js');
23
23
  require('@csstools/postcss-is-pseudo-class');
24
24
  require('postcss-rem-to-responsive-pixel');
25
25
  require('postcss-selector-parser');
26
- require('@babel/types');
27
- require('htmlparser2');
28
26
  require('node:path');
29
27
  require('node:process');
30
28
  require('tailwindcss-patch');
29
+ require('@babel/types');
30
+ require('htmlparser2');
31
31
  require('node:fs');
32
32
  require('./index-HC-Qkn0i.js');
33
33
  require('debug');