weapp-tailwindcss 5.1.10 → 5.1.12

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 (54) hide show
  1. package/dist/cache-options-DavPxrhC.js +16 -0
  2. package/dist/cache-options-DwBtLwQe.mjs +5 -0
  3. package/dist/cli.js +10 -6
  4. package/dist/cli.mjs +10 -6
  5. package/dist/context-DRRgW7i2.js +1311 -0
  6. package/dist/context-xSJE588m.mjs +1234 -0
  7. package/dist/core.js +1 -1
  8. package/dist/core.mjs +1 -1
  9. package/dist/css-macro.js +1 -1
  10. package/dist/css-macro.mjs +1 -1
  11. package/dist/defaults.js +119 -5
  12. package/dist/defaults.mjs +114 -1
  13. package/dist/{generator-ROzBodj6.mjs → generator-BvPcmqxU.mjs} +9 -139
  14. package/dist/{generator-Bz94KTkH.js → generator-CS10c9g1.js} +18 -154
  15. package/dist/generator.js +1 -1
  16. package/dist/generator.mjs +1 -1
  17. package/dist/{gulp-BKqMb_Ds.mjs → gulp-BEOzXrbp.mjs} +5 -4
  18. package/dist/{gulp-DfOLvYLs.js → gulp-DNZZvUMq.js} +6 -5
  19. package/dist/gulp.js +1 -1
  20. package/dist/gulp.mjs +1 -1
  21. package/dist/{hmr-timing-DOTdH18A.js → hmr-timing-DW1g3zjl.js} +17 -15
  22. package/dist/{hmr-timing-DwtYJdwb.mjs → hmr-timing-hRhRAjYV.mjs} +5 -3
  23. package/dist/index.js +4 -4
  24. package/dist/index.mjs +4 -4
  25. package/dist/object-BJSWl-E5.mjs +9 -0
  26. package/dist/object-COs_Mw6p.js +14 -0
  27. package/dist/postcss.js +1 -1
  28. package/dist/postcss.mjs +1 -1
  29. package/dist/presets.js +5 -5
  30. package/dist/presets.mjs +3 -3
  31. package/dist/rspack.js +1 -1
  32. package/dist/rspack.mjs +1 -1
  33. package/dist/{source-candidate-scan-signature-BrWuBTjY.js → source-candidate-scan-signature-CMgu5bJk.js} +6 -6
  34. package/dist/{source-candidate-scan-signature-CQ04hiox.mjs → source-candidate-scan-signature-t4XKAQ04.mjs} +3 -3
  35. package/dist/{tailwindcss-hzy_WaC9.mjs → tailwindcss-DZT_pWrd.mjs} +132 -2
  36. package/dist/{tailwindcss-Dn5DVlkI.js → tailwindcss-z9JMF-qU.js} +140 -10
  37. package/dist/{transform-DZQETx51.js → transform-COFRlmDF.js} +13 -13
  38. package/dist/{transform-BgnNYkIG.mjs → transform-D5JUgMpE.mjs} +1 -1
  39. package/dist/{utils-D3h8j7Mk.js → utils-CuKLf1Zv.js} +0 -15
  40. package/dist/{utils-DodxWHGz.mjs → utils-MVwpU07P.mjs} +1 -8
  41. package/dist/{vite-BimHmlSp.mjs → vite-DF1gE6a5.mjs} +36 -30
  42. package/dist/{vite-bztpcI8_.js → vite-VGfkFQkC.js} +51 -45
  43. package/dist/vite.js +1 -1
  44. package/dist/vite.mjs +1 -1
  45. package/dist/weapp-tw-css-import-rewrite-loader.js +6 -2
  46. package/dist/{webpack-CCapGlNg.mjs → webpack-CTYm19zA.mjs} +22 -16
  47. package/dist/{webpack-XxBCIrBp.js → webpack-CzXjfvYS.js} +28 -22
  48. package/dist/webpack.js +1 -1
  49. package/dist/webpack.mjs +1 -1
  50. package/dist/{context-y2BGCok4.js → wxml-Ce10eREX.js} +37 -1286
  51. package/dist/{context-DzkSFEVL.mjs → wxml-DdGdeqaH.mjs} +13 -1235
  52. package/package.json +2 -2
  53. package/dist/defaults-9B6aMyZb.mjs +0 -118
  54. package/dist/defaults-nsf4VNMX.js +0 -154
@@ -0,0 +1,16 @@
1
+ //#region src/js/babel/cache-options.ts
2
+ const DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH = 5e4;
3
+ const HARD_PARSE_CACHE_MAX_ENTRIES = 1024;
4
+ //#endregion
5
+ Object.defineProperty(exports, "DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH;
9
+ }
10
+ });
11
+ Object.defineProperty(exports, "HARD_PARSE_CACHE_MAX_ENTRIES", {
12
+ enumerable: true,
13
+ get: function() {
14
+ return HARD_PARSE_CACHE_MAX_ENTRIES;
15
+ }
16
+ });
@@ -0,0 +1,5 @@
1
+ //#region src/js/babel/cache-options.ts
2
+ const DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH = 5e4;
3
+ const HARD_PARSE_CACHE_MAX_ENTRIES = 1024;
4
+ //#endregion
5
+ export { HARD_PARSE_CACHE_MAX_ENTRIES as n, DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH as t };
package/dist/cli.js CHANGED
@@ -865,7 +865,7 @@ function walkEvalExpression(path, options, updater, handler) {
865
865
  }
