weapp-tailwindcss 5.1.15 → 5.2.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 (457) hide show
  1. package/README.en.md +6 -0
  2. package/README.md +6 -0
  3. package/bin/{weapp-tailwindcss.js → weapp-tailwindcss.cjs} +1 -1
  4. package/dist/bundlers/framework-selector.d.ts +2 -2
  5. package/dist/bundlers/gulp/asset-emission-plan.d.ts +10 -0
  6. package/dist/bundlers/gulp/frameworks/native/index.d.ts +10 -3
  7. package/dist/bundlers/gulp/index.d.ts +10 -3
  8. package/dist/bundlers/gulp/module-graph.d.ts +1 -1
  9. package/dist/bundlers/gulp/runtime-snapshot.d.ts +4 -2
  10. package/dist/bundlers/gulp/shared/create-native-framework-plugins/cache-state.d.ts +71 -0
  11. package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +45 -0
  12. package/dist/bundlers/gulp/shared/create-native-framework-plugins.d.ts +9 -2
  13. package/dist/bundlers/rspack/index.d.ts +2 -2
  14. package/dist/bundlers/shared/cache.d.ts +1 -1
  15. package/dist/bundlers/shared/css-imports.d.ts +1 -1
  16. package/dist/bundlers/shared/css-source-trace.d.ts +2 -2
  17. package/dist/bundlers/shared/framework-postcss.d.ts +21 -0
  18. package/dist/bundlers/shared/generator-css/candidates.d.ts +2 -0
  19. package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +19 -0
  20. package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +25 -0
  21. package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +30 -0
  22. package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +2 -0
  23. package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +4 -72
  24. package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +5 -3
  25. package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +58 -0
  26. package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +3 -0
  27. package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +3 -0
  28. package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +3 -0
  29. package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +3 -0
  30. package/dist/bundlers/shared/generator-css/pipeline.d.ts +2 -0
  31. package/dist/bundlers/shared/generator-css/result-helpers.d.ts +6 -0
  32. package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -0
  33. package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +32 -0
  34. package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -1
  35. package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +13 -5
  36. package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -1
  37. package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +4 -0
  38. package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +5 -0
  39. package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +16 -0
  40. package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +3 -0
  41. package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +5 -0
  42. package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +4 -4
  43. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +7 -9
  44. package/dist/bundlers/shared/generator-css/types.d.ts +12 -3
  45. package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +9 -0
  46. package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +3 -0
  47. package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +4 -0
  48. package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +9 -0
  49. package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +10 -0
  50. package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +15 -0
  51. package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -33
  52. package/dist/bundlers/shared/generator-css/validate.d.ts +1 -1
  53. package/dist/bundlers/shared/generator-css.d.ts +9 -10
  54. package/dist/bundlers/shared/runtime-class-set/entries.d.ts +4 -0
  55. package/dist/bundlers/shared/runtime-class-set/escaped-candidates.d.ts +9 -0
  56. package/dist/bundlers/shared/runtime-class-set.d.ts +30 -0
  57. package/dist/bundlers/shared/runtime-entry-type.d.ts +8 -0
  58. package/dist/bundlers/shared/runtime-signatures.d.ts +8 -0
  59. package/dist/bundlers/shared/source-candidate-scan-signature.d.ts +13 -0
  60. package/dist/bundlers/shared/source-candidates/collector.d.ts +8 -0
  61. package/dist/bundlers/shared/source-candidates/scan-root.d.ts +10 -0
  62. package/dist/bundlers/{vite → shared}/source-candidates/script.d.ts +1 -1
  63. package/dist/bundlers/shared/source-candidates/store.d.ts +2 -0
  64. package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +69 -0
  65. package/dist/bundlers/shared/source-candidates.d.ts +4 -0
  66. package/dist/bundlers/shared/source-scan/css-entries.d.ts +18 -0
  67. package/dist/bundlers/shared/source-scan.d.ts +16 -0
  68. package/dist/bundlers/shared/static-config-content.d.ts +5 -0
  69. package/dist/bundlers/shared/v4-generation-core.d.ts +9 -1
  70. package/dist/bundlers/vite/bundle-entries.d.ts +1 -1
  71. package/dist/bundlers/vite/bundle-state.d.ts +11 -38
  72. package/dist/bundlers/vite/css-asset-identity.d.ts +11 -0
  73. package/dist/bundlers/vite/css-finalizer/options.d.ts +54 -0
  74. package/dist/bundlers/vite/css-finalizer/plugin.d.ts +3 -0
  75. package/dist/bundlers/vite/css-finalizer.d.ts +1 -43
  76. package/dist/bundlers/vite/css-memory.d.ts +1 -2
  77. package/dist/bundlers/vite/frameworks/generic/index.d.ts +2 -2
  78. package/dist/bundlers/vite/frameworks/taro/index.d.ts +2 -2
  79. package/dist/bundlers/vite/frameworks/uni-app/index.d.ts +3 -3
  80. package/dist/bundlers/vite/frameworks/uni-app-x/index.d.ts +3 -3
  81. package/dist/bundlers/vite/frameworks/weapp-vite/index.d.ts +2 -2
  82. package/dist/bundlers/vite/generate-bundle/asset-emission-plan.d.ts +8 -0
  83. package/dist/bundlers/vite/generate-bundle/bundle-markup-candidates.d.ts +4 -4
  84. package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
  85. package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
  86. package/dist/bundlers/vite/generate-bundle/css-cache-task.d.ts +34 -0
  87. package/dist/bundlers/vite/generate-bundle/css-composition-plan.d.ts +58 -0
  88. package/dist/bundlers/vite/generate-bundle/css-config-directives.d.ts +1 -1
  89. package/dist/bundlers/vite/generate-bundle/css-entry-processing.d.ts +1 -0
  90. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
  91. package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +21 -2
  92. package/dist/bundlers/vite/generate-bundle/css-output.d.ts +1 -1
  93. package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +1 -1
  94. package/dist/bundlers/vite/generate-bundle/css-source-plan.d.ts +19 -0
  95. package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +61 -0
  96. package/dist/bundlers/vite/generate-bundle/css-transform-result.d.ts +23 -0
  97. package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +42 -0
  98. package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +3 -2
  99. package/dist/bundlers/vite/generate-bundle/finalize/bundle.d.ts +2 -0
  100. package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +69 -0
  101. package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -70
  102. package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +2 -2
  103. package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +1 -1
  104. package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +2 -1
  105. package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +2 -2
  106. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +6 -5
  107. package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +1 -1
  108. package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +1 -1
  109. package/dist/bundlers/vite/generate-bundle/remembered-css-plan.d.ts +35 -0
  110. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +5 -6
  111. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +2 -2
  112. package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +20 -0
  113. package/dist/bundlers/vite/generate-bundle/runtime-configured-css.d.ts +54 -0
  114. package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +1 -1
  115. package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +3 -3
  116. package/dist/bundlers/vite/generate-bundle/runtime.d.ts +6 -0
  117. package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +2 -2
  118. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -2
  119. package/dist/bundlers/vite/generate-bundle/signatures.d.ts +1 -8
  120. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +3 -3
  121. package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +5 -0
  122. package/dist/bundlers/vite/generate-bundle/subpackages.d.ts +2 -2
  123. package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +14 -1
  124. package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +1 -1
  125. package/dist/bundlers/vite/generate-bundle/transform-scheduling.d.ts +1 -0
  126. package/dist/bundlers/vite/generate-bundle/types.d.ts +8 -7
  127. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +3 -2
  128. package/dist/bundlers/vite/generate-bundle/validate-runtime-candidates.d.ts +22 -0
  129. package/dist/bundlers/vite/generate-bundle.d.ts +7 -7
  130. package/dist/bundlers/vite/incremental-runtime-class-set/entries.d.ts +1 -4
  131. package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -3
  132. package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +2 -30
  133. package/dist/bundlers/vite/index.d.ts +3 -3
  134. package/dist/bundlers/vite/js-precheck.d.ts +1 -1
  135. package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +13 -0
  136. package/dist/bundlers/vite/processed-css-assets/collector.d.ts +4 -0
  137. package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +34 -0
  138. package/dist/bundlers/vite/processed-css-assets/empty-at-rule.d.ts +1 -0
  139. package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +42 -0
  140. package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +89 -0
  141. package/dist/bundlers/vite/processed-css-assets/style-files.d.ts +3 -0
  142. package/dist/bundlers/vite/processed-css-assets.d.ts +4 -71
  143. package/dist/bundlers/vite/resolve-app-type.d.ts +1 -1
  144. package/dist/bundlers/vite/rewrite-css-imports.d.ts +3 -1
  145. package/dist/bundlers/vite/runtime-affecting-signature.d.ts +1 -2
  146. package/dist/bundlers/vite/runtime-candidate-entry.d.ts +9 -0
  147. package/dist/bundlers/vite/runtime-class-set.d.ts +4 -4
  148. package/dist/bundlers/vite/serve-css-generation.d.ts +2 -0
  149. package/dist/bundlers/vite/serve-js-transform.d.ts +1 -1
  150. package/dist/bundlers/vite/serve-root-import-shell.d.ts +1 -1
  151. package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +2 -0
  152. package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -8
  153. package/dist/bundlers/vite/shared/framework-hmr-candidate-state.d.ts +45 -0
  154. package/dist/bundlers/vite/shared/framework-post-plugin.d.ts +2 -0
  155. package/dist/bundlers/vite/shared/framework-processed-css-registry.d.ts +22 -0
  156. package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +1 -0
  157. package/dist/bundlers/vite/shared/framework-source-candidates-plugin.d.ts +2 -0
  158. package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +38 -0
  159. package/dist/bundlers/vite/shared/framework-strategy.d.ts +4 -4
  160. package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +2 -13
  161. package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -10
  162. package/dist/bundlers/vite/source-candidates.d.ts +1 -68
  163. package/dist/bundlers/vite/source-output-relations.d.ts +24 -0
  164. package/dist/bundlers/vite/source-scan/css-entries.d.ts +2 -18
  165. package/dist/bundlers/vite/source-scan.d.ts +2 -16
  166. package/dist/bundlers/vite/static-config-content.d.ts +1 -5
  167. package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
  168. package/dist/bundlers/vite/web-css-compat.d.ts +1 -1
  169. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/asset-emission-plan.d.ts +18 -0
  170. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +2 -2
  171. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/finalize-assets.d.ts +2 -0
  172. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-result.d.ts +3 -0
  173. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-task.d.ts +2 -0
  174. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -41
  175. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/html-js-tasks.d.ts +5 -0
  176. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +4 -10
  177. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +30 -0
  178. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +8 -0
  179. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts +78 -0
  180. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +43 -0
  181. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/resources.d.ts +30 -0
  182. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/runtime-candidates.d.ts +1 -0
  183. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +28 -0
  184. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -0
  185. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +21 -0
  186. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +9 -219
  187. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +4 -0
  188. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +3 -3
  189. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +3 -3
  190. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +2 -2
  191. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +8 -4
  192. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +2 -2
  193. package/dist/bundlers/webpack/frameworks/generic/index.d.ts +2 -2
  194. package/dist/bundlers/webpack/frameworks/index.d.ts +7 -7
  195. package/dist/bundlers/webpack/frameworks/mpx/index.d.ts +2 -2
  196. package/dist/bundlers/webpack/frameworks/taro/index.d.ts +2 -2
  197. package/dist/bundlers/webpack/frameworks/uni-app/index.d.ts +2 -2
  198. package/dist/bundlers/webpack/frameworks/weapp-vite/index.d.ts +2 -2
  199. package/dist/bundlers/webpack/index.d.ts +1 -1
  200. package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +7 -2
  201. package/dist/bundlers/webpack/loaders/weapp-tw-css-generation-loader.d.ts +1 -1
  202. package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +1 -1
  203. package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +1 -1
  204. package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +20 -0
  205. package/dist/bundlers/webpack/shared/create-framework-plugin/watch-output.d.ts +13 -0
  206. package/dist/bundlers/webpack/shared/create-framework-plugin.d.ts +3 -21
  207. package/dist/cli/context.d.ts +2 -2
  208. package/dist/cli/doctor.d.ts +1 -1
  209. package/dist/cli/helpers/options.d.ts +3 -3
  210. package/dist/cli/helpers.d.ts +1 -1
  211. package/dist/cli.cjs +37012 -0
  212. package/dist/cli.js +145 -176
  213. package/dist/compiler/artifact.d.ts +14 -0
  214. package/dist/compiler/candidate-index.d.ts +10 -0
  215. package/dist/compiler/compilation-change-coordinator.d.ts +28 -0
  216. package/dist/compiler/compilation-dependency-state.d.ts +16 -0
  217. package/dist/compiler/compilation-scope-graph.d.ts +31 -0
  218. package/dist/compiler/compilation-session-pool.d.ts +54 -0
  219. package/dist/compiler/compiler-owner-state.d.ts +3 -0
  220. package/dist/compiler/composition.d.ts +8 -0
  221. package/dist/compiler/emission-plan.d.ts +26 -0
  222. package/dist/compiler/index.d.ts +23 -0
  223. package/dist/compiler/invalidation.d.ts +3 -0
  224. package/dist/compiler/mode.d.ts +3 -0
  225. package/dist/compiler/owner-lifecycle.d.ts +1 -0
  226. package/dist/compiler/platform-adapter.d.ts +9 -0
  227. package/dist/compiler/runtime-affecting-signature.d.ts +2 -0
  228. package/dist/compiler/runtime-build-state.d.ts +6 -0
  229. package/dist/compiler/runtime-snapshot.d.ts +53 -0
  230. package/dist/compiler/scope-planner.d.ts +6 -0
  231. package/dist/compiler/semantic-css.d.ts +66 -0
  232. package/dist/compiler/session.d.ts +13 -0
  233. package/dist/compiler/shadow-gate.d.ts +26 -0
  234. package/dist/compiler/shadow-report-session.d.ts +37 -0
  235. package/dist/compiler/shadow-report.d.ts +15 -0
  236. package/dist/compiler/source-graph.d.ts +32 -0
  237. package/dist/compiler/tailwind-generation-session-pool.d.ts +22 -0
  238. package/dist/compiler/types.d.ts +95 -0
  239. package/dist/constants.d.ts +2 -2
  240. package/dist/context/compiler-context-cache.d.ts +1 -1
  241. package/dist/context/custom-attributes.d.ts +1 -1
  242. package/dist/context/handlers.d.ts +3 -3
  243. package/dist/context/index.d.ts +1 -1
  244. package/dist/context/runtime-package-replacements.d.ts +1 -1
  245. package/dist/context/style-options.d.ts +1 -1
  246. package/dist/context/tailwindcss.d.ts +3 -3
  247. package/dist/{context-VeFq_8vW.js → context-PZXBqrAJ.cjs} +32 -94
  248. package/dist/{context-BgGWVAmN.mjs → context-oTkxC5aZ.js} +23 -12
  249. package/dist/{core.mjs → core.cjs} +13 -12
  250. package/dist/core.d.ts +2 -2
  251. package/dist/core.js +12 -13
  252. package/dist/css-imports-DfNC3e6a.cjs +43 -0
  253. package/dist/css-loader-runtime-CSv0lKqV.cjs +11 -0
  254. package/dist/css-macro/postcss.cjs +19 -0
  255. package/dist/css-macro/postcss.js +2 -19
  256. package/dist/{css-macro.mjs → css-macro.cjs} +11 -8
  257. package/dist/css-macro.d.ts +2 -2
  258. package/dist/css-macro.js +8 -11
  259. package/dist/{defaults.mjs → defaults.cjs} +16 -11
  260. package/dist/defaults.d.ts +1 -1
  261. package/dist/defaults.js +11 -16
  262. package/dist/{escape.mjs → escape.cjs} +18 -4
  263. package/dist/escape.js +4 -18
  264. package/dist/framework/platform.d.ts +1 -1
  265. package/dist/{framework.mjs → framework.cjs} +47 -25
  266. package/dist/framework.d.ts +1 -1
  267. package/dist/framework.js +25 -47
  268. package/dist/generator/index.d.ts +6 -6
  269. package/dist/generator/options.d.ts +3 -3
  270. package/dist/generator/types.d.ts +2 -2
  271. package/dist/{generator-CEnUsjed.js → generator-C8D5cnbe.cjs} +730 -468
  272. package/dist/{generator-CEo920So.mjs → generator-CDdzqf1S.js} +747 -497
  273. package/dist/generator.cjs +12 -0
  274. package/dist/generator.d.ts +1 -1
  275. package/dist/generator.js +2 -12
  276. package/dist/{gulp-3m1dAiig.js → gulp-Cjcss8T_.cjs} +326 -241
  277. package/dist/{gulp-DP71z1jG.mjs → gulp-DNXQvDUw.js} +316 -234
  278. package/dist/gulp.cjs +5 -0
  279. package/dist/gulp.d.ts +4 -4
  280. package/dist/gulp.js +2 -5
  281. package/dist/{hmr-timing-1aS6--U7.mjs → hmr-timing-CuJwQzDc.js} +5230 -3259
  282. package/dist/hmr-timing-DMLfNfGG.cjs +555 -0
  283. package/dist/index.cjs +45 -0
  284. package/dist/index.d.ts +9 -9
  285. package/dist/index.js +9 -45
  286. package/dist/js/JsTokenUpdater.d.ts +1 -1
  287. package/dist/js/ModuleGraph.d.ts +3 -3
  288. package/dist/js/NodePathWalker.d.ts +2 -2
  289. package/dist/js/babel/process.d.ts +2 -2
  290. package/dist/js/babel.d.ts +8 -8
  291. package/dist/js/evalTransforms.d.ts +2 -2
  292. package/dist/js/fast-path/oxc.d.ts +1 -1
  293. package/dist/js/handlers.d.ts +2 -2
  294. package/dist/js/index.d.ts +3 -3
  295. package/dist/js/literal-transform.d.ts +1 -1
  296. package/dist/js/module-graph/ignored-exports.d.ts +4 -4
  297. package/dist/js/module-graph/types.d.ts +2 -2
  298. package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
  299. package/dist/js/precheck.d.ts +1 -1
  300. package/dist/js/replacement-cache.d.ts +1 -1
  301. package/dist/js/sourceAnalysis.d.ts +3 -3
  302. package/dist/js/taggedTemplateIgnore.d.ts +1 -1
  303. package/dist/object-Bvy6-w9r.js +47 -0
  304. package/dist/object-C_Vr6_S5.cjs +58 -0
  305. package/dist/options-DlvhQwWB.cjs +775 -0
  306. package/dist/pipeline-helpers-XtUmUlci.cjs +955 -0
  307. package/dist/postcss-html-transform.cjs +7 -0
  308. package/dist/postcss-html-transform.js +3 -5
  309. package/dist/postcss.cjs +15 -0
  310. package/dist/postcss.js +7 -11
  311. package/dist/presets/hbuilderx.d.ts +2 -2
  312. package/dist/presets/index.d.ts +4 -4
  313. package/dist/presets/shared.d.ts +1 -1
  314. package/dist/presets/taro.d.ts +2 -2
  315. package/dist/presets/uni-app-x.d.ts +1 -1
  316. package/dist/presets/uni-app.d.ts +2 -2
  317. package/dist/{presets.mjs → presets.cjs} +37 -24
  318. package/dist/presets.d.ts +1 -1
  319. package/dist/presets.js +24 -36
  320. package/dist/reset.cjs +19 -0
  321. package/dist/reset.d.ts +2 -2
  322. package/dist/reset.js +2 -19
  323. package/dist/{rolldown-runtime-emK7D4bc.js → rolldown-runtime-CVvi-lCc.cjs} +15 -0
  324. package/dist/{rspack.mjs → rspack.cjs} +10 -4
  325. package/dist/rspack.d.ts +3 -3
  326. package/dist/rspack.js +4 -10
  327. package/dist/runtime-branch/create-branch.d.ts +1 -1
  328. package/dist/runtime-branch/generator-target-env.d.ts +1 -1
  329. package/dist/runtime-branch/index.d.ts +2 -2
  330. package/dist/runtime-branch/mini-program.d.ts +1 -1
  331. package/dist/runtime-branch/native-app.d.ts +1 -1
  332. package/dist/runtime-branch/platform.d.ts +2 -2
  333. package/dist/runtime-branch/tailwind-version.d.ts +1 -1
  334. package/dist/runtime-branch/types.d.ts +2 -2
  335. package/dist/runtime-branch/web.d.ts +1 -1
  336. package/dist/runtime-branch.d.ts +1 -1
  337. package/dist/runtime-registry-Y7NrD2WH.cjs +31 -0
  338. package/dist/shared/classname-transform.d.ts +1 -1
  339. package/dist/shared/mpx-plugin-owner.d.ts +2 -0
  340. package/dist/shared/mpx.d.ts +1 -1
  341. package/dist/{source-candidate-scan-signature-Cf7259PR.mjs → source-candidate-scan-signature-B0S7f5P7.js} +26 -336
  342. package/dist/{source-candidate-scan-signature-BAahhiwb.js → source-candidate-scan-signature-BmSuoxR9.cjs} +31 -414
  343. package/dist/style-injector/internal.d.ts +6 -6
  344. package/dist/style-options-CEfXwZzX.cjs +75 -0
  345. package/dist/tailwindcss/candidates.d.ts +2 -2
  346. package/dist/tailwindcss/index.d.ts +1 -1
  347. package/dist/tailwindcss/runtime/cache.d.ts +1 -1
  348. package/dist/tailwindcss/runtime-factory.d.ts +2 -2
  349. package/dist/tailwindcss/runtime-options.d.ts +1 -1
  350. package/dist/tailwindcss/runtime-types.d.ts +2 -2
  351. package/dist/tailwindcss/runtime.d.ts +2 -2
  352. package/dist/tailwindcss/source-scan.d.ts +2 -2
  353. package/dist/tailwindcss/targets.d.ts +1 -1
  354. package/dist/tailwindcss/v4/config.d.ts +1 -1
  355. package/dist/tailwindcss/v4/css-sources.d.ts +2 -1
  356. package/dist/tailwindcss/v4/index.d.ts +2 -2
  357. package/dist/tailwindcss/v4/multi-runtime.d.ts +1 -1
  358. package/dist/tailwindcss/v4/runtime-factory.d.ts +5 -5
  359. package/dist/tailwindcss/v4/runtime-options.d.ts +1 -1
  360. package/dist/tailwindcss/v4-engine/css-macro-source.d.ts +1 -1
  361. package/dist/tailwindcss/v4-engine/generator/cache-stats.d.ts +26 -0
  362. package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
  363. package/dist/tailwindcss/v4-engine/generator/engine.d.ts +2 -0
  364. package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +51 -0
  365. package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +17 -0
  366. package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +2 -1
  367. package/dist/tailwindcss/v4-engine/generator.d.ts +2 -28
  368. package/dist/tailwindcss/v4-engine/index.d.ts +5 -5
  369. package/dist/tailwindcss/v4-engine/miniprogram.d.ts +2 -2
  370. package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
  371. package/dist/tailwindcss/v4-engine/types.d.ts +1 -0
  372. package/dist/{tailwindcss-KBYPJ2DW.js → tailwindcss-Cs94gJgf.cjs} +10 -770
  373. package/dist/{tailwindcss-xs704TRw.mjs → tailwindcss-D7TGiZR2.js} +23 -23
  374. package/dist/transform-BUEyOCT7.cjs +341 -0
  375. package/dist/transform-BbaPIji9.js +342 -0
  376. package/dist/typedoc.export.d.ts +4 -4
  377. package/dist/types/index.d.ts +7 -7
  378. package/dist/types/shared.d.ts +1 -1
  379. package/dist/types/typedoc-tailwindcss-runtime.d.ts +3 -3
  380. package/dist/types/user-defined-options/general.d.ts +5 -5
  381. package/dist/types/user-defined-options/important.d.ts +2 -2
  382. package/dist/types/user-defined-options/index.d.ts +9 -9
  383. package/dist/types/user-defined-options/matcher.d.ts +2 -2
  384. package/dist/types.cjs +0 -0
  385. package/dist/types.d.ts +1 -1
  386. package/dist/types.js +1 -0
  387. package/dist/uni-app-x/harmony.d.ts +1 -0
  388. package/dist/uni-app-x/index.d.ts +2 -2
  389. package/dist/uni-app-x/options.d.ts +1 -1
  390. package/dist/uni-app-x/style-asset/harmony-apply.d.ts +1 -0
  391. package/dist/uni-app-x/style-asset/style-value.d.ts +3 -0
  392. package/dist/uni-app-x/style-asset.d.ts +5 -4
  393. package/dist/uni-app-x/transform.d.ts +1 -1
  394. package/dist/uni-app-x/vite/harmony-apply.d.ts +19 -0
  395. package/dist/uni-app-x/vite/native-target.d.ts +2 -0
  396. package/dist/uni-app-x/vite.d.ts +5 -2
  397. package/dist/unocss/index.d.ts +1 -1
  398. package/dist/utils/disabled.d.ts +1 -1
  399. package/dist/utils/index.d.ts +3 -3
  400. package/dist/{hmr-timing-B8p4f0ca.js → v4-generation-core-D7MuR5ZF.cjs} +4886 -3330
  401. package/dist/{vite-nXZEiwG0.mjs → vite-BI1TeUPO.js} +6148 -4522
  402. package/dist/{vite-DUVjMduj.js → vite-CBzmUTu-.cjs} +6267 -4666
  403. package/dist/vite.cjs +4 -0
  404. package/dist/vite.d.ts +3 -3
  405. package/dist/vite.js +2 -4
  406. package/dist/watch-dependencies-BZGubvuJ.cjs +40 -0
  407. package/dist/{weapp-tw-css-generation-loader.js → weapp-tw-css-generation-loader.cjs} +3 -2
  408. package/dist/weapp-tw-css-import-rewrite-loader.cjs +201 -0
  409. package/dist/{weapp-tw-runtime-classset-loader.js → weapp-tw-runtime-classset-loader.cjs} +19 -15
  410. package/dist/{webpack-nppysF4B.js → webpack-Dao6bWEj.cjs} +1000 -1473
  411. package/dist/{webpack-C_UUFRgj.mjs → webpack-dAY9h8r8.js} +1462 -1185
  412. package/dist/webpack.cjs +5 -0
  413. package/dist/webpack.d.ts +2 -2
  414. package/dist/webpack.js +2 -5
  415. package/dist/wxml/Tokenizer.d.ts +2 -2
  416. package/dist/wxml/custom-attributes.d.ts +1 -1
  417. package/dist/wxml/index.d.ts +2 -2
  418. package/dist/wxml/shared.d.ts +1 -1
  419. package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +1 -1
  420. package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
  421. package/dist/wxml/utils/codegen.d.ts +1 -1
  422. package/dist/wxml/utils/custom-template.d.ts +2 -2
  423. package/dist/wxml/utils/fragment-helpers.d.ts +2 -2
  424. package/dist/wxml/utils/fragment-updater.d.ts +2 -2
  425. package/dist/wxml/utils/template-fragments.d.ts +2 -2
  426. package/dist/wxml/utils.d.ts +5 -5
  427. package/dist/wxml-DSMNuUaP.cjs +38609 -0
  428. package/dist/{cli.mjs → wxml-IBzZSaQC.js} +237 -718
  429. package/package.json +59 -54
  430. package/dist/css-macro/postcss.mjs +0 -2
  431. package/dist/generator.mjs +0 -2
  432. package/dist/gulp.mjs +0 -2
  433. package/dist/index.mjs +0 -9
  434. package/dist/object-BJSWl-E5.mjs +0 -9
  435. package/dist/object-COs_Mw6p.js +0 -14
  436. package/dist/postcss-html-transform.mjs +0 -5
  437. package/dist/postcss.mjs +0 -11
  438. package/dist/reset.mjs +0 -2
  439. package/dist/transform-B_KM9sLX.mjs +0 -14930
  440. package/dist/transform-CcYptivi.js +0 -14927
  441. package/dist/types.mjs +0 -1
  442. package/dist/vite.mjs +0 -2
  443. package/dist/watch-dependencies-bpG6kmAf.js +0 -80
  444. package/dist/weapp-tw-css-import-rewrite-loader-DNk0IxAt.js +0 -10198
  445. package/dist/weapp-tw-css-import-rewrite-loader.js +0 -10
  446. package/dist/webpack.mjs +0 -2
  447. package/dist/wxml-Ce10eREX.js +0 -3979
  448. package/dist/wxml-DdGdeqaH.mjs +0 -3861
  449. /package/dist/{auto-2dg_uhEJ.mjs → auto-2dg_uhEJ.js} +0 -0
  450. /package/dist/{auto-DtU6f3X6.js → auto-DtU6f3X6.cjs} +0 -0
  451. /package/dist/bundlers/{vite → shared}/source-scan/dependencies.d.ts +0 -0
  452. /package/dist/{cache-options-DavPxrhC.js → cache-options-DavPxrhC.cjs} +0 -0
  453. /package/dist/{cache-options-DwBtLwQe.mjs → cache-options-DwBtLwQe.js} +0 -0
  454. /package/dist/{logger-BNzxZbZj.mjs → logger-BNzxZbZj.js} +0 -0
  455. /package/dist/{logger-TlKT3xmR.js → logger-TlKT3xmR.cjs} +0 -0
  456. /package/dist/{utils-CuKLf1Zv.js → utils-CuKLf1Zv.cjs} +0 -0
  457. /package/dist/{utils-MVwpU07P.mjs → utils-MVwpU07P.js} +0 -0
