weapp-tailwindcss 4.3.3 → 4.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/chunk-2NRTWL47.js +43 -0
  2. package/dist/{chunk-3KXFKRIX.mjs → chunk-D25XJJMP.mjs} +593 -316
  3. package/dist/chunk-D2AKCBDU.mjs +122 -0
  4. package/dist/{chunk-L36QGA7Y.mjs → chunk-FBGUUXQV.mjs} +1 -1
  5. package/dist/{chunk-A75TB5TE.js → chunk-FOSGDQZ7.js} +34 -43
  6. package/dist/{chunk-3KMEJ2LM.js → chunk-GQAB52GE.js} +594 -317
  7. package/dist/chunk-H2Y5VNOJ.js +122 -0
  8. package/dist/chunk-H4JTYYOI.mjs +43 -0
  9. package/dist/{chunk-5BTC4YQI.mjs → chunk-IHKVNALD.mjs} +29 -38
  10. package/dist/{chunk-M7PVNKCH.mjs → chunk-L3HOZDIV.mjs} +45 -57
  11. package/dist/{chunk-GFQ2R7SX.mjs → chunk-NDHL3P32.mjs} +127 -129
  12. package/dist/{chunk-JDLLZFZX.js → chunk-QXCC745G.js} +46 -58
  13. package/dist/{chunk-O3G5TVND.js → chunk-RBRSMHFS.js} +1 -1
  14. package/dist/chunk-UW3WHSZ5.js +39 -0
  15. package/dist/{chunk-L7VNJFIK.js → chunk-VN2BU7ON.js} +129 -131
  16. package/dist/chunk-ZNKIYZRQ.mjs +39 -0
  17. package/dist/cli.js +5 -8
  18. package/dist/cli.mjs +4 -7
  19. package/dist/core.js +5 -5
  20. package/dist/core.mjs +4 -4
  21. package/dist/css-macro/postcss.js +1 -1
  22. package/dist/css-macro/postcss.mjs +1 -1
  23. package/dist/css-macro.d.mts +1 -1
  24. package/dist/css-macro.d.ts +1 -1
  25. package/dist/css-macro.js +31 -19
  26. package/dist/css-macro.mjs +30 -18
  27. package/dist/defaults.js +4 -4
  28. package/dist/defaults.mjs +3 -3
  29. package/dist/escape.js +1 -1
  30. package/dist/escape.mjs +1 -1
  31. package/dist/gulp.js +7 -7
  32. package/dist/gulp.mjs +6 -6
  33. package/dist/index.js +9 -9
  34. package/dist/index.mjs +8 -8
  35. package/dist/postcss-html-transform.js +1 -1
  36. package/dist/postcss-html-transform.mjs +1 -1
  37. package/dist/presets.js +3 -3
  38. package/dist/presets.mjs +2 -2
  39. package/dist/types.d.mts +247 -246
  40. package/dist/types.d.ts +247 -246
  41. package/dist/types.js +1 -1
  42. package/dist/types.mjs +1 -1
  43. package/dist/vite.js +7 -7
  44. package/dist/vite.mjs +6 -6
  45. package/dist/webpack.js +7 -7
  46. package/dist/webpack.mjs +6 -6
  47. package/dist/webpack4.js +48 -63
  48. package/dist/webpack4.mjs +46 -61
  49. package/package.json +5 -6
  50. package/dist/chunk-3AUX4FGE.mjs +0 -13
  51. package/dist/chunk-GEUHO2UC.mjs +0 -141
  52. package/dist/chunk-LSSLYD6B.js +0 -13
  53. package/dist/chunk-QXQOYYCR.js +0 -26
  54. package/dist/chunk-TI4R65TB.js +0 -141
  55. package/dist/chunk-Y5AFAYKI.mjs +0 -26
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/debug/index.ts
2
+ var _debug2 = require('debug'); var _debug3 = _interopRequireDefault(_debug2);
3
+ var _debug = _debug3.default.call(void 0, "weapp-tw");
4
+ function createDebug(prefix) {
5
+ function debug(formatter, ...args) {
6
+ return _debug((_nullishCoalesce(prefix, () => ( ""))) + formatter, ...args);
7
+ }
8
+ return debug;
9
+ }
10
+
11
+ // src/bundlers/shared/cache.ts
12
+ async function processCachedTask({
13
+ cache,
14
+ cacheKey,
15
+ hashKey = cacheKey,
16
+ rawSource,
17
+ readCache,
18
+ applyResult,
19
+ transform,
20
+ onCacheHit
21
+ }) {
22
+ let cacheHit = false;
23
+ const result = await cache.process({
24
+ key: cacheKey,
25
+ hashKey,
26
+ rawSource,
27
+ resolveCache: readCache,
28
+ async onCacheHit(value) {
29
+ cacheHit = true;
30
+ await applyResult(value);
31
+ _optionalChain([onCacheHit, 'optionalCall', _ => _()]);
32
+ },
33
+ transform
34
+ });
35
+ if (!cacheHit) {
36
+ await applyResult(result);
37
+ }
38
+ }
39
+
40
+
41
+
42
+
43
+ exports.createDebug = createDebug; exports.processCachedTask = processCachedTask;