866
866
  }
867
867
  //#endregion
868
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
868
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
869
869
  function _typeof(o) {
870
870
  "@babel/helpers - typeof";
871
871
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -875,7 +875,7 @@ function _typeof(o) {
875
875
  }, _typeof(o);
876
876
  }
877
877
  //#endregion
878
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
878
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
879
879
  function toPrimitive(t, r) {
880
880
  if ("object" != _typeof(t) || !t) return t;
881
881
  var e = t[Symbol.toPrimitive];
@@ -887,13 +887,13 @@ function toPrimitive(t, r) {
887
887
  return ("string" === r ? String : Number)(t);
888
888
  }
889
889
  //#endregion
890
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
890
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
891
891
  function toPropertyKey(t) {
892
892
  var i = toPrimitive(t, "string");
893
893
  return "symbol" == _typeof(i) ? i : i + "";
894
894
  }
895
895
  //#endregion
896
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
896
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
897
897
  function _defineProperty(e, r, t) {
898
898
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
899
899
  value: t,
@@ -1388,7 +1388,8 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1388
1388
  return false;
1389
1389
  };
1390
1390
  const resolvesMemberExpressionToIgnore = (path, seen) => {
1391
- if (propertyMatches(path.get("property"))) return true;
1391
+ const propertyPath = path.get("property");
1392
+ if (propertyMatches(propertyPath)) return true;
1392
1393
  const objectPath = path.get("object");
1393
1394
  if (objectPath.isIdentifier()) {
1394
1395
  const binding = (objectPath?.scope)?.getBinding?.(objectPath.node.name);
@@ -1455,7 +1456,10 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1455
1456
  return current;
1456
1457
  };
1457
1458
  const evaluateTagPath = (tagPath, seen) => {
1458
- if (tagPath.isCallExpression?.() || tagPath.node.type === "CallExpression") return evaluateTagPath(tagPath.get("callee"), seen);
1459
+ if (tagPath.isCallExpression?.() || tagPath.node.type === "CallExpression") {
1460
+ const calleePath = tagPath.get("callee");
1461
+ return evaluateTagPath(calleePath, seen);
1462
+ }
1459
1463
  if (tagPath.isIdentifier()) {
1460
1464
  if (matchesIgnoreName(tagPath.node.name)) return true;
1461
1465
  const binding = tagPath?.scope?.getBinding?.(tagPath.node.name);
package/dist/cli.mjs CHANGED
@@ -836,7 +836,7 @@ function walkEvalExpression(path, options, updater, handler) {
836
836
  }
837
837
  }
838
838
  //#endregion
839
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
839
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
840
840
  function _typeof(o) {
841
841
  "@babel/helpers - typeof";
842
842
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -846,7 +846,7 @@ function _typeof(o) {
846
846
  }, _typeof(o);
847
847
  }
848
848
  //#endregion
849
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
849
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
850
850
  function toPrimitive(t, r) {
851
851
  if ("object" != _typeof(t) || !t) return t;
852
852
  var e = t[Symbol.toPrimitive];
@@ -858,13 +858,13 @@ function toPrimitive(t, r) {
858
858
  return ("string" === r ? String : Number)(t);
859
859
  }
860
860
  //#endregion
861
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
861
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
862
862
  function toPropertyKey(t) {
863
863
  var i = toPrimitive(t, "string");
864
864
  return "symbol" == _typeof(i) ? i : i + "";
865
865
  }
866
866
  //#endregion
867
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
867
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
868
868
  function _defineProperty(e, r, t) {
869
869
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
870
870
  value: t,
@@ -1359,7 +1359,8 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1359
1359
  return false;
1360
1360
  };
1361
1361
  const resolvesMemberExpressionToIgnore = (path, seen) => {
1362
- if (propertyMatches(path.get("property"))) return true;
1362
+ const propertyPath = path.get("property");
1363
+ if (propertyMatches(propertyPath)) return true;
1363
1364
  const objectPath = path.get("object");
1364
1365
  if (objectPath.isIdentifier()) {
1365
1366
  const binding = (objectPath?.scope)?.getBinding?.(objectPath.node.name);
@@ -1426,7 +1427,10 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1426
1427
  return current;
1427
1428
  };
1428
1429
  const evaluateTagPath = (tagPath, seen) => {
1429
- if (tagPath.isCallExpression?.() || tagPath.node.type === "CallExpression") return evaluateTagPath(tagPath.get("callee"), seen);
1430
+ if (tagPath.isCallExpression?.() || tagPath.node.type === "CallExpression") {
1431
+ const calleePath = tagPath.get("callee");
1432
+ return evaluateTagPath(calleePath, seen);
1433
+ }
1430
1434
  if (tagPath.isIdentifier()) {
1431
1435
  if (matchesIgnoreName(tagPath.node.name)) return true;
1432
1436
  const binding = tagPath?.scope?.getBinding?.(tagPath.node.name);