@@ -1,16 +1,12 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
2
- const require_framework = require("./framework.js");
3
- require("./auto-DtU6f3X6.js");
4
- const require_tailwindcss = require("./tailwindcss-KBYPJ2DW.js");
5
- const require_wxml = require("./wxml-Ce10eREX.js");
6
- const require_hmr_timing = require("./hmr-timing-B8p4f0ca.js");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
2
+ const require_framework = require("./framework.cjs");
3
+ const require_generator = require("./generator-C8D5cnbe.cjs");
4
+ require("./auto-DtU6f3X6.cjs");
5
+ const require_options = require("./options-DlvhQwWB.cjs");
6
+ const require_v4_generation_core = require("./v4-generation-core-D7MuR5ZF.cjs");
7
7
  let node_path = require("node:path");
8
- node_path = require_rolldown_runtime.__toESM(node_path);
9
- let node_process = require("node:process");
10
- node_process = require_rolldown_runtime.__toESM(node_process);
8
+ node_path = require_rolldown_runtime.__toESM(node_path, 1);
11
9
  let node_module = require("node:module");
12
- let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
13
- let node_buffer = require("node:buffer");
14
10
  let weapp_style_injector_vite = require("weapp-style-injector/vite");
15
11
  let weapp_style_injector_vite_taro = require("weapp-style-injector/vite/taro");
