weapp-tailwindcss 5.0.12 → 5.0.13

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 (99) hide show
  1. package/dist/{bundle-state-DU2ATDhw.js → bundle-state-CKWeTEhv.js} +2 -2
  2. package/dist/{bundle-state-BxMNKjBV.mjs → bundle-state-zQ2MrDdi.mjs} +1 -1
  3. package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +7 -2
  4. package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -0
  5. package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +3 -0
  6. package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +7 -0
  7. package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +4 -0
  8. package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +15 -0
  9. package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +12 -0
  10. package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +22 -0
  11. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +5 -22
  12. package/dist/bundlers/shared/generator-css/types.d.ts +2 -0
  13. package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
  14. package/dist/bundlers/vite/css-memory.d.ts +27 -0
  15. package/dist/bundlers/vite/generate-bundle/bundle-file-names.d.ts +2 -0
  16. package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +8 -0
  17. package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +4 -0
  18. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +5 -0
  19. package/dist/bundlers/vite/generate-bundle/css-output.d.ts +8 -7
  20. package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +7 -0
  21. package/dist/bundlers/vite/generate-bundle/finalize.d.ts +58 -0
  22. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +31 -0
  23. package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +77 -0
  24. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +53 -0
  25. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
  26. package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +4 -0
  27. package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +21 -0
  28. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -1
  29. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +29 -0
  30. package/dist/bundlers/vite/generate-bundle/timing.d.ts +1 -0
  31. package/dist/bundlers/vite/generate-bundle/types.d.ts +2 -0
  32. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +20 -0
  33. package/dist/bundlers/vite/generate-bundle/vite-css-cache.d.ts +6 -0
  34. package/dist/bundlers/vite/generate-bundle.d.ts +2 -1
  35. package/dist/bundlers/vite/hot-css-modules.d.ts +5 -0
  36. package/dist/bundlers/vite/map-cache.d.ts +2 -0
  37. package/dist/bundlers/vite/processed-css-assets.d.ts +16 -0
  38. package/dist/bundlers/vite/resolve-app-type.d.ts +1 -2
  39. package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +13 -0
  40. package/dist/bundlers/vite/source-candidates.d.ts +3 -0
  41. package/dist/bundlers/vite/source-scan/css-entries.d.ts +1 -0
  42. package/dist/bundlers/vite/source-scan.d.ts +1 -1
  43. package/dist/bundlers/vite/weapp-vite-config.d.ts +3 -1
  44. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +1 -0
  45. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +2 -0
  46. package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +5 -0
  47. package/dist/cli.js +2 -2
  48. package/dist/cli.mjs +1 -1
  49. package/dist/core.js +1 -1
  50. package/dist/core.mjs +1 -1
  51. package/dist/css-macro.js +1 -1
  52. package/dist/css-macro.mjs +1 -1
  53. package/dist/{defaults-DH0ZQRhy.mjs → defaults-Bqx18S1f.mjs} +2 -35
  54. package/dist/{defaults-Boc26eel.js → defaults-C_J_kBpw.js} +2 -35
  55. package/dist/defaults.js +1 -1
  56. package/dist/defaults.mjs +1 -1
  57. package/dist/framework/index.d.ts +59 -0
  58. package/dist/framework.d.ts +1 -0
  59. package/dist/framework.js +198 -0
  60. package/dist/framework.mjs +180 -0
  61. package/dist/{generator-Cb1Zp3Al.js → generator-CzpArpCL.js} +1 -1
  62. package/dist/{generator-mvNFUvns.mjs → generator-ITLd7PTl.mjs} +1 -1
  63. package/dist/generator.js +2 -2
  64. package/dist/generator.mjs +2 -2
  65. package/dist/{gulp-BfZpaYSQ.mjs → gulp-DfOQERcV.mjs} +44 -16
  66. package/dist/{gulp-CxGZU0-v.js → gulp-XT8Jc7lH.js} +44 -16
  67. package/dist/gulp.js +1 -1
  68. package/dist/gulp.mjs +1 -1
  69. package/dist/{hmr-timing-DFR51wgo.js → hmr-timing-BMftW7Us.js} +298 -221
  70. package/dist/{hmr-timing-DNjF8bWA.mjs → hmr-timing-DQIP_8qP.mjs} +297 -220
  71. package/dist/index.d.ts +1 -0
  72. package/dist/index.js +20 -4
  73. package/dist/index.mjs +6 -5
  74. package/dist/postcss.js +2 -2
  75. package/dist/postcss.mjs +2 -2
  76. package/dist/{precheck-30zNPRlI.js → precheck-B0Z8yW7E.js} +98 -27
  77. package/dist/{precheck-CsFr1q2l.mjs → precheck-CRI90iL1.mjs} +97 -26
  78. package/dist/presets.js +3 -3
  79. package/dist/presets.mjs +3 -3
  80. package/dist/{tailwindcss-CK84uGBp.mjs → tailwindcss-DTq3uYBK.mjs} +2 -2
  81. package/dist/{tailwindcss-Clpkz1oR.js → tailwindcss-DZEwT3C_.js} +3 -3
  82. package/dist/{transform-Cju08-aJ.mjs → transform-DfcEjsZF.mjs} +29 -21
  83. package/dist/{transform-CaVEBOuR.js → transform-YmrmxuF3.js} +29 -21
  84. package/dist/types/user-defined-options/general.d.ts +3 -1
  85. package/dist/{utils-Dolmt8EO.js → utils-BCa37Wqj.js} +2 -17
  86. package/dist/{utils-DsaS975I.mjs → utils-DodxWHGz.mjs} +2 -17
  87. package/dist/{v3-engine-CQE5JJNZ.js → v3-engine-2rrgylhn.js} +53 -6
  88. package/dist/{v3-engine-DKBaKWGL.mjs → v3-engine-C6eJ0YzK.mjs} +46 -5
  89. package/dist/{vite-BBGOjh9e.js → vite-CXHVsHmX.js} +1945 -1280
  90. package/dist/{vite-CS5DE-HD.mjs → vite-DjI09vVN.mjs} +1944 -1279
  91. package/dist/vite.js +1 -1
  92. package/dist/vite.mjs +1 -1
  93. package/dist/weapp-tw-css-import-rewrite-loader.js +346 -186
  94. package/dist/weapp-tw-runtime-classset-loader.js +25 -0
  95. package/dist/{webpack-SPcri_D8.mjs → webpack-BcPpnT90.mjs} +165 -35
  96. package/dist/{webpack-DIWrcpRo.js → webpack-CfkUkMXG.js} +167 -37
  97. package/dist/webpack.js +1 -1
  98. package/dist/webpack.mjs +1 -1
  99. package/package.json +9 -4
