weapp-tailwindcss 5.0.12 → 5.1.0

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 (205) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/auto-Ba6hDrse.mjs +13 -0
  4. package/dist/auto-DtU6f3X6.js +18 -0
  5. package/dist/bundlers/shared/css-cleanup.d.ts +1 -1
  6. package/dist/bundlers/shared/generator-css/directives.d.ts +2 -1
  7. package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +27 -10
  8. package/dist/bundlers/shared/generator-css/local-imports.d.ts +3 -0
  9. package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -0
  10. package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +6 -0
  11. package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +7 -0
  12. package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +3 -0
  13. package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +15 -0
  14. package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +12 -0
  15. package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +22 -0
  16. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +6 -23
  17. package/dist/bundlers/shared/generator-css/types.d.ts +15 -1
  18. package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -1
  19. package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
  20. package/dist/bundlers/shared/run-tasks.d.ts +1 -0
  21. package/dist/bundlers/shared/v4-generation-core.d.ts +11 -0
  22. package/dist/bundlers/vite/css-finalizer.d.ts +1 -1
  23. package/dist/bundlers/vite/css-memory.d.ts +37 -0
  24. package/dist/bundlers/vite/generate-bundle/bundle-file-names.d.ts +2 -0
  25. package/dist/bundlers/vite/generate-bundle/candidates.d.ts +0 -1
  26. package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +8 -0
  27. package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +4 -0
  28. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +5 -0
  29. package/dist/bundlers/vite/generate-bundle/css-output.d.ts +9 -7
  30. package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +6 -0
  31. package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +12 -0
  32. package/dist/bundlers/vite/generate-bundle/finalize.d.ts +63 -0
  33. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +31 -0
  34. package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +80 -0
  35. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +53 -0
  36. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
  37. package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +4 -0
  38. package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +21 -0
  39. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +5 -2
  40. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +30 -0
  41. package/dist/bundlers/vite/generate-bundle/timing.d.ts +1 -0
  42. package/dist/bundlers/vite/generate-bundle/types.d.ts +3 -1
  43. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +20 -0
  44. package/dist/bundlers/vite/generate-bundle/vite-css-cache.d.ts +6 -0
  45. package/dist/bundlers/vite/generate-bundle.d.ts +4 -1
  46. package/dist/bundlers/vite/hot-css-modules.d.ts +5 -0
  47. package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -0
  48. package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +3 -3
  49. package/dist/bundlers/vite/map-cache.d.ts +2 -0
  50. package/dist/bundlers/vite/processed-css-assets.d.ts +16 -0
  51. package/dist/bundlers/vite/resolve-app-type.d.ts +1 -2
  52. package/dist/bundlers/vite/rewrite-css-imports.d.ts +1 -0
  53. package/dist/bundlers/vite/runtime-class-set.d.ts +5 -5
  54. package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +13 -0
  55. package/dist/bundlers/vite/source-candidates/script.d.ts +1 -7
  56. package/dist/bundlers/vite/source-candidates.d.ts +12 -2
  57. package/dist/bundlers/vite/source-scan/css-entries.d.ts +3 -6
  58. package/dist/bundlers/vite/source-scan.d.ts +3 -3
  59. package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
  60. package/dist/bundlers/vite/utils.d.ts +1 -0
  61. package/dist/bundlers/vite/weapp-vite-config.d.ts +3 -1
  62. package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +24 -0
  63. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +48 -10
  64. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +28 -0
  65. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +5 -1
  66. package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +15 -1
  67. package/dist/bundlers/webpack/shared/css-loader-runtime.d.ts +1 -0
  68. package/dist/cache/index.d.ts +1 -0
  69. package/dist/cli/mount-options.d.ts +2 -2
  70. package/dist/cli.js +126 -439
  71. package/dist/cli.mjs +121 -434
  72. package/dist/context/index.d.ts +3 -3
  73. package/dist/context/style-options.d.ts +4 -1
  74. package/dist/context/tailwindcss.d.ts +1 -1
  75. package/dist/{precheck-30zNPRlI.js → context-BHxLe743.js} +484 -175
  76. package/dist/{precheck-CsFr1q2l.mjs → context-Mbzkek1q.mjs} +461 -159
  77. package/dist/core.js +15 -12
  78. package/dist/core.mjs +10 -7
  79. package/dist/css-macro.js +2 -2
  80. package/dist/css-macro.mjs +2 -2
  81. package/dist/{defaults-Boc26eel.js → defaults-CVcKbXBG.js} +6 -50
  82. package/dist/{defaults-DH0ZQRhy.mjs → defaults-ZElj1zKc.mjs} +7 -45
  83. package/dist/defaults.d.ts +1 -7
  84. package/dist/defaults.js +1 -2
  85. package/dist/defaults.mjs +2 -2
  86. package/dist/framework/index.d.ts +59 -0
  87. package/dist/framework.d.ts +1 -0
  88. package/dist/framework.js +198 -0
  89. package/dist/framework.mjs +180 -0
  90. package/dist/generator/index.d.ts +6 -7
  91. package/dist/generator/options.d.ts +3 -3
  92. package/dist/generator/types.d.ts +9 -10
  93. package/dist/generator-9rUz4Hcb.js +170 -0
  94. package/dist/generator-Dc4qaPmT.mjs +123 -0
  95. package/dist/generator.js +10 -16
  96. package/dist/generator.mjs +3 -3
  97. package/dist/{gulp-CxGZU0-v.js → gulp-B_sdP6dx.js} +80 -92
  98. package/dist/{gulp-BfZpaYSQ.mjs → gulp-uM36oIJs.mjs} +73 -85
  99. package/dist/gulp.js +1 -1
  100. package/dist/gulp.mjs +1 -1
  101. package/dist/{hmr-timing-DNjF8bWA.mjs → hmr-timing-BXMLsF4b.mjs} +1289 -909
  102. package/dist/{hmr-timing-DFR51wgo.js → hmr-timing-CogqkFaF.js} +1397 -939
  103. package/dist/index.d.ts +1 -0
  104. package/dist/index.js +20 -4
  105. package/dist/index.mjs +6 -5
  106. package/dist/js/fast-path/oxc.d.ts +4 -0
  107. package/dist/js/precheck.d.ts +1 -0
  108. package/dist/postcss.js +3 -4
  109. package/dist/postcss.mjs +2 -3
  110. package/dist/presets.js +10 -20
  111. package/dist/presets.mjs +9 -19
  112. package/dist/runtime-branch/create-branch.d.ts +2 -0
  113. package/dist/runtime-branch/generator-target-env.d.ts +4 -0
  114. package/dist/runtime-branch/index.d.ts +6 -0
  115. package/dist/runtime-branch/mini-program.d.ts +2 -0
  116. package/dist/runtime-branch/native-app.d.ts +2 -0
  117. package/dist/runtime-branch/platform.d.ts +6 -0
  118. package/dist/runtime-branch/tailwind-version.d.ts +2 -0
  119. package/dist/runtime-branch/types.d.ts +37 -0
  120. package/dist/runtime-branch/web.d.ts +2 -0
  121. package/dist/runtime-branch.d.ts +1 -0
  122. package/dist/{bundle-state-DU2ATDhw.js → source-candidate-scan-signature-2ybpptAK.js} +262 -20
  123. package/dist/{bundle-state-BxMNKjBV.mjs → source-candidate-scan-signature-Cvb5z1ha.mjs} +187 -17
  124. package/dist/tailwindcss/candidates.d.ts +7 -0
  125. package/dist/tailwindcss/index.d.ts +2 -2
  126. package/dist/tailwindcss/runtime/cache.d.ts +6 -6
  127. package/dist/tailwindcss/runtime-factory.d.ts +12 -0
  128. package/dist/tailwindcss/runtime-options.d.ts +8 -0
  129. package/dist/tailwindcss/runtime-types.d.ts +86 -0
  130. package/dist/tailwindcss/runtime.d.ts +6 -6
  131. package/dist/tailwindcss/source-scan.d.ts +1 -1
  132. package/dist/tailwindcss/targets.d.ts +2 -2
  133. package/dist/tailwindcss/v4/config.d.ts +3 -3
  134. package/dist/tailwindcss/v4/css-entries.d.ts +1 -0
  135. package/dist/tailwindcss/v4/css-sources.d.ts +4 -2
  136. package/dist/tailwindcss/v4/index.d.ts +1 -1
  137. package/dist/tailwindcss/v4/multi-runtime.d.ts +2 -0
  138. package/dist/tailwindcss/v4/runtime-factory.d.ts +15 -0
  139. package/dist/tailwindcss/v4/runtime-options.d.ts +2 -0
  140. package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -1
  141. package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
  142. package/dist/tailwindcss/v4-engine/generator/rpx-candidates.d.ts +3 -3
  143. package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +1 -1
  144. package/dist/tailwindcss/v4-engine/generator.d.ts +10 -3
  145. package/dist/tailwindcss/v4-engine/index.d.ts +1 -1
  146. package/dist/tailwindcss/v4-engine/miniprogram.d.ts +7 -1
  147. package/dist/tailwindcss/v4-engine/source.d.ts +23 -6
  148. package/dist/tailwindcss/v4-engine/types.d.ts +8 -9
  149. package/dist/tailwindcss/version.d.ts +1 -1
  150. package/dist/tailwindcss-DHIYcqXT.js +1523 -0
  151. package/dist/tailwindcss-wyUHrfil.mjs +1418 -0
  152. package/dist/{transform-CaVEBOuR.js → transform-CQVOgmzM.js} +45 -37
  153. package/dist/{transform-Cju08-aJ.mjs → transform-tExdt40m.mjs} +30 -22
  154. package/dist/typedoc.export.d.ts +1 -1
  155. package/dist/types/index.d.ts +16 -17
  156. package/dist/types/shared.d.ts +1 -1
  157. package/dist/types/{typedoc-tailwindcss-patch.d.ts → typedoc-tailwindcss-runtime.d.ts} +4 -10
  158. package/dist/types/user-defined-options/general.d.ts +8 -4
  159. package/dist/types/user-defined-options/important.d.ts +2 -2
  160. package/dist/uni-app-x/style-asset.d.ts +1 -0
  161. package/dist/{utils-Dolmt8EO.js → utils-BCa37Wqj.js} +2 -17
  162. package/dist/{utils-DsaS975I.mjs → utils-DodxWHGz.mjs} +2 -17
  163. package/dist/v4-engine-CF9zt4Cw.mjs +2396 -0
  164. package/dist/v4-engine-D4ubP7N5.js +2778 -0
  165. package/dist/{vite-BBGOjh9e.js → vite-CP0ylSxZ.js} +2887 -1683
  166. package/dist/{vite-CS5DE-HD.mjs → vite-CPO83EhA.mjs} +2753 -1548
  167. package/dist/vite.js +1 -1
  168. package/dist/vite.mjs +1 -1
  169. package/dist/weapp-tw-css-import-rewrite-loader.js +5741 -4396
  170. package/dist/weapp-tw-runtime-classset-loader.js +36 -0
  171. package/dist/webpack-Bsek8VhR.js +2094 -0
  172. package/dist/webpack-BzqhJ8yK.mjs +2082 -0
  173. package/dist/webpack.js +1 -1
  174. package/dist/webpack.mjs +1 -1
  175. package/package.json +11 -7
  176. package/dist/auto-CTp6wE5a.js +0 -33
  177. package/dist/auto-Cl8_hsG6.mjs +0 -22
  178. package/dist/bundlers/vite/incremental-runtime-class-set/v3-candidates.d.ts +0 -13
  179. package/dist/bundlers/vite/source-candidates/tailwind-v3-default-extractor.d.ts +0 -1
  180. package/dist/context/tailwindcss/rax.d.ts +0 -2
  181. package/dist/generator-Cb1Zp3Al.js +0 -92
  182. package/dist/generator-mvNFUvns.mjs +0 -67
  183. package/dist/tailwindcss/patcher-options.d.ts +0 -8
  184. package/dist/tailwindcss/patcher.d.ts +0 -12
  185. package/dist/tailwindcss/runtime-patch.d.ts +0 -5
  186. package/dist/tailwindcss/v3-engine/generator/cache-key.d.ts +0 -3
  187. package/dist/tailwindcss/v3-engine/generator/content.d.ts +0 -10
  188. package/dist/tailwindcss/v3-engine/generator/runtime-ready.d.ts +0 -2
  189. package/dist/tailwindcss/v3-engine/generator.d.ts +0 -19
  190. package/dist/tailwindcss/v3-engine/index.d.ts +0 -4
  191. package/dist/tailwindcss/v3-engine/miniprogram.d.ts +0 -4
  192. package/dist/tailwindcss/v3-engine/source.d.ts +0 -5
  193. package/dist/tailwindcss/v3-engine/types.d.ts +0 -61
  194. package/dist/tailwindcss/v4/multi-patcher.d.ts +0 -2
  195. package/dist/tailwindcss/v4/patcher-options.d.ts +0 -2
  196. package/dist/tailwindcss/v4/patcher.d.ts +0 -15
  197. package/dist/tailwindcss/v4-engine/tailwind-v3-compatibility.d.ts +0 -1
  198. package/dist/tailwindcss/v4-engine/tailwind-v3-default-colors.d.ts +0 -1
  199. package/dist/tailwindcss-CK84uGBp.mjs +0 -556
  200. package/dist/tailwindcss-Clpkz1oR.js +0 -613
  201. package/dist/v3-engine-CQE5JJNZ.js +0 -4639
  202. package/dist/v3-engine-DKBaKWGL.mjs +0 -4231
  203. package/dist/webpack-DIWrcpRo.js +0 -1066
  204. package/dist/webpack-SPcri_D8.mjs +0 -1054
  205. /package/dist/tailwindcss/{patcher-resolve.d.ts → runtime-resolve.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_precheck = require("./precheck-30zNPRlI.js");
3
- let tailwindcss_patch = require("tailwindcss-patch");
2
+ const require_context = require("./context-BHxLe743.js");
3
+ let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
4
4
  let magic_string = require("magic-string");
5
5
  magic_string = require_chunk.__toESM(magic_string);
6
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.prod.js
6
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.prod.js
7
7
  /**
8
- * @vue/shared v3.5.35
8
+ * @vue/shared v3.5.38
9
9
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
10
10
  * @license MIT
11
11
  **/
@@ -489,9 +489,9 @@ var require_shared_cjs_prod = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
489
489
  exports.toTypeString = toTypeString;
490
490
  }));