16
12
  let weapp_style_injector_vite_uni_app = require("weapp-style-injector/vite/uni-app");
@@ -33,7 +29,7 @@ function resolveBundlerAppType(options) {
33
29
  });
34
30
  }
35
31
  function isUniAppXFramework(appType, uniAppX) {
36
- return appType === "uni-app-x" || require_tailwindcss.resolveUniAppXOptions(uniAppX).enabled;
32
+ return appType === "uni-app-x" || require_options.resolveUniAppXOptions(uniAppX).enabled;
37
33
  }
38
34
  function resolveViteFrameworkProfile(options) {
39
35
  const appType = resolveBundlerAppType(options);
@@ -215,20 +211,6 @@ function createBuiltinWebpackStyleInjectorPlugin(options, delegateFactory) {
215
211
  return delegateFactory(normalized);
216
212
  }
217
213
  //#endregion
218
- //#region src/utils/disabled.ts
219
- function resolvePluginDisabledState(disabled) {
220
- if (disabled === true) return { plugin: true };
221
- if (disabled === false || disabled == null) return { plugin: false };
222
- return { plugin: disabled.plugin ?? false };
223
- }
224
- //#endregion
225
- //#region src/utils/resolve-package.ts
226
- const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
227
- function resolvePackageDir(name) {
228
- const pkgPath = require$1.resolve(`${name}/package.json`);
229
- return node_path.default.dirname(pkgPath);
230
- }
231
- //#endregion
232
214
  //#region src/bundlers/shared/module-graph.ts
233
215
  const QUERY_HASH_RE = /[?#].*$/u;
234
216
  const PROTOCOL_RE = /^[a-z][a-z+.-]*:/iu;
@@ -273,324 +255,31 @@ function resolveOutputSpecifier(specifier, importer, outDir, hasOutput) {
273
255
  return matchWithExtensions(candidate, hasOutput);
274
256
  }
275
257
  //#endregion
276
- //#region src/bundlers/shared/v4-generation-core.ts
277
- async function generateTailwindV4Css(options) {
278
- const majorVersion = options.runtimeState.tailwindRuntime.majorVersion;
279
- if (majorVersion !== 4) throw new Error("weapp-tailwindcss 生成管线仅支持 Tailwind CSS v4。");
280
- const generated = await require_hmr_timing.generateCssByGenerator(options);
281
- if (!generated) return;
282
- return {
283
- ...generated,
284
- classSet: generated.classSet,
285
- dependencies: generated.dependencies,
286
- metadata: {
287
- file: options.file,
288
- majorVersion,
289
- outputFile: options.outputFile,
290
- ...generated.metadata ?? {}
291
- }
292
- };
293
- }
294
- //#endregion
295
- //#region src/bundlers/vite/bundle-entries.ts
296
- function readOutputEntry(entry) {
297
- if (entry.output.type === "chunk") return entry.output.code;
298
- const source = entry.output.source;
299
- if (typeof source === "string") return source;
300
- if (source instanceof Uint8Array) return node_buffer.Buffer.from(source).toString();
301
- const fallbackSource = source;
302
- if (fallbackSource == null) return;
303
- if (typeof fallbackSource.toString === "function") return fallbackSource.toString();
304
- }
305
- function isJavaScriptEntry(entry) {
306
- if (entry.output.type === "chunk") return true;
307
- return entry.fileName.endsWith(".js");
308
- }
309
- function createBundleModuleGraphOptions(outputDir, entries) {
310
- const normalizedEntries = /* @__PURE__ */ new Map();
311
- for (const [id, entry] of entries) normalizedEntries.set(normalizeOutputPathKey(id), entry);
312
- const getEntry = (id) => entries.get(id) ?? normalizedEntries.get(normalizeOutputPathKey(id));
313
- return {
314
- resolve(specifier, importer) {
315
- return resolveOutputSpecifier(specifier, importer, outputDir, (candidate) => Boolean(getEntry(candidate)));
316
- },
317
- load(id) {
318
- const entry = getEntry(id);
319
- if (!entry) return;
320
- return readOutputEntry(entry);
321
- },
322
- filter(id) {
323
- return Boolean(getEntry(id));
324
- }
325
- };
326
- }
327
- function applyLinkedResults(linked, entries, onLinkedUpdate, onApplied) {
328
- if (!linked) return;
329
- const normalizedEntries = /* @__PURE__ */ new Map();
330
- for (const [entryId, entry] of entries) normalizedEntries.set(normalizeOutputPathKey(entryId), entry);
331
- for (const [id, { code }] of Object.entries(linked)) {
332
- const entry = entries.get(id) ?? normalizedEntries.get(normalizeOutputPathKey(id));
333
- if (!entry) continue;
334
- const previous = readOutputEntry(entry);
335
- if (previous == null || previous === code) continue;
336
- if (entry.output.type === "chunk") entry.output.code = code;
337
- else entry.output.source = code;
338
- onApplied?.(entry, code);
339
- onLinkedUpdate(entry.fileName, previous, code);
340
- }
341
- }
342
- //#endregion
343
- //#region src/bundlers/vite/runtime-affecting-signature.ts
344
- const CSS_BLOCK_COMMENT_RE = /\/\*[\s\S]*?\*\//g;
345
- const CSS_AROUND_PUNCTUATION_RE = /\s*([{}:;,>+~()])\s*/g;
346
- const CSS_TRAILING_DECLARATION_SEMICOLON_RE = /;\}/g;
347
- const CSS_WHITESPACE_RE = /\s+/g;
348
- const JS_RUNTIME_AFFECTING_TEXT_HINT_RE = /["'`/]/;
349
- const JS_INCOMPLETE_TRAILING_OPERATOR_RE = /(?:=>|[=+\-*%&|^!~?:,.({[\]])\s*$/;
350
- function createHtmlRuntimeAffectingSignature(source) {
351
- try {
352
- const parts = [];
353
- const parser = new require_wxml.Parser({
354
- onattribute(name, value) {
355
- parts.push(`a:${name}=${value}`);
356
- },
357
- oncomment(data) {
358
- parts.push(`c:${data}`);
359
- },
360
- ontext(data) {
361
- const value = data.trim();
362
- if (value.length > 0) parts.push(`t:${value}`);
363
- }
364
- }, { xmlMode: true });
365
- parser.write(source);
366
- parser.end();
367
- return parts.join("\n");
368
- } catch {
369
- return source;
370
- }
371
- }
372
- function createJsRuntimeAffectingSignature(source) {
373
- if (!JS_RUNTIME_AFFECTING_TEXT_HINT_RE.test(source) && !JS_INCOMPLETE_TRAILING_OPERATOR_RE.test(source)) return "";
374
- try {
375
- const ast = require_wxml.babelParse(source, {
376
- cache: false,
377
- cacheKey: "vite-runtime-affecting:unambiguous",
378
- plugins: ["jsx", "typescript"],
379
- sourceType: "unambiguous"
380
- });
381
- const parts = [];
382
- require_wxml.traverse(ast, {
383
- noScope: true,
384
- StringLiteral(path) {
385
- parts.push(`s:${path.node.value}`);
386
- },
387
- TemplateElement(path) {
388
- parts.push(`t:${path.node.value.raw}`);
389
- },
390
- JSXText(path) {
391
- const value = path.node.value.trim();
392
- if (value.length > 0) parts.push(`x:${value}`);
393
- }
394
- });
395
- const comments = ast.comments;
396
- if (Array.isArray(comments)) {
397
- for (const comment of comments) if (typeof comment?.value === "string" && comment.value.length > 0) parts.push(`c:${comment.value}`);
398
- }
399
- return parts.join("\n");
400
- } catch {
401
- return source;
402
- }
403
- }
404
- function createCssRuntimeAffectingSignature(source) {
405
- return source.replace(CSS_BLOCK_COMMENT_RE, "").replace(CSS_AROUND_PUNCTUATION_RE, "$1").replace(CSS_TRAILING_DECLARATION_SEMICOLON_RE, "}").replace(CSS_WHITESPACE_RE, " ").trim();
406
- }
407
- function createRuntimeAffectingSourceSignature(source, type) {
408
- if (type === "html") return createHtmlRuntimeAffectingSignature(source);
409
- if (type === "js") return createJsRuntimeAffectingSignature(source);
410
- if (type === "css") return createCssRuntimeAffectingSignature(source);
411
- return source;
258
+ //#region src/utils/disabled.ts
259
+ function resolvePluginDisabledState(disabled) {
260
+ if (disabled === true) return { plugin: true };
261
+ if (disabled === false || disabled == null) return { plugin: false };
262
+ return { plugin: disabled.plugin ?? false };
412
263
  }
413
264
  //#endregion
414
- //#region src/bundlers/vite/utils.ts
415
- function slash(p) {
416
- return (0, _weapp_tailwindcss_shared.ensurePosix)(p);
417
- }
418
- const isWindows = node_process.default.platform === "win32";
419
- const cssLangRE = new RegExp(`\\.(?:css|less|sass|scss|styl|stylus|pcss|postcss)(?:$|\\?)`);
420
- const htmlLangRE = /\.html?(?:$|\?)/;
421
- function isCSSRequest(request) {
422
- return cssLangRE.test(request) || require_hmr_timing.isSourceStyleRequest(request);
423
- }
424
- function isHTMLRequest(request) {
425
- return htmlLangRE.test(request);
426
- }
427
- function normalizePath(id) {
428
- return node_path.default.posix.normalize(isWindows ? (0, _weapp_tailwindcss_shared.ensurePosix)(id) : id);
429
- }
430
- async function formatPostcssSourceMap(rawMap, file) {
431
- const inputFileDir = node_path.default.dirname(file);
432
- const sources = rawMap.sources.map((source) => {
433
- const cleanSource = (0, _weapp_tailwindcss_shared.cleanUrl)(decodeURIComponent(source));
434
- if (cleanSource[0] === "<" && cleanSource.endsWith(">")) return `\0${cleanSource}`;
435
- return normalizePath(node_path.default.resolve(inputFileDir, cleanSource));
436
- });
437
- return {
438
- file,
439
- mappings: rawMap.mappings,
440
- names: rawMap.names,
441
- sources,
442
- sourcesContent: rawMap.sourcesContent,
443
- version: rawMap.version
444
- };
265
+ //#region src/utils/resolve-package.ts
266
+ const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
267
+ function resolvePackageDir(name) {
268
+ const pkgPath = require$1.resolve(`${name}/package.json`);
269
+ return node_path.default.dirname(pkgPath);
445
270
  }
446
271
  //#endregion
447
- //#region src/bundlers/vite/bundle-state.ts
448
- function createBundleBuildState() {
449
- return {
450
- iteration: 0,
451
- sourceHashByFile: /* @__PURE__ */ new Map(),
452
- runtimeAffectingSignatureByFile: /* @__PURE__ */ new Map(),
453
- runtimeAffectingHashByFile: /* @__PURE__ */ new Map(),
454
- linkedByEntry: /* @__PURE__ */ new Map(),
455
- dependentsByLinkedFile: /* @__PURE__ */ new Map(),
456
- bundleMarkupCandidatesByFile: /* @__PURE__ */ new Map(),
457
- generatorCandidateSignature: void 0
458
- };
459
- }
460
- function createChangedByType() {
461
- return {
462
- html: /* @__PURE__ */ new Set(),
463
- js: /* @__PURE__ */ new Set(),
464
- css: /* @__PURE__ */ new Set(),
465
- other: /* @__PURE__ */ new Set()
466
- };
467
- }
468
- function createProcessFiles() {
469
- return {
470
- html: /* @__PURE__ */ new Set(),
471
- js: /* @__PURE__ */ new Set(),
472
- css: /* @__PURE__ */ new Set()
473
- };
474
- }
475
- function readEntrySource(output) {
476
- if (output.type === "chunk") return output.code;
477
- return typeof output.source === "string" ? output.source : node_buffer.Buffer.from(output.source).toString();
478
- }
479
- function classifyBundleEntry(file, opts) {
480
- if (opts.htmlMatcher(file) || isHTMLRequest(file)) return "html";
481
- if (opts.cssMatcher(file) || isCSSRequest(file)) return "css";
482
- if (opts.jsMatcher(file) || opts.wxsMatcher(file)) return "js";
272
+ //#region src/bundlers/shared/runtime-entry-type.ts
273
+ const CSS_REQUEST_RE = /\.(?:css|less|sass|scss|styl|stylus|pcss|postcss)(?:$|\?)/;
274
+ const HTML_REQUEST_RE = /\.html?(?:$|\?)/;
275
+ function classifyRuntimeEntry(file, matchers) {
276
+ if (matchers.htmlMatcher(file) || HTML_REQUEST_RE.test(file)) return "html";
277
+ if (matchers.cssMatcher(file) || CSS_REQUEST_RE.test(file) || require_v4_generation_core.isSourceStyleRequest(file)) return "css";
278
+ if (matchers.jsMatcher(file) || matchers.wxsMatcher(file)) return "js";
483
279
  return "other";
484
280
  }
485
- function collectJsEntries(fileName, output, outDir, store) {
486
- const entry = {
487
- fileName,
488
- output
489
- };
490
- if (!isJavaScriptEntry(entry)) return;
491
- const absolute = toAbsoluteOutputPath(fileName, outDir);
492
- store.set(absolute, entry);
493
- }
494
- function markProcessFile(type, file, processFiles) {
495
- if (type === "html" || type === "js" || type === "css") processFiles[type].add(file);
496
- }
497
- function buildBundleSnapshot(bundle, opts, outDir, state, forceAll = false, options = {}) {
498
- const sourceHashByFile = /* @__PURE__ */ new Map();
499
- const runtimeAffectingSignatureByFile = /* @__PURE__ */ new Map();
500
- const runtimeAffectingHashByFile = /* @__PURE__ */ new Map();
501
- const changedByType = createChangedByType();
502
- const runtimeAffectingChangedByType = createChangedByType();
503
- const processFiles = createProcessFiles();
504
- const linkedImpactsByEntry = /* @__PURE__ */ new Map();
505
- const jsEntries = /* @__PURE__ */ new Map();
506
- const entries = [];
507
- const firstRun = state.iteration === 0 && state.sourceHashByFile.size === 0;
508
- const hasOmittedKnownFiles = options.hasOmittedKnownFiles === true;
509
- for (const [file, output] of Object.entries(bundle)) {
510
- const type = classifyBundleEntry(file, opts);
511
- const source = readEntrySource(output);
512
- const hash = opts.cache.computeHash(source);
513
- sourceHashByFile.set(file, hash);
514
- const previousHash = state.sourceHashByFile.get(file);
515
- const changed = previousHash == null || previousHash !== hash;
516
- const previousRuntimeAffectingHash = state.runtimeAffectingHashByFile.get(file);
517
- const runtimeAffectingHash = !changed && previousRuntimeAffectingHash != null ? previousRuntimeAffectingHash : (() => {
518
- const runtimeAffectingSignature = createRuntimeAffectingSourceSignature(source, type);
519
- runtimeAffectingSignatureByFile.set(file, runtimeAffectingSignature);
520
- return opts.cache.computeHash(runtimeAffectingSignature);
521
- })();
522
- runtimeAffectingHashByFile.set(file, runtimeAffectingHash);
523
- if (changed) changedByType[type].add(file);
524
- if (previousRuntimeAffectingHash == null || previousRuntimeAffectingHash !== runtimeAffectingHash) runtimeAffectingChangedByType[type].add(file);
525
- if (forceAll || firstRun) markProcessFile(type, file, processFiles);
526
- else if (type === "html") processFiles.html.add(file);
527
- else if (changed && (type === "js" || type === "css")) processFiles[type].add(file);
528
- collectJsEntries(file, output, outDir, jsEntries);
529
- entries.push({
530
- file,
531
- output,
532
- source,
533
- type
534
- });
535
- }
536
- if (!forceAll && !firstRun) for (const changedFile of changedByType.js) {
537
- const dependents = state.dependentsByLinkedFile.get(changedFile);
538
- if (!dependents) continue;
539
- for (const entryFile of dependents) {
540
- processFiles.js.add(entryFile);
541
- let impacts = linkedImpactsByEntry.get(entryFile);
542
- if (!impacts) {
543
- impacts = /* @__PURE__ */ new Set();
544
- linkedImpactsByEntry.set(entryFile, impacts);
545
- }
546
- impacts.add(changedFile);
547
- }
548
- }
549
- return {
550
- entries,
551
- jsEntries,
552
- sourceHashByFile,
553
- runtimeAffectingSignatureByFile,
554
- runtimeAffectingHashByFile,
555
- hasOmittedKnownFiles,
556
- changedByType,
557
- runtimeAffectingChangedByType,
558
- processFiles,
559
- linkedImpactsByEntry
560
- };
561
- }
562
- function invertLinkedByEntry(linkedByEntry) {
563
- const dependentsByLinkedFile = /* @__PURE__ */ new Map();
564
- for (const [entryFile, linkedFiles] of linkedByEntry.entries()) for (const linkedFile of linkedFiles) {
565
- let dependents = dependentsByLinkedFile.get(linkedFile);
566
- if (!dependents) {
567
- dependents = /* @__PURE__ */ new Set();
568
- dependentsByLinkedFile.set(linkedFile, dependents);
569
- }
570
- dependents.add(entryFile);
571
- }
572
- return dependentsByLinkedFile;
573
- }
574
- function replaceMapEntries(target, source) {
575
- target.clear();
576
- for (const [key, value] of source) target.set(key, value);
577
- return target;
578
- }
579
- function mergeMapEntries(target, source) {
580
- for (const [key, value] of source) target.set(key, value);
581
- return target;
582
- }
583
- function updateBundleBuildState(state, snapshot, linkedByEntry, options = {}) {
584
- const incremental = options.incremental === true;
585
- state.iteration += 1;
586
- state.sourceHashByFile = incremental ? mergeMapEntries(state.sourceHashByFile, snapshot.sourceHashByFile) : replaceMapEntries(state.sourceHashByFile, snapshot.sourceHashByFile);
587
- state.runtimeAffectingSignatureByFile.clear();
588
- state.runtimeAffectingHashByFile = incremental ? mergeMapEntries(state.runtimeAffectingHashByFile, snapshot.runtimeAffectingHashByFile) : replaceMapEntries(state.runtimeAffectingHashByFile, snapshot.runtimeAffectingHashByFile);
589
- state.linkedByEntry = incremental ? mergeMapEntries(state.linkedByEntry, linkedByEntry) : replaceMapEntries(state.linkedByEntry, linkedByEntry);
590
- state.dependentsByLinkedFile = invertLinkedByEntry(state.linkedByEntry);
591
- }
592
281
  //#endregion
593
- //#region src/bundlers/vite/generate-bundle/signatures.ts
282
+ //#region src/bundlers/shared/runtime-signatures.ts
594
283
  function summarizeStringDiff(previous, next) {
595
284
  if (previous === next) return "same";
596
285
  const previousLength = previous.length;
@@ -671,7 +360,7 @@ function resolveScopedSourceEntries(rawSource, sourceFile, resolvedEntries) {
671
360
  return { entries: createLocalSourceEntries(sourceFile) };
672
361
  }
673
362
  async function resolveScopedGeneratorSourceEntries(rawSource, sourceFile) {
674
- return resolveScopedSourceEntries(rawSource, sourceFile, (await require_tailwindcss.resolveTailwindV4EntriesFromCssCached(rawSource, node_path.default.dirname(node_path.default.resolve(sourceFile.replace(/[?#].*$/, "")))))?.entries);
363
+ return resolveScopedSourceEntries(rawSource, sourceFile, (await require_options.resolveTailwindV4EntriesFromCssCached(rawSource, node_path.default.dirname(node_path.default.resolve(sourceFile.replace(/[?#].*$/, "")))))?.entries);
675
364
  }
676
365
  async function createScopedGeneratorCandidateSignature(rawSource, sourceFile, fallbackSignature, getSourceCandidatesForEntries, options = {}) {
677
366
  if (!getSourceCandidatesForEntries || !hasOwnSourceDirectives(rawSource)) return fallbackSignature;
@@ -703,9 +392,9 @@ async function createScopedGeneratorRuntime(options) {
703
392
  return fallbackRuntime;
704
393
  }
705
394
  //#endregion
706
- //#region src/bundlers/vite/source-candidate-scan-signature.ts
395
+ //#region src/bundlers/shared/source-candidate-scan-signature.ts
707
396
  function normalizeSignaturePath(value) {
708
- return slash(node_path.default.resolve(value));
397
+ return require_generator.toPosixPath(node_path.default.resolve(value));
709
398
  }
710
399
  function serializeInlineCandidates(inlineCandidates) {
711
400
  return {
@@ -732,22 +421,10 @@ function createSourceCandidateScanSignature(input) {
732
421
  });
733
422
  }
734
423
  //#endregion
735
- Object.defineProperty(exports, "applyLinkedResults", {
736
- enumerable: true,
737
- get: function() {
738
- return applyLinkedResults;
739
- }
740
- });
741
- Object.defineProperty(exports, "buildBundleSnapshot", {
424
+ Object.defineProperty(exports, "classifyRuntimeEntry", {
742
425
  enumerable: true,
743
426
  get: function() {
744
- return buildBundleSnapshot;
745
- }
746
- });
747
- Object.defineProperty(exports, "classifyBundleEntry", {
748
- enumerable: true,
749
- get: function() {
750
- return classifyBundleEntry;
427
+ return classifyRuntimeEntry;
751
428
  }
752
429
  });
753
430
  Object.defineProperty(exports, "createBuiltinViteStyleInjectorPlugins", {
@@ -762,18 +439,6 @@ Object.defineProperty(exports, "createBuiltinWebpackStyleInjectorPlugin", {
762
439
  return createBuiltinWebpackStyleInjectorPlugin;
763
440
  }
764
441
  });
765
- Object.defineProperty(exports, "createBundleBuildState", {
766
- enumerable: true,
767
- get: function() {
768
- return createBundleBuildState;
769
- }
770
- });
771
- Object.defineProperty(exports, "createBundleModuleGraphOptions", {
772
- enumerable: true,
773
- get: function() {
774
- return createBundleModuleGraphOptions;
775
- }
776
- });
777
442
  Object.defineProperty(exports, "createCandidateSignature", {
778
443
  enumerable: true,
779
444
  get: function() {
@@ -792,12 +457,6 @@ Object.defineProperty(exports, "createLinkedImpactSignature", {
792
457
  return createLinkedImpactSignature;
793
458
  }
794
459
  });
795
- Object.defineProperty(exports, "createRuntimeAffectingSourceSignature", {
796
- enumerable: true,
797
- get: function() {
798
- return createRuntimeAffectingSourceSignature;
799
- }
800
- });
801
460
  Object.defineProperty(exports, "createScopedGeneratorCandidateSignature", {
802
461
  enumerable: true,
803
462
  get: function() {
@@ -822,18 +481,6 @@ Object.defineProperty(exports, "createSourceCandidateScanSignature", {
822
481
  return createSourceCandidateScanSignature;
823
482
  }
824
483
  });
825
- Object.defineProperty(exports, "formatPostcssSourceMap", {
826
- enumerable: true,
827
- get: function() {
828
- return formatPostcssSourceMap;
829
- }
830
- });
831
- Object.defineProperty(exports, "generateTailwindV4Css", {
832
- enumerable: true,
833
- get: function() {
834
- return generateTailwindV4Css;
835
- }
836
- });
837
484
  Object.defineProperty(exports, "getSnapshotHash", {
838
485
  enumerable: true,
839
486
  get: function() {
@@ -846,30 +493,12 @@ Object.defineProperty(exports, "hasRuntimeAffectingSourceChanges", {
846
493
  return hasRuntimeAffectingSourceChanges;
847
494
  }
848
495
  });
849
- Object.defineProperty(exports, "isCSSRequest", {
850
- enumerable: true,
851
- get: function() {
852
- return isCSSRequest;
853
- }
854
- });
855
- Object.defineProperty(exports, "isHTMLRequest", {
856
- enumerable: true,
857
- get: function() {
858
- return isHTMLRequest;
859
- }
860
- });
861
496
  Object.defineProperty(exports, "normalizeOutputPathKey", {
862
497
  enumerable: true,
863
498
  get: function() {
864
499
  return normalizeOutputPathKey;
865
500
  }
866
501
  });
867
- Object.defineProperty(exports, "normalizePath", {
868
- enumerable: true,
869
- get: function() {
870
- return normalizePath;
871
- }
872
- });
873
502
  Object.defineProperty(exports, "resolveOutputSpecifier", {
874
503
  enumerable: true,
875
504
  get: function() {
@@ -900,12 +529,6 @@ Object.defineProperty(exports, "resolveWebpackFrameworkProfile", {
900
529
  return resolveWebpackFrameworkProfile;
901
530
  }
902
531
  });
903
- Object.defineProperty(exports, "slash", {
904
- enumerable: true,
905
- get: function() {
906
- return slash;
907
- }
908
- });
909
532
  Object.defineProperty(exports, "summarizeStringDiff", {
910
533
  enumerable: true,
911
534
  get: function() {
@@ -918,12 +541,6 @@ Object.defineProperty(exports, "toAbsoluteOutputPath", {
918
541
  return toAbsoluteOutputPath;
919
542
  }
920
543
  });
921
- Object.defineProperty(exports, "updateBundleBuildState", {
922
- enumerable: true,
923
- get: function() {
924
- return updateBundleBuildState;
925
- }
926
- });
927
544
  Object.defineProperty(exports, "viteStyleInjectorDelegates", {
928
545
  enumerable: true,
929
546
  get: function() {
@@ -1,14 +1,14 @@
1
1
  import type { Plugin } from 'vite';
2
2
  import type { WebpackObjectPluginInstance, WebpackWeappStyleInjectorOptions } from 'weapp-style-injector/webpack';
3
- import type { WeappTailwindcssStyleInjectorUserOptions } from './options';
4
- import { normalizeStyleInjectorOptions } from './options';
3
+ import type { WeappTailwindcssStyleInjectorUserOptions } from './options.js';
4
+ import { normalizeStyleInjectorOptions } from './options.js';
5
5
  export type ViteStyleInjectorDelegateFactory = (options: NonNullable<ReturnType<typeof normalizeStyleInjectorOptions>>) => Plugin[];
6
6
  export type WebpackStyleInjectorDelegateFactory = (options: NonNullable<ReturnType<typeof normalizeWebpackStyleInjectorOptions>>) => WebpackObjectPluginInstance;
7
7
  declare function normalizeWebpackStyleInjectorOptions(options: WeappTailwindcssStyleInjectorUserOptions | undefined): WebpackWeappStyleInjectorOptions | undefined;
8
8
  export declare const viteStyleInjectorDelegates: {
9
- generic: (options: import("./options").WeappTailwindcssStyleInjectorOptions) => Plugin<any>[];
10
- taro: (options: import("./options").WeappTailwindcssStyleInjectorOptions) => Plugin<any>[];
11
- uniApp: (options: import("./options").WeappTailwindcssStyleInjectorOptions) => Plugin<any>[];
9
+ generic: (options: import("./options.js").WeappTailwindcssStyleInjectorOptions) => Plugin<any>[];
10
+ taro: (options: import("./options.js").WeappTailwindcssStyleInjectorOptions) => Plugin<any>[];
11
+ uniApp: (options: import("./options.js").WeappTailwindcssStyleInjectorOptions) => Plugin<any>[];
12
12
  };
13
13
  export declare const webpackStyleInjectorDelegates: {
14
14
  generic: (options: WebpackWeappStyleInjectorOptions) => WebpackObjectPluginInstance;
@@ -18,4 +18,4 @@ export declare const webpackStyleInjectorDelegates: {
18
18
  };
19
19
  export declare function createBuiltinViteStyleInjectorPlugins(options: WeappTailwindcssStyleInjectorUserOptions | undefined, getDelegateFactory: () => ViteStyleInjectorDelegateFactory): Plugin[];
20
20
  export declare function createBuiltinWebpackStyleInjectorPlugin(options: WeappTailwindcssStyleInjectorUserOptions | undefined, delegateFactory: WebpackStyleInjectorDelegateFactory): WebpackObjectPluginInstance | undefined;
21
- export type { WeappTailwindcssStyleInjectorOptions, WeappTailwindcssStyleInjectorUserOptions } from './options';
21
+ export type { WeappTailwindcssStyleInjectorOptions, WeappTailwindcssStyleInjectorUserOptions } from './options.js';
@@ -0,0 +1,75 @@
1
+ const require_generator = require("./generator-C8D5cnbe.cjs");
2
+ const require_options = require("./options-DlvhQwWB.cjs");
3
+ //#region src/context/style-options.ts
4
+ function normalizeStyleHandlerMajorVersion(majorVersion) {
5
+ return majorVersion === 4 ? 4 : void 0;
6
+ }
7
+ function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
8
+ const resolvedUniAppXOptions = require_options.resolveUniAppXOptions(ctx.uniAppX);
9
+ const branch = require_generator.resolveGeneratorRuntimeBranch(require_generator.normalizeWeappTailwindcssGeneratorOptions(ctx.generator, {
10
+ appType: ctx.appType,
11
+ platform: ctx.cssOptions?.platform ?? ctx.platform,
12
+ tailwindcssMajorVersion,
13
+ uniAppX: resolvedUniAppXOptions
14
+ }), {
15
+ appType: ctx.appType,
16
+ platform: ctx.cssOptions?.platform ?? ctx.platform,
17
+ tailwindcssMajorVersion,
18
+ uniAppX: resolvedUniAppXOptions
19
+ });
20
+ const hasCssOptions = ctx.cssOptions !== void 0;
21
+ const cssOptions = {
22
+ cssPreflight: ctx.cssOptions?.cssPreflight ?? ctx.cssPreflight,
23
+ cssPreflightRange: ctx.cssOptions?.cssPreflightRange ?? ctx.cssPreflightRange,
24
+ cssChildCombinatorReplaceValue: ctx.cssOptions?.cssChildCombinatorReplaceValue ?? ctx.cssChildCombinatorReplaceValue,
25
+ cssSelectorReplacement: ctx.cssOptions?.cssSelectorReplacement ?? ctx.cssSelectorReplacement,
26
+ rem2rpx: ctx.cssOptions?.rem2rpx ?? ctx.rem2rpx,
27
+ cssRemoveProperty: ctx.cssOptions?.cssRemoveProperty ?? ctx.cssRemoveProperty,
28
+ cssRemoveHoverPseudoClass: ctx.cssOptions?.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass,
29
+ tailwindcssV4GradientFallback: ctx.cssOptions?.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback,
30
+ cssPresetEnv: ctx.cssOptions?.cssPresetEnv ?? ctx.cssPresetEnv,
31
+ atRules: ctx.cssOptions?.atRules ?? ctx.atRules,
32
+ autoprefixer: ctx.cssOptions?.autoprefixer ?? ctx.autoprefixer,
33
+ cssCalc: ctx.cssOptions?.cssCalc ?? ctx.cssCalc,
34
+ platform: branch.platform ?? ctx.cssOptions?.platform ?? ctx.platform,
35
+ px2rpx: ctx.cssOptions?.px2rpx ?? ctx.px2rpx,
36
+ unitsToPx: ctx.cssOptions?.unitsToPx ?? ctx.unitsToPx,
37
+ unitConversion: ctx.cssOptions?.unitConversion ?? ctx.unitConversion,
38
+ injectAdditionalCssVarScope: ctx.cssOptions?.injectAdditionalCssVarScope ?? ctx.injectAdditionalCssVarScope
39
+ };
40
+ return {
41
+ appType: ctx.appType,
42
+ postcssOptions: ctx.postcssOptions,
43
+ cssPreflight: cssOptions.cssPreflight,
44
+ cssPreflightRange: cssOptions.cssPreflightRange,
45
+ cssChildCombinatorReplaceValue: cssOptions.cssChildCombinatorReplaceValue,
46
+ cssSelectorReplacement: cssOptions.cssSelectorReplacement,
47
+ rem2rpx: cssOptions.rem2rpx,
48
+ ...hasCssOptions ? { cssOptions } : {},
49
+ cssRemoveProperty: cssOptions.cssRemoveProperty,
50
+ cssRemoveHoverPseudoClass: cssOptions.cssRemoveHoverPseudoClass,
51
+ tailwindcssV4GradientFallback: cssOptions.tailwindcssV4GradientFallback,
52
+ cssPresetEnv: cssOptions.cssPresetEnv,
53
+ atRules: cssOptions.atRules,
54
+ autoprefixer: cssOptions.autoprefixer,
55
+ cssCalc: cssOptions.cssCalc,
56
+ uniAppX: branch.isNativeApp,
57
+ platform: cssOptions.platform,
58
+ px2rpx: cssOptions.px2rpx,
59
+ unitsToPx: cssOptions.unitsToPx,
60
+ unitConversion: cssOptions.unitConversion
61
+ };
62
+ }
63
+ //#endregion
64
+ Object.defineProperty(exports, "normalizeStyleHandlerMajorVersion", {
65
+ enumerable: true,
66
+ get: function() {
67
+ return normalizeStyleHandlerMajorVersion;
68
+ }
69
+ });
70
+ Object.defineProperty(exports, "resolveStyleOptionsFromContext", {
71
+ enumerable: true,
72
+ get: function() {
73
+ return resolveStyleOptionsFromContext;
74
+ }
75
+ });
@@ -1,5 +1,5 @@
1
- import type { ICustomAttributesEntities } from '../types';
2
- import type { IArbitraryValues } from '../types/shared';
1
+ import type { ICustomAttributesEntities } from '../types/index.js';
2
+ import type { IArbitraryValues } from '../types/shared.js';
3
3
  export interface SourceCandidateExtractionOptions {
4
4
  bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
5
5
  customAttributesEntities?: ICustomAttributesEntities | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { PackageResolvingOptions } from 'local-pkg';
2
2
  import type { PackageJson } from 'pkg-types';
3
- import { createTailwindcssRuntime } from './runtime-factory';
3
+ import { createTailwindcssRuntime } from './runtime-factory.js';
4
4
  declare function getTailwindcssPackageInfo(options?: PackageResolvingOptions): {
5
5
  name: string;
6
6
  version: string | undefined;
@@ -1,4 +1,4 @@
1
- import type { TailwindcssRuntimeLike } from '../../types';
1
+ import type { TailwindcssRuntimeLike } from '../../types/index.js';
2
2
  interface RuntimeClassSetCacheEntry {
3
3
  value?: Set<string> | undefined;
4
4
  promise?: Promise<Set<string>> | undefined;