@@ -1,4 +1,4 @@
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 { 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-CRI90iL1.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { splitCandidateTokens } from "tailwindcss-patch";
4
4
  import MagicString from "magic-string";
@@ -6,9 +6,9 @@ import MagicString from "magic-string";
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,11 +1,11 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_precheck = require("./precheck-30zNPRlI.js");
2
+ const require_precheck = require("./precheck-B0Z8yW7E.js");
3
3
  let tailwindcss_patch = require("tailwindcss-patch");
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
  **/
@@ -1,5 +1,5 @@
1
1
  import type { ParserOptions } from '@babel/parser';
2
- import type { LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
2
+ import type { CssOptions, LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
3
3
  import type { ILengthUnitsPatchOptions, TailwindCssPatchOptions } from 'tailwindcss-patch';
4
4
  import type { ICreateCacheReturnType } from '../../cache';
5
5
  import type { WeappTailwindcssGeneratorUserOptions } from '../../generator';
@@ -30,8 +30,10 @@ export interface UserDefinedOptionsGeneralPart {
30
30
  }) | undefined;
31
31
  cssChildCombinatorReplaceValue?: string | string[] | undefined;
32
32
  postcssOptions?: LoadedPostcssOptions | undefined;
33
+ cssOptions?: CssOptions | undefined;
33
34
  cssRemoveHoverPseudoClass?: boolean | undefined;
34
35
  cssRemoveProperty?: boolean | undefined;
36
+ tailwindcssV4GradientFallback?: boolean | undefined;
35
37
  tailwindcssPatcherOptions?: TailwindCssPatchOptions | undefined;
36
38
  logLevel?: 'info' | 'warn' | 'error' | 'silent' | undefined;
37
39
  }
@@ -1,26 +1,11 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
+ const require_framework = require("./framework.js");
2
3
  let node_process = require("node:process");
3
4
  node_process = require_chunk.__toESM(node_process);
4
5
  require("@weapp-tailwindcss/shared");
5
6
  //#region src/utils/uni-platform.ts
6
- function normalizePlatform(value) {
7
- return value?.trim().toLowerCase() || void 0;
8
- }
9
7
  function resolveUniUtsPlatform(value = node_process.default.env["UNI_UTS_PLATFORM"]) {
10
- const normalized = normalizePlatform(value);
11
- const isAppAndroid = normalized === "app-android";
12
- const isAppIos = normalized === "app-ios";
13
- const isAppHarmony = normalized === "app-harmony";
14
- return {
15
- raw: value,
16
- normalized,
17
- isApp: normalized?.startsWith("app-") === true || normalized === "app" || normalized === "app-plus",
18
- isAppAndroid,
19
- isAppHarmony,
20
- isAppIos,
21
- isMp: normalized?.startsWith("mp-") === true,
22
- isWeb: normalized?.startsWith("web") === true || normalized === "h5"
23
- };
8
+ return require_framework.resolveUniUtsPlatform(value);
24
9
  }
25
10
  //#endregion
26
11
  //#region src/utils/index.ts
@@ -1,24 +1,9 @@
1
+ import { resolveUniUtsPlatform as resolveUniUtsPlatform$1 } from "./framework.mjs";
1
2
  import process from "node:process";
2
3
  import { defu, defuOverrideArray as defuOverrideArray$1, isMap, noop } from "@weapp-tailwindcss/shared";
3
4
  //#region src/utils/uni-platform.ts
4
- function normalizePlatform(value) {
5
- return value?.trim().toLowerCase() || void 0;
6
- }
7
5
  function resolveUniUtsPlatform(value = process.env["UNI_UTS_PLATFORM"]) {
8
- const normalized = normalizePlatform(value);
9
- const isAppAndroid = normalized === "app-android";
10
- const isAppIos = normalized === "app-ios";
11
- const isAppHarmony = normalized === "app-harmony";
12
- return {
13
- raw: value,
14
- normalized,
15
- isApp: normalized?.startsWith("app-") === true || normalized === "app" || normalized === "app-plus",
16
- isAppAndroid,
17
- isAppHarmony,
18
- isAppIos,
19
- isMp: normalized?.startsWith("mp-") === true,
20
- isWeb: normalized?.startsWith("web") === true || normalized === "h5"
21
- };
6
+ return resolveUniUtsPlatform$1(value);
22
7
  }
23
8
  //#endregion
24
9
  //#region src/utils/index.ts
@@ -1,16 +1,16 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
2
  const require_auto = require("./auto-CTp6wE5a.js");
3
- let node_module = require("node:module");
4
- let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
5
- let lru_cache = require("lru-cache");
6
- let tailwindcss_patch = require("tailwindcss-patch");
7
- tailwindcss_patch = require_chunk.__toESM(tailwindcss_patch);
8
3
  let node_fs = require("node:fs");
9
4
  node_fs = require_chunk.__toESM(node_fs);
10
5
  let node_path = require("node:path");
11
6
  node_path = require_chunk.__toESM(node_path);
12
7
  let node_process = require("node:process");
13
8
  node_process = require_chunk.__toESM(node_process);
9
+ let node_module = require("node:module");
10
+ let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
11
+ let lru_cache = require("lru-cache");
12
+ let tailwindcss_patch = require("tailwindcss-patch");
13
+ tailwindcss_patch = require_chunk.__toESM(tailwindcss_patch);
14
14
  let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
15
15
  let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
16
16
  let node_url = require("node:url");
@@ -3092,6 +3092,7 @@ function addSourceScanDependencies(dependencies, files) {
3092
3092
  const VITE_SOURCE_CANDIDATE_PATTERN = FULL_SOURCE_SCAN_PATTERN;
3093
3093
  const VITE_TAILWIND_CSS_ENTRY_PATTERN = "**/*.{css,less,sass,scss,styl,stylus,pcss,postcss}";
3094
3094
  const tailwindV4CssEntriesCache = /* @__PURE__ */ new Map();
3095
+ const tailwindConfigCssEntriesCache = /* @__PURE__ */ new Map();
3095
3096
  function parseImportSourceParam(params) {
3096
3097
  const match = /\bsource\(\s*(none|(['"])(.*?)\2)\s*\)/.exec(params);
3097
3098
  if (!match) return;
@@ -3125,6 +3126,13 @@ function createCssEntriesCacheKey(css, base, dependencies) {
3125
3126
  dependencies
3126
3127
  });
3127
3128
  }
3129
+ function createDependencyExcludeEntries(files) {
3130
+ return [...files].map((file) => ({
3131
+ base: node_path.default.dirname(file),
3132
+ negated: true,
3133
+ pattern: node_path.default.basename(file)
3134
+ }));
3135
+ }
3128
3136
  async function statConfigDependency(file) {
3129
3137
  try {
3130
3138
  const stats = await (0, node_fs_promises.stat)(file);
@@ -3273,6 +3281,12 @@ async function resolveTailwindV3CssEntryScan(options, patcher) {
3273
3281
  } catch {
3274
3282
  return;
3275
3283
  }
3284
+ const cssConfigEntries = await resolveTailwindConfigEntriesFromCssCached(css, node_path.default.dirname(cssEntry));
3285
+ if (cssConfigEntries) {
3286
+ addSourceScanDependencies(dependencies, cssConfigEntries.dependencies);
3287
+ entries.push(...cssConfigEntries.entries);
3288
+ return;
3289
+ }
3276
3290
  const source = await resolveTailwindV3Source({
3277
3291
  ...sourceOptions,
3278
3292
  base: node_path.default.dirname(cssEntry),
@@ -3308,6 +3322,32 @@ async function resolveTailwindV4EntriesFromCssCached(css, base) {
3308
3322
  tailwindV4CssEntriesCache.set(cacheKey, task);
3309
3323
  return task;
3310
3324
  }
3325
+ async function resolveTailwindConfigEntriesFromCssCached(css, base) {
3326
+ let root;
3327
+ try {
3328
+ root = _weapp_tailwindcss_postcss.postcss.parse(css);
3329
+ } catch {
3330
+ return;
3331
+ }
3332
+ const dependencies = await collectConfigDependencySignatures(root, base);
3333
+ if (dependencies.length === 0) return;
3334
+ const cacheKey = createCssEntriesCacheKey(css, base, dependencies);
3335
+ const cached = tailwindConfigCssEntriesCache.get(cacheKey);
3336
+ if (cached) return cached;
3337
+ const task = resolveConfigContentEntries(root, base).then((resolved) => {
3338
+ return {
3339
+ entries: [...resolved.entries, ...createDependencyExcludeEntries(resolved.dependencies)],
3340
+ explicit: true,
3341
+ inlineCandidates: {
3342
+ excluded: /* @__PURE__ */ new Set(),
3343
+ included: /* @__PURE__ */ new Set()
3344
+ },
3345
+ dependencies: resolved.dependencies
3346
+ };
3347
+ });
3348
+ tailwindConfigCssEntriesCache.set(cacheKey, task);
3349
+ return task;
3350
+ }
3311
3351
  async function discoverTailwindV4CssEntries(root, outDir) {
3312
3352
  const resolvedRoot = node_path.default.resolve(root);
3313
3353
  const ignore = ["**/node_modules/**", "**/.git/**"];
@@ -3436,10 +3476,11 @@ async function resolveViteSourceScanEntries(options, patcher, scanOptions = {})
3436
3476
  addSourceScanDependency(dependencies, source.file);
3437
3477
  addSourceScanDependencies(dependencies, source.dependencies);
3438
3478
  const resolved = await resolveTailwindV4EntriesFromCssCached(source.css, source.base);
3439
- return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries, resolved.inlineCandidates, resolved.explicit), new Set([...dependencies, ...resolved.dependencies])) : void 0;
3479
+ return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries.length > 0 ? resolved.entries : [], resolved.inlineCandidates, resolved.entries.length > 0 ? resolved.explicit : false), new Set([...dependencies, ...resolved.dependencies])) : void 0;
3440
3480
  }
3441
3481
  }
3442
3482
  function createViteSourceScanMatcher(entries) {
3483
+ if (entries?.length === 0) return;
3443
3484
  return createTailwindSourceEntryMatcher(entries);
3444
3485
  }
3445
3486
  //#endregion
@@ -4493,6 +4534,12 @@ Object.defineProperty(exports, "resolveSourceScanPath", {
4493
4534
  return resolveSourceScanPath;
4494
4535
  }
4495
4536
  });
4537
+ Object.defineProperty(exports, "resolveTailwindConfigEntriesFromCssCached", {
4538
+ enumerable: true,
4539
+ get: function() {
4540
+ return resolveTailwindConfigEntriesFromCssCached;
4541
+ }
4542
+ });
4496
4543
  Object.defineProperty(exports, "resolveTailwindV3Source", {
4497
4544
  enumerable: true,
4498
4545
  get: function() {
@@ -1,12 +1,12 @@
1
1
  import { a as transformCssMacroCss, n as hasCssMacroTailwindPlugin, o as withCssMacroStyleOptions, r as hasCssMacroTailwindV4Directive, t as hasCssMacroStyleOptions } from "./auto-Cl8_hsG6.mjs";
2
2
  import { createRequire } from "node:module";
3
+ import fs, { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
4
+ import path from "node:path";
5
+ import process from "node:process";
3
6
  import { createStyleHandler, postcss, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss } from "@weapp-tailwindcss/postcss";
4
7
  import { LRUCache } from "lru-cache";
5
8
  import * as tailwindcssPatch from "tailwindcss-patch";
6
9
  import { TailwindcssPatcher, createTailwindV4Engine, extractRawCandidates, extractSourceCandidates, isBareArbitraryValuesEnabled, loadTailwindV4DesignSystem, resolveBareArbitraryValueCandidate, resolveProjectSourceFiles, resolveTailwindV4Source, resolveTailwindV4SourceFromPatchOptions } from "tailwindcss-patch";
7
- import fs, { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
8
- import path from "node:path";
9
- import process from "node:process";
10
10
  import { logger } from "@weapp-tailwindcss/logger";
11
11
  import { defuOverrideArray } from "@weapp-tailwindcss/shared";
12
12
  import { fileURLToPath } from "node:url";
@@ -3085,6 +3085,7 @@ function addSourceScanDependencies(dependencies, files) {
3085
3085
  const VITE_SOURCE_CANDIDATE_PATTERN = FULL_SOURCE_SCAN_PATTERN;
3086
3086
  const VITE_TAILWIND_CSS_ENTRY_PATTERN = "**/*.{css,less,sass,scss,styl,stylus,pcss,postcss}";
3087
3087
  const tailwindV4CssEntriesCache = /* @__PURE__ */ new Map();
3088
+ const tailwindConfigCssEntriesCache = /* @__PURE__ */ new Map();
3088
3089
  function parseImportSourceParam(params) {
3089
3090
  const match = /\bsource\(\s*(none|(['"])(.*?)\2)\s*\)/.exec(params);
3090
3091
  if (!match) return;
@@ -3118,6 +3119,13 @@ function createCssEntriesCacheKey(css, base, dependencies) {
3118
3119
  dependencies
3119
3120
  });
3120
3121
  }
3122
+ function createDependencyExcludeEntries(files) {
3123
+ return [...files].map((file) => ({
3124
+ base: path.dirname(file),
3125
+ negated: true,
3126
+ pattern: path.basename(file)
3127
+ }));
3128
+ }
3121
3129
  async function statConfigDependency(file) {
3122
3130
  try {
3123
3131
  const stats = await stat(file);
@@ -3266,6 +3274,12 @@ async function resolveTailwindV3CssEntryScan(options, patcher) {
3266
3274
  } catch {
3267
3275
  return;
3268
3276
  }
3277
+ const cssConfigEntries = await resolveTailwindConfigEntriesFromCssCached(css, path.dirname(cssEntry));
3278
+ if (cssConfigEntries) {
3279
+ addSourceScanDependencies(dependencies, cssConfigEntries.dependencies);
3280
+ entries.push(...cssConfigEntries.entries);
3281
+ return;
3282
+ }
3269
3283
  const source = await resolveTailwindV3Source({
3270
3284
  ...sourceOptions,
3271
3285
  base: path.dirname(cssEntry),
@@ -3301,6 +3315,32 @@ async function resolveTailwindV4EntriesFromCssCached(css, base) {
3301
3315
  tailwindV4CssEntriesCache.set(cacheKey, task);
3302
3316
  return task;
3303
3317
  }
3318
+ async function resolveTailwindConfigEntriesFromCssCached(css, base) {
3319
+ let root;
3320
+ try {
3321
+ root = postcss.parse(css);
3322
+ } catch {
3323
+ return;
3324
+ }
3325
+ const dependencies = await collectConfigDependencySignatures(root, base);
3326
+ if (dependencies.length === 0) return;
3327
+ const cacheKey = createCssEntriesCacheKey(css, base, dependencies);
3328
+ const cached = tailwindConfigCssEntriesCache.get(cacheKey);
3329
+ if (cached) return cached;
3330
+ const task = resolveConfigContentEntries(root, base).then((resolved) => {
3331
+ return {
3332
+ entries: [...resolved.entries, ...createDependencyExcludeEntries(resolved.dependencies)],
3333
+ explicit: true,
3334
+ inlineCandidates: {
3335
+ excluded: /* @__PURE__ */ new Set(),
3336
+ included: /* @__PURE__ */ new Set()
3337
+ },
3338
+ dependencies: resolved.dependencies
3339
+ };
3340
+ });
3341
+ tailwindConfigCssEntriesCache.set(cacheKey, task);
3342
+ return task;
3343
+ }
3304
3344
  async function discoverTailwindV4CssEntries(root, outDir) {
3305
3345
  const resolvedRoot = path.resolve(root);
3306
3346
  const ignore = ["**/node_modules/**", "**/.git/**"];
@@ -3429,10 +3469,11 @@ async function resolveViteSourceScanEntries(options, patcher, scanOptions = {})
3429
3469
  addSourceScanDependency(dependencies, source.file);
3430
3470
  addSourceScanDependencies(dependencies, source.dependencies);
3431
3471
  const resolved = await resolveTailwindV4EntriesFromCssCached(source.css, source.base);
3432
- return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries, resolved.inlineCandidates, resolved.explicit), new Set([...dependencies, ...resolved.dependencies])) : void 0;
3472
+ return resolved ? createResolvedViteSourceScan(createResolvedV4CssScanInput(resolved.entries.length > 0 ? resolved.entries : [], resolved.inlineCandidates, resolved.entries.length > 0 ? resolved.explicit : false), new Set([...dependencies, ...resolved.dependencies])) : void 0;
3433
3473
  }
3434
3474
  }
3435
3475
  function createViteSourceScanMatcher(entries) {
3476
+ if (entries?.length === 0) return;
3436
3477
  return createTailwindSourceEntryMatcher(entries);
3437
3478
  }
3438
3479
  //#endregion
@@ -4228,4 +4269,4 @@ function resolveTailwindV3SourceFromPatcher(patcher) {
4228
4269
  return resolveTailwindV3Source(resolveTailwindV3SourceOptionsFromPatcher(patcher));
4229
4270
  }
4230
4271
  //#endregion
4231
- export { FULL_SOURCE_SCAN_EXTENSION_RE as $, normalizeTailwindSourceForGenerator as A, splitTailwindGeneratedCssByBanner as B, resolveTailwindV4SourceOptionsFromPatcher as C, hasTailwindSourceDirectives as D, hasTailwindRootDirectives as E, VITE_MARKER_RE as F, normalizeConfigDirective as G, stripGeneratorPlaceholderMarkers as H, createCssAppend as I, getTailwindV4IncrementalGenerateCacheStats as J, prependConfigDirective as K, hasTailwindGeneratedCss as L, parseImportRequest as M, removeTailwindSourceDirectives as N, normalizeTailwindConfigDirectives as O, resolveCssEntrySource as P, loadTailwindV4DesignSystem as Q, hasTailwindGeneratedCssMarkers as R, resolveTailwindV4SourceFromPatcher as S, hasTailwindApplyDirective as T, stripTailwindBanner as U, splitTailwindV4GeneratedCssBySourceOrder as V, stripTailwindBanners as W, transformTailwindV4CssToWeapp as X, transformTailwindV4CssByTarget as Y, filterUnsupportedMiniProgramTailwindV4Candidates as Z, resolveTailwindV4EntriesFromCss as _, getTailwindV3IncrementalGenerateCacheStats as a, createDebug as at, resolveTailwindV4Source$1 as b, ensureTailwindcssRuntimePatch as c, findTailwindConfig as ct, getRuntimeClassSetSignatureWithSources as d, resolveBooleanObjectOption as dt, isFileMatchedByTailwindSourceEntries as et, invalidateRuntimeClassSet as f, findNearestPackageRoot as ft, discoverTailwindV4CssEntries as g, resolveViteSourceScanEntries as h, omitUndefined as ht, createTailwindV3Engine as i, toPosixPath as it, normalizeTailwindV3CssEntrySource as j, normalizeTailwindSourceDirectives as k, getRuntimeClassSetCacheEntry as l, resolveTailwindcssOptions as lt, createViteSourceScanMatcher as m, findWorkspaceRoot as mt, resolveTailwindV3SourceFromPatcher as n, resolveSourceScanPath as nt, transformTailwindV3CssByTarget as o, createTailwindcssPatcher as ot, runtimeSignaturePatchersSymbol as p, findWorkspacePackageDir as pt, createTailwindV4Engine$1 as q, resolveTailwindV3SourceOptionsFromPatcher as r, resolveTailwindV4CssSourceBase as rt, transformTailwindV3CssToWeapp as s, readInstalledPackageMajorVersion as st, resolveTailwindV3Source as t, normalizeLegacyContentEntries as tt, getRuntimeClassSetSignature as u, normalizeStringListOption as ut, resolveTailwindV4EntriesFromCssCached as v, hasLocalCssImport as w, resolveTailwindV4SourceFromPatchOptions as x, resolveViteTailwindV4CssDependencies as y, splitGeneratorPlaceholderCssBySourceOrder as z };
4272
+ export { loadTailwindV4DesignSystem as $, normalizeTailwindSourceDirectives as A, splitGeneratorPlaceholderCssBySourceOrder as B, resolveTailwindV4SourceFromPatcher as C, hasTailwindRootDirectives as D, hasTailwindApplyDirective as E, resolveCssEntrySource as F, stripTailwindBanners as G, splitTailwindV4GeneratedCssBySourceOrder as H, VITE_MARKER_RE as I, createTailwindV4Engine$1 as J, normalizeConfigDirective as K, createCssAppend as L, normalizeTailwindV3CssEntrySource as M, parseImportRequest as N, hasTailwindSourceDirectives as O, removeTailwindSourceDirectives as P, filterUnsupportedMiniProgramTailwindV4Candidates as Q, hasTailwindGeneratedCss as R, resolveTailwindV4SourceFromPatchOptions as S, hasLocalCssImport as T, stripGeneratorPlaceholderMarkers as U, splitTailwindGeneratedCssByBanner as V, stripTailwindBanner as W, transformTailwindV4CssByTarget as X, getTailwindV4IncrementalGenerateCacheStats as Y, transformTailwindV4CssToWeapp as Z, resolveTailwindConfigEntriesFromCssCached as _, getTailwindV3IncrementalGenerateCacheStats as a, toPosixPath as at, resolveViteTailwindV4CssDependencies as b, ensureTailwindcssRuntimePatch as c, readInstalledPackageMajorVersion as ct, getRuntimeClassSetSignatureWithSources as d, normalizeStringListOption as dt, FULL_SOURCE_SCAN_EXTENSION_RE as et, invalidateRuntimeClassSet as f, resolveBooleanObjectOption as ft, discoverTailwindV4CssEntries as g, omitUndefined as gt, resolveViteSourceScanEntries as h, findWorkspaceRoot as ht, createTailwindV3Engine as i, resolveTailwindV4CssSourceBase as it, normalizeTailwindSourceForGenerator as j, normalizeTailwindConfigDirectives as k, getRuntimeClassSetCacheEntry as l, findTailwindConfig as lt, createViteSourceScanMatcher as m, findWorkspacePackageDir as mt, resolveTailwindV3SourceFromPatcher as n, normalizeLegacyContentEntries as nt, transformTailwindV3CssByTarget as o, createDebug as ot, runtimeSignaturePatchersSymbol as p, findNearestPackageRoot as pt, prependConfigDirective as q, resolveTailwindV3SourceOptionsFromPatcher as r, resolveSourceScanPath as rt, transformTailwindV3CssToWeapp as s, createTailwindcssPatcher as st, resolveTailwindV3Source as t, isFileMatchedByTailwindSourceEntries as tt, getRuntimeClassSetSignature as u, resolveTailwindcssOptions as ut, resolveTailwindV4EntriesFromCss as v, resolveTailwindV4SourceOptionsFromPatcher as w, resolveTailwindV4Source$1 as x, resolveTailwindV4EntriesFromCssCached as y, hasTailwindGeneratedCssMarkers as z };