491
491
  //#endregion
492
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.js
492
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.js
493
493
  /**
494
- * @vue/shared v3.5.35
494
+ * @vue/shared v3.5.38
495
495
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
496
496
  * @license MIT
497
497
  **/
@@ -976,7 +976,7 @@ var require_shared_cjs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
976
976
  exports.toTypeString = toTypeString;
977
977
  }));
978
978
  //#endregion
979
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/index.js
979
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/index.js
980
980
  var require_shared = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
981
981
  if (process.env.NODE_ENV === "production") module.exports = require_shared_cjs_prod();
982
982
  else module.exports = require_shared_cjs();
@@ -3913,9 +3913,9 @@ var require_source_map = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
3913
3913
  exports.SourceNode = require_source_node().SourceNode;
3914
3914
  }));
3915
3915
  //#endregion
3916
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3916
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3917
3917
  /**
3918
- * @vue/compiler-core v3.5.35
3918
+ * @vue/compiler-core v3.5.38
3919
3919
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
3920
3920
  * @license MIT
3921
3921
  **/
@@ -5960,7 +5960,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5960
5960
  }
5961
5961
  },
5962
5962
  oncdata(start, end) {
5963
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
5963
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
5964
5964
  else emitError(1, start - 9);
5965
5965
  },
5966
5966
  onprocessinginstruction(start) {
@@ -6474,6 +6474,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6474
6474
  imports: [],
6475
6475
  cached: [],
6476
6476
  constantCache: /* @__PURE__ */ new WeakMap(),
6477
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
6477
6478
  temps: 0,
6478
6479
  identifiers: /* @__PURE__ */ Object.create(null),
6479
6480
  scopes: {
@@ -7225,7 +7226,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7225
7226
  if (dir.type === 7 && dir.name !== "for") {
7226
7227
  const exp = dir.exp;
7227
7228
  const arg = dir.arg;
7228
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7229
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7229
7230
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
7230
7231
  }
7231
7232
  }
@@ -7476,7 +7477,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7476
7477
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
7477
7478
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
7478
7479
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
7479
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7480
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
7481
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7482
+ if (memo) context.vForMemoKeyedNodes.add(node);
7483
+ }
7480
7484
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
7481
7485
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
7482
7486
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -8669,9 +8673,9 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
8669
8673
  exports.warnDeprecation = warnDeprecation;
8670
8674
  }));
8671
8675
  //#endregion
8672
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8676
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8673
8677
  /**
8674
- * @vue/compiler-core v3.5.35
8678
+ * @vue/compiler-core v3.5.38
8675
8679
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8676
8680
  * @license MIT
8677
8681
  **/
@@ -10720,7 +10724,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
10720
10724
  }
10721
10725
  },
10722
10726
  oncdata(start, end) {
10723
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
10727
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
10724
10728
  else emitError(1, start - 9);
10725
10729
  },
10726
10730
  onprocessinginstruction(start) {
@@ -11251,6 +11255,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
11251
11255
  imports: [],
11252
11256
  cached: [],
11253
11257
  constantCache: /* @__PURE__ */ new WeakMap(),
11258
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
11254
11259
  temps: 0,
11255
11260
  identifiers: /* @__PURE__ */ Object.create(null),
11256
11261
  scopes: {
@@ -12017,7 +12022,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12017
12022
  if (dir.type === 7 && dir.name !== "for") {
12018
12023
  const exp = dir.exp;
12019
12024
  const arg = dir.arg;
12020
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12025
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12021
12026
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
12022
12027
  }
12023
12028
  }
@@ -12275,7 +12280,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12275
12280
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
12276
12281
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
12277
12282
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
12278
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12283
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
12284
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12285
+ if (memo) context.vForMemoKeyedNodes.add(node);
12286
+ }
12279
12287
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
12280
12288
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
12281
12289
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -13482,15 +13490,15 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
13482
13490
  exports.warnDeprecation = warnDeprecation;
13483
13491
  }));
13484
13492
  //#endregion
13485
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/index.js
13493
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/index.js
13486
13494
  var require_compiler_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
13487
13495
  if (process.env.NODE_ENV === "production") module.exports = require_compiler_core_cjs_prod();
13488
13496
  else module.exports = require_compiler_core_cjs();
13489
13497
  }));
13490
13498
  //#endregion
13491
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13499
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13492
13500
  /**
13493
- * @vue/compiler-dom v3.5.35
13501
+ * @vue/compiler-dom v3.5.38
13494
13502
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13495
13503
  * @license MIT
13496
13504
  **/
@@ -13923,9 +13931,9 @@ var require_compiler_dom_cjs_prod = /* @__PURE__ */ require_chunk.__commonJSMin(
13923
13931
  });
13924
13932
  }));
13925
13933
  //#endregion
13926
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13934
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13927
13935
  /**
13928
- * @vue/compiler-dom v3.5.35
13936
+ * @vue/compiler-dom v3.5.38
13929
13937
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13930
13938
  * @license MIT
13931
13939
  **/
@@ -14608,7 +14616,7 @@ function createAlias(fileId, utility, index) {
14608
14616
  }
14609
14617
  function isRuntimeCandidate(candidate, runtimeSet) {
14610
14618
  if (!runtimeSet || runtimeSet.size === 0) return false;
14611
- return runtimeSet.has(candidate) || runtimeSet.has(require_precheck.replaceWxml(candidate));
14619
+ return runtimeSet.has(candidate) || runtimeSet.has(require_context.replaceWxml(candidate));
14612
14620
  }
14613
14621
  function shouldEnableComponentLocalStyle(id) {
14614
14622
  return COMPONENT_RE.test(id);
@@ -14620,8 +14628,8 @@ var UniAppXComponentLocalStyleCollector = class {
14620
14628
  constructor(fileId, runtimeSet) {
14621
14629
  this.fileId = fileId;
14622
14630
  this.runtimeSet = runtimeSet;
14623
- require_precheck._defineProperty(this, "aliasByUtility", /* @__PURE__ */ new Map());
14624
- require_precheck._defineProperty(this, "aliasByLookup", /* @__PURE__ */ new Map());
14631
+ require_context._defineProperty(this, "aliasByUtility", /* @__PURE__ */ new Map());
14632
+ require_context._defineProperty(this, "aliasByLookup", /* @__PURE__ */ new Map());
14625
14633
  }
14626
14634
  ensureAlias(utility) {
14627
14635
  const cached = this.aliasByUtility.get(utility);
@@ -14629,11 +14637,11 @@ var UniAppXComponentLocalStyleCollector = class {
14629
14637
  const alias = createAlias(this.fileId, utility, this.aliasByUtility.size);
14630
14638
  this.aliasByUtility.set(utility, alias);
14631
14639
  this.aliasByLookup.set(utility, alias);
14632
- this.aliasByLookup.set(require_precheck.replaceWxml(utility), alias);
14640
+ this.aliasByLookup.set(require_context.replaceWxml(utility), alias);
14633
14641
  return alias;
14634
14642
  }
14635
14643
  rewriteLiteral(literal, shouldInclude) {
14636
- const candidates = (0, tailwindcss_patch.splitCandidateTokens)(literal);
14644
+ const candidates = (0, _tailwindcss_mangle_engine.splitCandidateTokens)(literal);
14637
14645
  if (candidates.length === 0) return literal;
14638
14646
  let rewritten = literal;
14639
14647
  for (const candidate of candidates) {
@@ -14648,14 +14656,14 @@ var UniAppXComponentLocalStyleCollector = class {
14648
14656
  collectRuntimeClasses(rawSource, options = {}) {
14649
14657
  const wrapped = options.wrapExpression ? `${EXPRESSION_WRAPPER_PREFIX}${rawSource}${EXPRESSION_WRAPPER_SUFFIX}` : rawSource;
14650
14658
  try {
14651
- const analysis = require_precheck.analyzeSource(require_precheck.babelParse(wrapped, {
14659
+ const analysis = require_context.analyzeSource(require_context.babelParse(wrapped, {
14652
14660
  plugins: ["typescript"],
14653
14661
  sourceType: options.wrapExpression ? "module" : "unambiguous"
14654
14662
  }), {}, void 0, false);
14655
14663
  for (const path of analysis.targetPaths) {
14656
14664
  const { literal } = extractLiteralValue(path);
14657
- const candidates = (0, tailwindcss_patch.splitCandidateTokens)(literal);
14658
- const classContext = options.wrapExpression || require_precheck.isClassContextLiteralPath(path);
14665
+ const candidates = (0, _tailwindcss_mangle_engine.splitCandidateTokens)(literal);
14666
+ const classContext = options.wrapExpression || require_context.isClassContextLiteralPath(path);
14659
14667
  for (const candidate of candidates) {
14660
14668
  if (!candidate || !classContext && !isRuntimeCandidate(candidate, this.runtimeSet)) continue;
14661
14669
  if (isRuntimeCandidate(candidate, this.runtimeSet)) this.ensureAlias(candidate);
@@ -14667,15 +14675,15 @@ var UniAppXComponentLocalStyleCollector = class {
14667
14675
  if (this.aliasByLookup.size === 0) return rawSource;
14668
14676
  const wrapped = options.wrapExpression ? `${EXPRESSION_WRAPPER_PREFIX}${rawSource}${EXPRESSION_WRAPPER_SUFFIX}` : rawSource;
14669
14677
  try {
14670
- const analysis = require_precheck.analyzeSource(require_precheck.babelParse(wrapped, {
14678
+ const analysis = require_context.analyzeSource(require_context.babelParse(wrapped, {
14671
14679
  plugins: ["typescript"],
14672
14680
  sourceType: options.wrapExpression ? "module" : "unambiguous"
14673
14681
  }), {}, void 0, false);
14674
14682
  if (analysis.targetPaths.length === 0) return rawSource;
14675
- const updater = new require_precheck.JsTokenUpdater();
14683
+ const updater = new require_context.JsTokenUpdater();
14676
14684
  for (const path of analysis.targetPaths) {
14677
14685
  const { literal, offset } = extractLiteralValue(path);
14678
- const candidates = (0, tailwindcss_patch.splitCandidateTokens)(literal);
14686
+ const candidates = (0, _tailwindcss_mangle_engine.splitCandidateTokens)(literal);
14679
14687
  if (candidates.length === 0) continue;
14680
14688
  let rewritten = literal;
14681
14689
  let mutated = false;
@@ -14735,7 +14743,7 @@ function updateStaticAttribute(ms, prop, offset, content = prop.value?.content)
14735
14743
  if (!prop.value) return;
14736
14744
  const start = offset + prop.value.loc.start.offset + 1;
14737
14745
  const end = offset + prop.value.loc.end.offset - 1;
14738
- if (start < end) ms.update(start, end, require_precheck.replaceWxml(content ?? ""));
14746
+ if (start < end) ms.update(start, end, require_context.replaceWxml(content ?? ""));
14739
14747
  }
14740
14748
  function updateStaticAttributeWithLocalStyle(ms, prop, offset, collector, content = prop.value?.content) {
14741
14749
  if (!prop.value) return;
@@ -14749,7 +14757,7 @@ function updateDirectiveExpression(ms, prop, offset, jsHandler, runtimeSet) {
14749
14757
  const start = offset + prop.exp.loc.start.offset;
14750
14758
  const end = offset + prop.exp.loc.end.offset;
14751
14759
  if (start >= end) return;
14752
- const generated = require_precheck.generateCode(expression, {
14760
+ const generated = require_context.generateCode(expression, {
14753
14761
  jsHandler,
14754
14762
  runtimeSet,
14755
14763
  wrapExpression: true
@@ -14763,7 +14771,7 @@ function updateDirectiveExpressionWithLocalStyle(ms, prop, offset, jsHandler, co
14763
14771
  const end = offset + prop.exp.loc.end.offset;
14764
14772
  if (start >= end) return;
14765
14773
  collector.collectRuntimeClasses(expression, { wrapExpression: true });
14766
- const generated = require_precheck.generateCode(expression, {
14774
+ const generated = require_context.generateCode(expression, {
14767
14775
  jsHandler,
14768
14776
  runtimeSet,
14769
14777
  wrapExpression: true
@@ -14823,7 +14831,7 @@ function parseSfc(code) {
14823
14831
  function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
14824
14832
  if (!UVUE_NVUE_RE.test(id)) return;
14825
14833
  const { customAttributesEntities, disabledDefaultTemplateHandler = false } = options;
14826
- const matchCustomAttribute = require_precheck.createAttributeMatcher(customAttributesEntities);
14834
+ const matchCustomAttribute = require_context.createAttributeMatcher(customAttributesEntities);
14827
14835
  const ms = new magic_string.default(code);
14828
14836
  const descriptor = parseSfc(code);
14829
14837
  const localStyleCollector = shouldEnableLocalStyle(id, options) ? new UniAppXComponentLocalStyleCollector(id, runtimeSet) : void 0;
@@ -1,14 +1,14 @@
1
- import { c as createAttributeMatcher, d as _defineProperty, f as isClassContextLiteralPath, l as analyzeSource, m as babelParse, p as replaceWxml, s as generateCode, u as JsTokenUpdater } from "./precheck-CsFr1q2l.mjs";
1
+ import { d as _defineProperty, f as isClassContextLiteralPath, l as analyzeSource, m as babelParse, o as generateCode, p as replaceWxml, s as createAttributeMatcher, u as JsTokenUpdater } from "./context-Mbzkek1q.mjs";
2
2
  import { createRequire } from "node:module";
3
- import { splitCandidateTokens } from "tailwindcss-patch";
3
+ import { splitCandidateTokens } from "@tailwindcss-mangle/engine";
4
4
  import MagicString from "magic-string";
5
5
  //#region \0rolldown/runtime.js
6
6
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
7
7
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
8
8
  //#endregion
9
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.prod.js
9
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.prod.js
10
10
  /**
11
- * @vue/shared v3.5.35
11
+ * @vue/shared v3.5.38
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
14
  **/
@@ -492,9 +492,9 @@ var require_shared_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) => {
492
492
  exports.toTypeString = toTypeString;
493
493
  }));
494
494
  //#endregion
495
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/dist/shared.cjs.js
495
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/dist/shared.cjs.js
496
496
  /**
497
- * @vue/shared v3.5.35
497
+ * @vue/shared v3.5.38
498
498
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
499
499
  * @license MIT
500
500
  **/
@@ -979,7 +979,7 @@ var require_shared_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
979
979
  exports.toTypeString = toTypeString;
980
980
  }));
981
981
  //#endregion
982
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.35/node_modules/@vue/shared/index.js
982
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.38/node_modules/@vue/shared/index.js
983
983
  var require_shared = /* @__PURE__ */ __commonJSMin(((exports, module) => {
984
984
  if (process.env.NODE_ENV === "production") module.exports = require_shared_cjs_prod();
985
985
  else module.exports = require_shared_cjs();
@@ -3916,9 +3916,9 @@ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
3916
3916
  exports.SourceNode = require_source_node().SourceNode;
3917
3917
  }));
3918
3918
  //#endregion
3919
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3919
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js
3920
3920
  /**
3921
- * @vue/compiler-core v3.5.35
3921
+ * @vue/compiler-core v3.5.38
3922
3922
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
3923
3923
  * @license MIT
3924
3924
  **/
@@ -5963,7 +5963,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5963
5963
  }
5964
5964
  },
5965
5965
  oncdata(start, end) {
5966
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
5966
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
5967
5967
  else emitError(1, start - 9);
5968
5968
  },
5969
5969
  onprocessinginstruction(start) {
@@ -6477,6 +6477,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6477
6477
  imports: [],
6478
6478
  cached: [],
6479
6479
  constantCache: /* @__PURE__ */ new WeakMap(),
6480
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
6480
6481
  temps: 0,
6481
6482
  identifiers: /* @__PURE__ */ Object.create(null),
6482
6483
  scopes: {
@@ -7228,7 +7229,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7228
7229
  if (dir.type === 7 && dir.name !== "for") {
7229
7230
  const exp = dir.exp;
7230
7231
  const arg = dir.arg;
7231
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7232
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
7232
7233
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
7233
7234
  }
7234
7235
  }
@@ -7479,7 +7480,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
7479
7480
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
7480
7481
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
7481
7482
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
7482
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7483
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
7484
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
7485
+ if (memo) context.vForMemoKeyedNodes.add(node);
7486
+ }
7483
7487
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
7484
7488
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
7485
7489
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -8672,9 +8676,9 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
8672
8676
  exports.warnDeprecation = warnDeprecation;
8673
8677
  }));
8674
8678
  //#endregion
8675
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8679
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js
8676
8680
  /**
8677
- * @vue/compiler-core v3.5.35
8681
+ * @vue/compiler-core v3.5.38
8678
8682
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8679
8683
  * @license MIT
8680
8684
  **/
@@ -10723,7 +10727,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
10723
10727
  }
10724
10728
  },
10725
10729
  oncdata(start, end) {
10726
- if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
10730
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
10727
10731
  else emitError(1, start - 9);
10728
10732
  },
10729
10733
  onprocessinginstruction(start) {
@@ -11254,6 +11258,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
11254
11258
  imports: [],
11255
11259
  cached: [],
11256
11260
  constantCache: /* @__PURE__ */ new WeakMap(),
11261
+ vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
11257
11262
  temps: 0,
11258
11263
  identifiers: /* @__PURE__ */ Object.create(null),
11259
11264
  scopes: {
@@ -12020,7 +12025,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12020
12025
  if (dir.type === 7 && dir.name !== "for") {
12021
12026
  const exp = dir.exp;
12022
12027
  const arg = dir.arg;
12023
- if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12028
+ if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
12024
12029
  if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
12025
12030
  }
12026
12031
  }
@@ -12278,7 +12283,10 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
12278
12283
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
12279
12284
  const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
12280
12285
  if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
12281
- if ((isTemplate || memo) && keyProperty && isDirKey) keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12286
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
12287
+ keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
12288
+ if (memo) context.vForMemoKeyedNodes.add(node);
12289
+ }
12282
12290
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
12283
12291
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
12284
12292
  forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
@@ -13485,15 +13493,15 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
13485
13493
  exports.warnDeprecation = warnDeprecation;
13486
13494
  }));
13487
13495
  //#endregion
13488
- //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/index.js
13496
+ //#region ../../node_modules/.pnpm/@vue+compiler-core@3.5.38/node_modules/@vue/compiler-core/index.js
13489
13497
  var require_compiler_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13490
13498
  if (process.env.NODE_ENV === "production") module.exports = require_compiler_core_cjs_prod();
13491
13499
  else module.exports = require_compiler_core_cjs();
13492
13500
  }));
13493
13501
  //#endregion
13494
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13502
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js
13495
13503
  /**
13496
- * @vue/compiler-dom v3.5.35
13504
+ * @vue/compiler-dom v3.5.38
13497
13505
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13498
13506
  * @license MIT
13499
13507
  **/
@@ -13926,9 +13934,9 @@ var require_compiler_dom_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) =>
13926
13934
  });
13927
13935
  }));
13928
13936
  //#endregion
13929
- //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.35/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13937
+ //#region ../../node_modules/.pnpm/@vue+compiler-dom@3.5.38/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js
13930
13938
  /**
13931
- * @vue/compiler-dom v3.5.35
13939
+ * @vue/compiler-dom v3.5.38
13932
13940
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13933
13941
  * @license MIT
13934
13942
  **/
@@ -1,3 +1,3 @@
1
1
  export type { WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult, WeappTailwindcssGenerator, WeappTailwindcssGeneratorTarget, WeappTailwindcssPostcssPluginOptions, } from './index';
2
- export type { ApplyOptions, CacheOptions, ExtractOptions, TailwindCssOptions, TailwindCssPatchOptions, TailwindV2Options, TailwindV3Options, TailwindV4Options, } from './types/typedoc-tailwindcss-patch';
2
+ export type { ApplyOptions, CacheOptions, ExtractOptions, TailwindCssOptions, TailwindCssRuntimeOptions, TailwindV4Options, } from './types/typedoc-tailwindcss-runtime';
3
3
  export type { UserDefinedOptions } from './types/user-defined-options';
@@ -1,19 +1,18 @@
1
1
  import type { ParseError, ParserOptions } from '@babel/parser';
2
2
  import type { CssPreflightOptions, Document, IStyleHandlerOptions, Result as PostcssResult, Root } from '@weapp-tailwindcss/postcss';
3
3
  import type { SourceMap } from 'magic-string';
4
- import type { ILengthUnitsPatchOptions, TailwindcssPatcher } from 'tailwindcss-patch';
5
4
  import type { ICreateCacheReturnType } from '../cache';
6
5
  import type { ItemOrItemArray } from './base';
7
6
  import type { AppType, IArbitraryValues, ICustomAttributesEntities } from './shared';
8
7
  import type { UniAppXComponentLocalStylesOptions, UniAppXOptions as UniAppXUserDefinedOptions, UserDefinedOptions } from './user-defined-options';
9
- type AsyncableMethod<T> = T extends (...args: infer A) => infer R ? (...args: A) => Promise<Awaited<R>> | Awaited<R> : never;
10
- export type { UniAppXComponentLocalStylesOptions, UniAppXUserDefinedOptions, UserDefinedOptions, };
8
+ import type { LengthUnitsRuntimeOptions, TailwindContentTokenReport, TailwindcssExtractOptions, TailwindcssExtractResult, TailwindCssOptions, TailwindCssRuntimeOptions, TailwindPackageInfo } from '../tailwindcss/runtime-types';
9
+ export type { TailwindCssOptions, TailwindCssRuntimeOptions, UniAppXComponentLocalStylesOptions, UniAppXUserDefinedOptions, UserDefinedOptions, };
11
10
  export type { CssPreflightOptions, IStyleHandlerOptions, ItemOrItemArray };
12
11
  export type { AppType, IArbitraryValues, ICustomAttributes, ICustomAttributesEntities, IUnocssCompatibilityOptions } from './shared';
13
12
  export type RequiredDefined<T> = {
14
13
  [K in keyof T]-?: Exclude<T[K], undefined>;
15
14
  };
16
- type InternalUserDefinedOptionsBase = RequiredDefined<Omit<UserDefinedOptions, 'supportCustomLengthUnitsPatch' | 'customReplaceDictionary' | 'cache' | 'twPatcher' | 'refreshTailwindcssPatcher' | 'templateHandler' | 'styleHandler' | 'jsHandler'>>;
15
+ type InternalUserDefinedOptionsBase = RequiredDefined<Omit<UserDefinedOptions, 'supportCustomLengthUnits' | 'customReplaceDictionary' | 'cache' | 'templateHandler' | 'styleHandler' | 'jsHandler'>>;
17
16
  export interface LinkedJsModuleResult {
18
17
  code: string;
19
18
  }
@@ -23,15 +22,14 @@ export interface JsHandlerResult {
23
22
  error?: ParseError;
24
23
  linked?: Record<string, LinkedJsModuleResult>;
25
24
  }
26
- export interface TailwindcssPatcherLike {
27
- packageInfo: TailwindcssPatcher['packageInfo'];
28
- majorVersion?: TailwindcssPatcher['majorVersion'] | undefined;
29
- patch?: TailwindcssPatcher['patch'] | undefined;
30
- getClassSet: AsyncableMethod<TailwindcssPatcher['getClassSet']>;
31
- getClassSetSync?: TailwindcssPatcher['getClassSetSync'] | undefined;
32
- extract: TailwindcssPatcher['extract'];
33
- collectContentTokens?: TailwindcssPatcher['collectContentTokens'] | undefined;
34
- options?: TailwindcssPatcher['options'] | undefined;
25
+ export interface TailwindcssRuntimeLike {
26
+ packageInfo: TailwindPackageInfo;
27
+ majorVersion?: number | undefined;
28
+ getClassSet: () => Promise<Set<string>> | Set<string>;
29
+ getClassSetSync?: (() => Set<string>) | undefined;
30
+ extract: (options?: TailwindcssExtractOptions) => Promise<TailwindcssExtractResult> | TailwindcssExtractResult;
31
+ collectContentTokens?: (() => Promise<TailwindContentTokenReport> | TailwindContentTokenReport) | undefined;
32
+ options?: TailwindCssRuntimeOptions | undefined;
35
33
  }
36
34
  export type BabelParserOptions = ParserOptions & {
37
35
  cache?: boolean | undefined;
@@ -39,7 +37,7 @@ export type BabelParserOptions = ParserOptions & {
39
37
  cacheMaxEntries?: number | undefined;
40
38
  cacheMaxSourceLength?: number | undefined;
41
39
  };
42
- export interface RefreshTailwindcssPatcherOptions {
40
+ export interface RefreshTailwindcssRuntimeOptions {
43
41
  clearCache?: boolean | undefined;
44
42
  }
45
43
  export interface IJsHandlerOptions {
@@ -54,6 +52,7 @@ export interface IJsHandlerOptions {
54
52
  alwaysEscape?: boolean | undefined;
55
53
  unescapeUnicode?: boolean | undefined;
56
54
  babelParserOptions?: BabelParserOptions | undefined;
55
+ experimentalJsFastPath?: boolean | 'oxc' | undefined;
57
56
  ignoreTaggedTemplateExpressionIdentifiers?: (string | RegExp)[] | undefined;
58
57
  ignoreCallExpressionIdentifiers?: (string | RegExp)[] | undefined;
59
58
  uniAppX?: boolean | undefined;
@@ -81,15 +80,15 @@ export interface ITemplateHandlerOptions extends ICommonReplaceOptions {
81
80
  wrapExpression?: boolean | undefined;
82
81
  }
83
82
  export interface InternalUserDefinedOptions extends InternalUserDefinedOptionsBase {
84
- supportCustomLengthUnitsPatch: ILengthUnitsPatchOptions | boolean;
83
+ supportCustomLengthUnits: LengthUnitsRuntimeOptions | boolean;
85
84
  templateHandler: (rawSource: string, options?: ITemplateHandlerOptions) => Promise<string>;
86
85
  styleHandler: (rawSource: string, options?: IStyleHandlerOptions) => Promise<PostcssResult<Root | Document>>;
87
86
  jsHandler: JsHandler;
88
87
  escapeMap: Record<string, string>;
89
88
  customReplaceDictionary: Record<string, string>;
90
89
  cache: ICreateCacheReturnType;
91
- twPatcher: TailwindcssPatcherLike;
92
- refreshTailwindcssPatcher: (options?: RefreshTailwindcssPatcherOptions) => Promise<TailwindcssPatcherLike>;
90
+ tailwindRuntime: TailwindcssRuntimeLike;
91
+ refreshTailwindcssRuntime: (options?: RefreshTailwindcssRuntimeOptions) => Promise<TailwindcssRuntimeLike>;
93
92
  }
94
93
  export type InternalPostcssOptions = Pick<UserDefinedOptions, 'cssMatcher' | 'mainCssChunkMatcher' | 'cssPreflight' | 'cssPreflightRange' | 'disabled'>;
95
94
  export interface IBaseWebpackPlugin {
@@ -1,5 +1,5 @@
1
1
  import type { ItemOrItemArray } from './base';
2
- export type AppType = 'uni-app' | 'uni-app-vite' | 'uni-app-x' | 'taro' | 'remax' | 'rax' | 'native' | 'kbone' | 'mpx' | 'weapp-vite';
2
+ export type AppType = 'uni-app' | 'uni-app-vite' | 'uni-app-x' | 'taro' | 'remax' | 'native' | 'kbone' | 'mpx' | 'weapp-vite';
3
3
  export type ICustomAttributes = Record<string, ItemOrItemArray<string | RegExp>> | Map<string | RegExp, ItemOrItemArray<string | RegExp>>;
4
4
  export type ICustomAttributesEntities = [string | RegExp, ItemOrItemArray<string | RegExp>][];
5
5
  export interface IArbitraryValues {
@@ -1,7 +1,7 @@
1
1
  import type { PackageResolvingOptions } from 'local-pkg';
2
- import type { ILengthUnitsPatchOptions } from 'tailwindcss-patch';
3
2
  import type { TailwindSourceEntry as SourceEntry } from '../tailwindcss/source-scan';
4
3
  import type { TailwindV4SourceOptions } from '../tailwindcss/v4-engine';
4
+ import type { LengthUnitsRuntimeOptions } from '../tailwindcss/runtime-types';
5
5
  type TailwindV4CssSource = NonNullable<TailwindV4SourceOptions['cssSources']>[number];
6
6
  export type CacheStrategy = 'merge' | 'overwrite';
7
7
  export type CacheDriver = 'file' | 'memory' | 'noop';
@@ -23,7 +23,7 @@ export interface ExtractOptions {
23
23
  export interface ExposeContextOptions {
24
24
  refProperty?: string;
25
25
  }
26
- export interface ExtendLengthUnitsOptions extends Partial<ILengthUnitsPatchOptions> {
26
+ export interface ExtendLengthUnitsOptions extends Partial<LengthUnitsRuntimeOptions> {
27
27
  enabled?: boolean;
28
28
  }
29
29
  export interface ApplyOptions {
@@ -36,10 +36,6 @@ export interface TailwindRuntimeOptionsBase {
36
36
  cwd?: string;
37
37
  postcssPlugin?: string;
38
38
  }
39
- export interface TailwindV2Options extends TailwindRuntimeOptionsBase {
40
- }
41
- export interface TailwindV3Options extends TailwindRuntimeOptionsBase {
42
- }
43
39
  export interface TailwindV4Options {
44
40
  base?: string;
45
41
  css?: string;
@@ -51,14 +47,12 @@ export interface TailwindV4Options {
51
47
  } | undefined;
52
48
  }
53
49
  export interface TailwindCssOptions extends TailwindRuntimeOptionsBase {
54
- version?: 2 | 3 | 4;
50
+ version?: 4;
55
51
  packageName?: string;
56
52
  resolve?: PackageResolvingOptions;
57
- v2?: TailwindV2Options;
58
- v3?: TailwindV3Options;
59
53
  v4?: TailwindV4Options;
60
54
  }
61
- export interface TailwindCssPatchOptions {
55
+ export interface TailwindCssRuntimeOptions {
62
56
  projectRoot?: string;
63
57
  tailwindcss?: TailwindCssOptions;
64
58
  apply?: ApplyOptions;
@@ -1,21 +1,22 @@
1
1
  import type { ParserOptions } from '@babel/parser';
2
- import type { LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
3
- import type { ILengthUnitsPatchOptions, TailwindCssPatchOptions } from 'tailwindcss-patch';
2
+ import type { CssOptions, LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
4
3
  import type { ICreateCacheReturnType } from '../../cache';
5
4
  import type { WeappTailwindcssGeneratorUserOptions } from '../../generator';
6
5
  import type { AppType, IArbitraryValues, IUnocssCompatibilityOptions } from '../shared';
6
+ import type { LengthUnitsRuntimeOptions, TailwindCssRuntimeOptions } from '../../tailwindcss/runtime-types';
7
7
  export interface CssSourceTraceOptions {
8
8
  root?: string | undefined;
9
9
  }
10
10
  export type CssSourceTraceUserOptions = boolean | CssSourceTraceOptions;
11
11
  export interface UserDefinedOptionsGeneralPart {
12
- supportCustomLengthUnitsPatch?: ILengthUnitsPatchOptions | boolean | undefined;
12
+ supportCustomLengthUnits?: LengthUnitsRuntimeOptions | boolean | undefined;
13
13
  appType?: AppType | undefined;
14
14
  arbitraryValues?: IArbitraryValues | undefined;
15
15
  unocss?: boolean | IUnocssCompatibilityOptions | undefined;
16
16
  jsPreserveClass?: ((keyword: string) => boolean | undefined) | undefined;
17
17
  jsArbitraryValueFallback?: boolean | 'auto' | undefined;
18
18
  replaceRuntimePackages?: boolean | Record<string, string> | undefined;
19
+ rewriteCssImports?: boolean | undefined;
19
20
  generator?: WeappTailwindcssGeneratorUserOptions | undefined;
20
21
  cssSourceTrace?: CssSourceTraceUserOptions | undefined;
21
22
  disabledDefaultTemplateHandler?: boolean | undefined;
@@ -28,10 +29,13 @@ export interface UserDefinedOptionsGeneralPart {
28
29
  cacheMaxEntries?: number | undefined;
29
30
  cacheMaxSourceLength?: number | undefined;
30
31
  }) | undefined;
32
+ experimentalJsFastPath?: boolean | 'oxc' | undefined;
31
33
  cssChildCombinatorReplaceValue?: string | string[] | undefined;
32
34
  postcssOptions?: LoadedPostcssOptions | undefined;
35
+ cssOptions?: CssOptions | undefined;
33
36
  cssRemoveHoverPseudoClass?: boolean | undefined;
34
37
  cssRemoveProperty?: boolean | undefined;
35
- tailwindcssPatcherOptions?: TailwindCssPatchOptions | undefined;
38
+ tailwindcssV4GradientFallback?: boolean | undefined;
39
+ tailwindcssRuntimeOptions?: TailwindCssRuntimeOptions | undefined;
36
40
  logLevel?: 'info' | 'warn' | 'error' | 'silent' | undefined;
37
41
  }
@@ -1,6 +1,6 @@
1
1
  import type { CssCalcOptions, CssPreflightOptions, IStyleHandlerOptions, PresetEnvOptions, Px2rpxOptions, Rem2rpxOptions, UniAppXUnsupportedMode, UnitConversionOptions, UnitsToPxOptions, WeappAutoprefixerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { TailwindCssPatchOptions } from 'tailwindcss-patch';
3
2
  import type { ICustomAttributes } from '../shared';
3
+ import type { TailwindCssRuntimeOptions } from '../../tailwindcss/runtime-types';
4
4
  export interface UniAppXComponentLocalStylesOptions {
5
5
  enabled?: boolean | undefined;
6
6
  onlyWhenStyleIsolationVersion2?: boolean | undefined;
@@ -34,7 +34,7 @@ export interface UserDefinedOptionsImportantPart {
34
34
  cssPresetEnv?: PresetEnvOptions | undefined;
35
35
  atRules?: IStyleHandlerOptions['atRules'] | undefined;
36
36
  autoprefixer?: WeappAutoprefixerOptions | undefined;
37
- tailwindcss?: TailwindCssPatchOptions['tailwindcss'] | undefined;
37
+ tailwindcss?: TailwindCssRuntimeOptions['tailwindcss'] | undefined;
38
38
  cssEntries?: string[] | undefined;
39
39
  uniAppX?: boolean | UniAppXOptions | undefined;
40
40
  uniAppXCssTarget?: IStyleHandlerOptions['uniAppXCssTarget'] | undefined;