weapp-tailwindcss 5.1.16 → 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 (442) 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 +4 -4
  11. package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +5 -3
  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 +9 -2
  18. package/dist/bundlers/shared/generator-css/candidates.d.ts +2 -0
  19. package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +4 -3
  20. package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +3 -3
  21. package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +4 -4
  22. package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +4 -4
  23. package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +2 -2
  24. package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +58 -0
  25. package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +3 -14
  26. package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +3 -12
  27. package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +3 -12
  28. package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +3 -25
  29. package/dist/bundlers/shared/generator-css/pipeline.d.ts +1 -1
  30. package/dist/bundlers/shared/generator-css/result-helpers.d.ts +2 -2
  31. package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +3 -4
  32. package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -1
  33. package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +13 -5
  34. package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -1
  35. package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +3 -3
  36. package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +4 -3
  37. package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +9 -9
  38. package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +3 -3
  39. package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +4 -4
  40. package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +4 -4
  41. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +7 -6
  42. package/dist/bundlers/shared/generator-css/types.d.ts +12 -3
  43. package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +1 -1
  44. package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -5
  45. package/dist/bundlers/shared/generator-css/validate.d.ts +1 -1
  46. package/dist/bundlers/shared/generator-css.d.ts +9 -9
  47. package/dist/bundlers/shared/runtime-class-set/entries.d.ts +4 -0
  48. package/dist/bundlers/shared/runtime-class-set/escaped-candidates.d.ts +9 -0
  49. package/dist/bundlers/shared/runtime-class-set.d.ts +30 -0
  50. package/dist/bundlers/shared/runtime-entry-type.d.ts +8 -0
  51. package/dist/bundlers/shared/runtime-signatures.d.ts +8 -0
  52. package/dist/bundlers/shared/source-candidate-scan-signature.d.ts +13 -0
  53. package/dist/bundlers/{vite → shared}/source-candidates/collector.d.ts +1 -1
  54. package/dist/bundlers/shared/source-candidates/scan-root.d.ts +10 -0
  55. package/dist/bundlers/{vite → shared}/source-candidates/script.d.ts +1 -1
  56. package/dist/bundlers/{vite → shared}/source-candidates/store.d.ts +1 -1
  57. package/dist/bundlers/{vite → shared}/source-candidates/types-and-cache.d.ts +3 -3
  58. package/dist/bundlers/shared/source-candidates.d.ts +4 -0
  59. package/dist/bundlers/shared/source-scan/css-entries.d.ts +18 -0
  60. package/dist/bundlers/shared/source-scan.d.ts +16 -0
  61. package/dist/bundlers/shared/static-config-content.d.ts +5 -0
  62. package/dist/bundlers/shared/v4-generation-core.d.ts +8 -3
  63. package/dist/bundlers/vite/bundle-entries.d.ts +1 -1
  64. package/dist/bundlers/vite/bundle-state.d.ts +11 -38
  65. package/dist/bundlers/vite/css-asset-identity.d.ts +11 -0
  66. package/dist/bundlers/vite/css-finalizer/options.d.ts +3 -3
  67. package/dist/bundlers/vite/css-finalizer/plugin.d.ts +1 -1
  68. package/dist/bundlers/vite/css-finalizer.d.ts +1 -1
  69. package/dist/bundlers/vite/css-memory.d.ts +1 -2
  70. package/dist/bundlers/vite/frameworks/generic/index.d.ts +2 -2
  71. package/dist/bundlers/vite/frameworks/taro/index.d.ts +2 -2
  72. package/dist/bundlers/vite/frameworks/uni-app/index.d.ts +3 -3
  73. package/dist/bundlers/vite/frameworks/uni-app-x/index.d.ts +3 -3
  74. package/dist/bundlers/vite/frameworks/weapp-vite/index.d.ts +2 -2
  75. package/dist/bundlers/vite/generate-bundle/asset-emission-plan.d.ts +8 -0
  76. package/dist/bundlers/vite/generate-bundle/bundle-markup-candidates.d.ts +4 -4
  77. package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
  78. package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
  79. package/dist/bundlers/vite/generate-bundle/css-cache-task.d.ts +34 -0
  80. package/dist/bundlers/vite/generate-bundle/css-composition-plan.d.ts +58 -0
  81. package/dist/bundlers/vite/generate-bundle/css-config-directives.d.ts +1 -1
  82. package/dist/bundlers/vite/generate-bundle/css-entry-processing.d.ts +1 -0
  83. package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
  84. package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +21 -2
  85. package/dist/bundlers/vite/generate-bundle/css-output.d.ts +1 -1
  86. package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +1 -1
  87. package/dist/bundlers/vite/generate-bundle/css-source-plan.d.ts +19 -0
  88. package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +61 -0
  89. package/dist/bundlers/vite/generate-bundle/css-transform-result.d.ts +23 -0
  90. package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +42 -0
  91. package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +3 -2
  92. package/dist/bundlers/vite/generate-bundle/finalize/bundle.d.ts +1 -1
  93. package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +5 -5
  94. package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -2
  95. package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +2 -2
  96. package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +1 -1
  97. package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +2 -1
  98. package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +2 -2
  99. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +6 -5
  100. package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +1 -1
  101. package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +1 -1
  102. package/dist/bundlers/vite/generate-bundle/remembered-css-plan.d.ts +35 -0
  103. package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +5 -6
  104. package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +2 -2
  105. package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +20 -0
  106. package/dist/bundlers/vite/generate-bundle/runtime-configured-css.d.ts +54 -0
  107. package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +1 -1
  108. package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +3 -3
  109. package/dist/bundlers/vite/{generate-bundle-runtime.d.ts → generate-bundle/runtime.d.ts} +4 -4
  110. package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +2 -2
  111. package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -2
  112. package/dist/bundlers/vite/generate-bundle/signatures.d.ts +1 -8
  113. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +3 -3
  114. package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +5 -0
  115. package/dist/bundlers/vite/generate-bundle/subpackages.d.ts +2 -2
  116. package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +14 -1
  117. package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +1 -1
  118. package/dist/bundlers/vite/generate-bundle/transform-scheduling.d.ts +1 -0
  119. package/dist/bundlers/vite/generate-bundle/types.d.ts +8 -7
  120. package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +3 -2
  121. package/dist/bundlers/vite/generate-bundle/validate-runtime-candidates.d.ts +22 -0
  122. package/dist/bundlers/vite/generate-bundle.d.ts +6 -6
  123. package/dist/bundlers/vite/incremental-runtime-class-set/entries.d.ts +1 -4
  124. package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -3
  125. package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +2 -30
  126. package/dist/bundlers/vite/index.d.ts +3 -3
  127. package/dist/bundlers/vite/js-precheck.d.ts +1 -1
  128. package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +2 -1
  129. package/dist/bundlers/vite/processed-css-assets/collector.d.ts +1 -1
  130. package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +1 -1
  131. package/dist/bundlers/vite/processed-css-assets/empty-at-rule.d.ts +1 -0
  132. package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +4 -4
  133. package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +5 -5
  134. package/dist/bundlers/vite/processed-css-assets.d.ts +4 -4
  135. package/dist/bundlers/vite/resolve-app-type.d.ts +1 -1
  136. package/dist/bundlers/vite/rewrite-css-imports.d.ts +3 -2
  137. package/dist/bundlers/vite/runtime-affecting-signature.d.ts +1 -2
  138. package/dist/bundlers/vite/runtime-candidate-entry.d.ts +9 -0
  139. package/dist/bundlers/vite/runtime-class-set.d.ts +4 -4
  140. package/dist/bundlers/vite/serve-css-generation.d.ts +2 -1
  141. package/dist/bundlers/vite/serve-js-transform.d.ts +1 -1
  142. package/dist/bundlers/vite/serve-root-import-shell.d.ts +1 -1
  143. package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +7 -7
  144. package/dist/bundlers/vite/shared/framework-hmr-candidate-state.d.ts +45 -0
  145. package/dist/bundlers/vite/shared/framework-post-plugin.d.ts +2 -0
  146. package/dist/bundlers/vite/shared/framework-processed-css-registry.d.ts +22 -0
  147. package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +1 -0
  148. package/dist/bundlers/vite/shared/framework-source-candidates-plugin.d.ts +2 -0
  149. package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +38 -0
  150. package/dist/bundlers/vite/shared/framework-strategy.d.ts +4 -4
  151. package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +2 -13
  152. package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -10
  153. package/dist/bundlers/vite/source-candidates.d.ts +1 -4
  154. package/dist/bundlers/vite/source-output-relations.d.ts +24 -0
  155. package/dist/bundlers/vite/source-scan/css-entries.d.ts +2 -18
  156. package/dist/bundlers/vite/source-scan.d.ts +2 -16
  157. package/dist/bundlers/vite/static-config-content.d.ts +1 -5
  158. package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
  159. package/dist/bundlers/vite/web-css-compat.d.ts +1 -1
  160. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/asset-emission-plan.d.ts +18 -0
  161. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +2 -2
  162. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/finalize-assets.d.ts +1 -1
  163. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-task.d.ts +1 -1
  164. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -41
  165. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/html-js-tasks.d.ts +1 -1
  166. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +4 -10
  167. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +4 -4
  168. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts +3 -3
  169. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +6 -6
  170. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/resources.d.ts +2 -2
  171. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +4 -4
  172. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +1 -1
  173. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +9 -9
  174. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +3 -3
  175. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +3 -3
  176. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +2 -2
  177. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +4 -4
  178. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +2 -2
  179. package/dist/bundlers/webpack/frameworks/generic/index.d.ts +2 -2
  180. package/dist/bundlers/webpack/frameworks/index.d.ts +7 -7
  181. package/dist/bundlers/webpack/frameworks/mpx/index.d.ts +2 -2
  182. package/dist/bundlers/webpack/frameworks/taro/index.d.ts +2 -2
  183. package/dist/bundlers/webpack/frameworks/uni-app/index.d.ts +2 -2
  184. package/dist/bundlers/webpack/frameworks/weapp-vite/index.d.ts +2 -2
  185. package/dist/bundlers/webpack/index.d.ts +1 -1
  186. package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +2 -2
  187. package/dist/bundlers/webpack/loaders/weapp-tw-css-generation-loader.d.ts +1 -1
  188. package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +1 -1
  189. package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +1 -1
  190. package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +4 -4
  191. package/dist/bundlers/webpack/shared/create-framework-plugin.d.ts +3 -3
  192. package/dist/cli/context.d.ts +2 -2
  193. package/dist/cli/doctor.d.ts +1 -1
  194. package/dist/cli/helpers/options.d.ts +3 -3
  195. package/dist/cli/helpers.d.ts +1 -1
  196. package/dist/cli.cjs +37012 -0
  197. package/dist/cli.js +141 -168
  198. package/dist/compiler/artifact.d.ts +14 -0
  199. package/dist/compiler/candidate-index.d.ts +10 -0
  200. package/dist/compiler/compilation-change-coordinator.d.ts +28 -0
  201. package/dist/compiler/compilation-dependency-state.d.ts +16 -0
  202. package/dist/compiler/compilation-scope-graph.d.ts +31 -0
  203. package/dist/compiler/compilation-session-pool.d.ts +54 -0
  204. package/dist/compiler/compiler-owner-state.d.ts +3 -0
  205. package/dist/compiler/composition.d.ts +8 -0
  206. package/dist/compiler/emission-plan.d.ts +26 -0
  207. package/dist/compiler/index.d.ts +23 -0
  208. package/dist/compiler/invalidation.d.ts +3 -0
  209. package/dist/compiler/mode.d.ts +3 -0
  210. package/dist/compiler/owner-lifecycle.d.ts +1 -0
  211. package/dist/compiler/platform-adapter.d.ts +9 -0
  212. package/dist/compiler/runtime-affecting-signature.d.ts +2 -0
  213. package/dist/compiler/runtime-build-state.d.ts +6 -0
  214. package/dist/compiler/runtime-snapshot.d.ts +53 -0
  215. package/dist/compiler/scope-planner.d.ts +6 -0
  216. package/dist/compiler/semantic-css.d.ts +66 -0
  217. package/dist/compiler/session.d.ts +13 -0
  218. package/dist/compiler/shadow-gate.d.ts +26 -0
  219. package/dist/compiler/shadow-report-session.d.ts +37 -0
  220. package/dist/compiler/shadow-report.d.ts +15 -0
  221. package/dist/compiler/source-graph.d.ts +32 -0
  222. package/dist/compiler/tailwind-generation-session-pool.d.ts +22 -0
  223. package/dist/compiler/types.d.ts +95 -0
  224. package/dist/constants.d.ts +2 -2
  225. package/dist/context/compiler-context-cache.d.ts +1 -1
  226. package/dist/context/custom-attributes.d.ts +1 -1
  227. package/dist/context/handlers.d.ts +3 -3
  228. package/dist/context/index.d.ts +1 -1
  229. package/dist/context/runtime-package-replacements.d.ts +1 -1
  230. package/dist/context/style-options.d.ts +1 -1
  231. package/dist/context/tailwindcss.d.ts +3 -3
  232. package/dist/{context-BtLIID4m.js → context-PZXBqrAJ.cjs} +31 -93
  233. package/dist/{context-JzwzSX36.mjs → context-oTkxC5aZ.js} +22 -11
  234. package/dist/{core.mjs → core.cjs} +13 -12
  235. package/dist/core.d.ts +2 -2
  236. package/dist/core.js +12 -13
  237. package/dist/css-imports-DfNC3e6a.cjs +43 -0
  238. package/dist/css-loader-runtime-CSv0lKqV.cjs +11 -0
  239. package/dist/css-macro/postcss.cjs +19 -0
  240. package/dist/css-macro/postcss.js +2 -19
  241. package/dist/{css-macro.mjs → css-macro.cjs} +11 -8
  242. package/dist/css-macro.d.ts +2 -2
  243. package/dist/css-macro.js +8 -11
  244. package/dist/{defaults.mjs → defaults.cjs} +16 -11
  245. package/dist/defaults.d.ts +1 -1
  246. package/dist/defaults.js +11 -16
  247. package/dist/{escape.mjs → escape.cjs} +18 -4
  248. package/dist/escape.js +4 -18
  249. package/dist/framework/platform.d.ts +1 -1
  250. package/dist/{framework.mjs → framework.cjs} +47 -25
  251. package/dist/framework.d.ts +1 -1
  252. package/dist/framework.js +25 -47
  253. package/dist/generator/index.d.ts +6 -6
  254. package/dist/generator/options.d.ts +3 -3
  255. package/dist/generator/types.d.ts +2 -2
  256. package/dist/{generator-B91GhUJQ.js → generator-C8D5cnbe.cjs} +164 -33
  257. package/dist/{generator-Bv7myuhY.mjs → generator-CDdzqf1S.js} +155 -30
  258. package/dist/generator.cjs +12 -0
  259. package/dist/generator.d.ts +1 -1
  260. package/dist/generator.js +2 -12
  261. package/dist/{gulp-Q1wITegn.js → gulp-Cjcss8T_.cjs} +157 -103
  262. package/dist/{gulp-CKSklPlH.mjs → gulp-DNXQvDUw.js} +141 -90
  263. package/dist/gulp.cjs +5 -0
  264. package/dist/gulp.d.ts +4 -4
  265. package/dist/gulp.js +2 -5
  266. package/dist/{hmr-timing-BXg7nI8N.mjs → hmr-timing-CuJwQzDc.js} +3824 -1988
  267. package/dist/hmr-timing-DMLfNfGG.cjs +555 -0
  268. package/dist/index.cjs +45 -0
  269. package/dist/index.d.ts +9 -9
  270. package/dist/index.js +9 -45
  271. package/dist/js/JsTokenUpdater.d.ts +1 -1
  272. package/dist/js/ModuleGraph.d.ts +3 -3
  273. package/dist/js/NodePathWalker.d.ts +2 -2
  274. package/dist/js/babel/process.d.ts +2 -2
  275. package/dist/js/babel.d.ts +8 -8
  276. package/dist/js/evalTransforms.d.ts +2 -2
  277. package/dist/js/fast-path/oxc.d.ts +1 -1
  278. package/dist/js/handlers.d.ts +2 -2
  279. package/dist/js/index.d.ts +3 -3
  280. package/dist/js/literal-transform.d.ts +1 -1
  281. package/dist/js/module-graph/ignored-exports.d.ts +4 -4
  282. package/dist/js/module-graph/types.d.ts +2 -2
  283. package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
  284. package/dist/js/precheck.d.ts +1 -1
  285. package/dist/js/replacement-cache.d.ts +1 -1
  286. package/dist/js/sourceAnalysis.d.ts +3 -3
  287. package/dist/js/taggedTemplateIgnore.d.ts +1 -1
  288. package/dist/object-Bvy6-w9r.js +47 -0
  289. package/dist/object-C_Vr6_S5.cjs +58 -0
  290. package/dist/options-DlvhQwWB.cjs +775 -0
  291. package/dist/pipeline-helpers-XtUmUlci.cjs +955 -0
  292. package/dist/postcss-html-transform.cjs +7 -0
  293. package/dist/postcss-html-transform.js +3 -5
  294. package/dist/postcss.cjs +15 -0
  295. package/dist/postcss.js +7 -11
  296. package/dist/presets/hbuilderx.d.ts +2 -2
  297. package/dist/presets/index.d.ts +4 -4
  298. package/dist/presets/shared.d.ts +1 -1
  299. package/dist/presets/taro.d.ts +2 -2
  300. package/dist/presets/uni-app-x.d.ts +1 -1
  301. package/dist/presets/uni-app.d.ts +2 -2
  302. package/dist/{presets.mjs → presets.cjs} +37 -24
  303. package/dist/presets.d.ts +1 -1
  304. package/dist/presets.js +24 -36
  305. package/dist/reset.cjs +19 -0
  306. package/dist/reset.d.ts +2 -2
  307. package/dist/reset.js +2 -19
  308. package/dist/{rolldown-runtime-emK7D4bc.js → rolldown-runtime-CVvi-lCc.cjs} +15 -0
  309. package/dist/{rspack.mjs → rspack.cjs} +10 -4
  310. package/dist/rspack.d.ts +3 -3
  311. package/dist/rspack.js +4 -10
  312. package/dist/runtime-branch/create-branch.d.ts +1 -1
  313. package/dist/runtime-branch/generator-target-env.d.ts +1 -1
  314. package/dist/runtime-branch/index.d.ts +2 -2
  315. package/dist/runtime-branch/mini-program.d.ts +1 -1
  316. package/dist/runtime-branch/native-app.d.ts +1 -1
  317. package/dist/runtime-branch/platform.d.ts +2 -2
  318. package/dist/runtime-branch/tailwind-version.d.ts +1 -1
  319. package/dist/runtime-branch/types.d.ts +2 -2
  320. package/dist/runtime-branch/web.d.ts +1 -1
  321. package/dist/runtime-branch.d.ts +1 -1
  322. package/dist/runtime-registry-Y7NrD2WH.cjs +31 -0
  323. package/dist/shared/classname-transform.d.ts +1 -1
  324. package/dist/shared/mpx.d.ts +1 -1
  325. package/dist/source-candidate-scan-signature-B0S7f5P7.js +421 -0
  326. package/dist/source-candidate-scan-signature-BmSuoxR9.cjs +555 -0
  327. package/dist/style-injector/internal.d.ts +6 -6
  328. package/dist/style-options-CEfXwZzX.cjs +75 -0
  329. package/dist/tailwindcss/candidates.d.ts +2 -2
  330. package/dist/tailwindcss/index.d.ts +1 -1
  331. package/dist/tailwindcss/runtime/cache.d.ts +1 -1
  332. package/dist/tailwindcss/runtime-factory.d.ts +2 -2
  333. package/dist/tailwindcss/runtime-options.d.ts +1 -1
  334. package/dist/tailwindcss/runtime-types.d.ts +2 -2
  335. package/dist/tailwindcss/runtime.d.ts +2 -2
  336. package/dist/tailwindcss/source-scan.d.ts +2 -2
  337. package/dist/tailwindcss/targets.d.ts +1 -1
  338. package/dist/tailwindcss/v4/config.d.ts +1 -1
  339. package/dist/tailwindcss/v4/css-sources.d.ts +2 -1
  340. package/dist/tailwindcss/v4/index.d.ts +2 -2
  341. package/dist/tailwindcss/v4/multi-runtime.d.ts +1 -1
  342. package/dist/tailwindcss/v4/runtime-factory.d.ts +5 -5
  343. package/dist/tailwindcss/v4/runtime-options.d.ts +1 -1
  344. package/dist/tailwindcss/v4-engine/css-macro-source.d.ts +1 -1
  345. package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
  346. package/dist/tailwindcss/v4-engine/generator/engine.d.ts +1 -1
  347. package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +4 -5
  348. package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +17 -0
  349. package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +2 -1
  350. package/dist/tailwindcss/v4-engine/generator.d.ts +2 -2
  351. package/dist/tailwindcss/v4-engine/index.d.ts +5 -5
  352. package/dist/tailwindcss/v4-engine/miniprogram.d.ts +2 -2
  353. package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
  354. package/dist/tailwindcss/v4-engine/types.d.ts +1 -0
  355. package/dist/{tailwindcss-B4phC0kB.js → tailwindcss-Cs94gJgf.cjs} +9 -769
  356. package/dist/{tailwindcss-BTcXX8Ka.mjs → tailwindcss-D7TGiZR2.js} +22 -22
  357. package/dist/transform-BUEyOCT7.cjs +341 -0
  358. package/dist/transform-BbaPIji9.js +342 -0
  359. package/dist/typedoc.export.d.ts +4 -4
  360. package/dist/types/index.d.ts +7 -7
  361. package/dist/types/shared.d.ts +1 -1
  362. package/dist/types/typedoc-tailwindcss-runtime.d.ts +3 -3
  363. package/dist/types/user-defined-options/general.d.ts +5 -5
  364. package/dist/types/user-defined-options/important.d.ts +2 -2
  365. package/dist/types/user-defined-options/index.d.ts +9 -9
  366. package/dist/types/user-defined-options/matcher.d.ts +2 -2
  367. package/dist/types.cjs +0 -0
  368. package/dist/types.d.ts +1 -1
  369. package/dist/types.js +1 -0
  370. package/dist/uni-app-x/harmony.d.ts +1 -0
  371. package/dist/uni-app-x/index.d.ts +2 -2
  372. package/dist/uni-app-x/options.d.ts +1 -1
  373. package/dist/uni-app-x/style-asset/harmony-apply.d.ts +1 -0
  374. package/dist/uni-app-x/style-asset/style-value.d.ts +3 -0
  375. package/dist/uni-app-x/style-asset.d.ts +5 -4
  376. package/dist/uni-app-x/transform.d.ts +1 -1
  377. package/dist/uni-app-x/vite/harmony-apply.d.ts +19 -0
  378. package/dist/uni-app-x/vite/native-target.d.ts +2 -0
  379. package/dist/uni-app-x/vite.d.ts +5 -2
  380. package/dist/unocss/index.d.ts +1 -1
  381. package/dist/utils/disabled.d.ts +1 -1
  382. package/dist/utils/index.d.ts +3 -3
  383. package/dist/{hmr-timing-CMPaWn9P.js → v4-generation-core-D7MuR5ZF.cjs} +3468 -2059
  384. package/dist/{vite-BwQWl9ft.mjs → vite-BI1TeUPO.js} +5968 -4456
  385. package/dist/{vite-DhVnXvAQ.js → vite-CBzmUTu-.cjs} +6159 -4672
  386. package/dist/vite.cjs +4 -0
  387. package/dist/vite.d.ts +3 -3
  388. package/dist/vite.js +2 -4
  389. package/dist/watch-dependencies-BZGubvuJ.cjs +40 -0
  390. package/dist/{weapp-tw-css-generation-loader.js → weapp-tw-css-generation-loader.cjs} +3 -2
  391. package/dist/weapp-tw-css-import-rewrite-loader.cjs +201 -0
  392. package/dist/{weapp-tw-runtime-classset-loader.js → weapp-tw-runtime-classset-loader.cjs} +9 -11
  393. package/dist/{webpack-kh78iMSS.js → webpack-Dao6bWEj.cjs} +208 -954
  394. package/dist/{webpack-Bo1QrFPf.mjs → webpack-dAY9h8r8.js} +105 -101
  395. package/dist/webpack.cjs +5 -0
  396. package/dist/webpack.d.ts +2 -2
  397. package/dist/webpack.js +2 -5
  398. package/dist/wxml/Tokenizer.d.ts +2 -2
  399. package/dist/wxml/custom-attributes.d.ts +1 -1
  400. package/dist/wxml/index.d.ts +2 -2
  401. package/dist/wxml/shared.d.ts +1 -1
  402. package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +1 -1
  403. package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
  404. package/dist/wxml/utils/codegen.d.ts +1 -1
  405. package/dist/wxml/utils/custom-template.d.ts +2 -2
  406. package/dist/wxml/utils/fragment-helpers.d.ts +2 -2
  407. package/dist/wxml/utils/fragment-updater.d.ts +2 -2
  408. package/dist/wxml/utils/template-fragments.d.ts +2 -2
  409. package/dist/wxml/utils.d.ts +5 -5
  410. package/dist/wxml-DSMNuUaP.cjs +38609 -0
  411. package/dist/{cli.mjs → wxml-IBzZSaQC.js} +237 -714
  412. package/package.json +56 -53
  413. package/dist/css-macro/postcss.mjs +0 -2
  414. package/dist/generator.mjs +0 -2
  415. package/dist/gulp.mjs +0 -2
  416. package/dist/index.mjs +0 -9
  417. package/dist/object-BJSWl-E5.mjs +0 -9
  418. package/dist/object-COs_Mw6p.js +0 -14
  419. package/dist/postcss-html-transform.mjs +0 -5
  420. package/dist/postcss.mjs +0 -11
  421. package/dist/reset.mjs +0 -2
  422. package/dist/source-candidate-scan-signature-BKZZk_e6.js +0 -1078
  423. package/dist/source-candidate-scan-signature-CtK-mB_C.mjs +0 -854
  424. package/dist/transform-B_KM9sLX.mjs +0 -14930
  425. package/dist/transform-CcYptivi.js +0 -14927
  426. package/dist/types.mjs +0 -1
  427. package/dist/vite.mjs +0 -2
  428. package/dist/watch-dependencies-bpG6kmAf.js +0 -80
  429. package/dist/weapp-tw-css-import-rewrite-loader-B0tVkJLH.js +0 -10524
  430. package/dist/weapp-tw-css-import-rewrite-loader.js +0 -10
  431. package/dist/webpack.mjs +0 -2
  432. package/dist/wxml-Ce10eREX.js +0 -3979
  433. package/dist/wxml-DdGdeqaH.mjs +0 -3861
  434. /package/dist/{auto-2dg_uhEJ.mjs → auto-2dg_uhEJ.js} +0 -0
  435. /package/dist/{auto-DtU6f3X6.js → auto-DtU6f3X6.cjs} +0 -0
  436. /package/dist/bundlers/{vite → shared}/source-scan/dependencies.d.ts +0 -0
  437. /package/dist/{cache-options-DavPxrhC.js → cache-options-DavPxrhC.cjs} +0 -0
  438. /package/dist/{cache-options-DwBtLwQe.mjs → cache-options-DwBtLwQe.js} +0 -0
  439. /package/dist/{logger-BNzxZbZj.mjs → logger-BNzxZbZj.js} +0 -0
  440. /package/dist/{logger-TlKT3xmR.js → logger-TlKT3xmR.cjs} +0 -0
  441. /package/dist/{utils-CuKLf1Zv.js → utils-CuKLf1Zv.cjs} +0 -0
  442. /package/dist/{utils-MVwpU07P.mjs → utils-MVwpU07P.js} +0 -0
package/dist/css-macro.js CHANGED
@@ -1,9 +1,6 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
2
- const require_auto = require("./auto-DtU6f3X6.js");
3
- require("./utils-CuKLf1Zv.js");
4
- let tailwindcss_plugin = require("tailwindcss/plugin");
5
- tailwindcss_plugin = require_rolldown_runtime.__toESM(tailwindcss_plugin);
6
- let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
1
+ import { a as markCssMacroPlugin } from "./auto-2dg_uhEJ.js";
2
+ import { t as defu } from "./utils-MVwpU07P.js";
3
+ import plugin from "tailwindcss/plugin";
7
4
  //#region src/css-macro/constants.ts
8
5
  const queryKey = "weapp-tw-platform";
9
6
  const ifdefAtRule = "weapp-tw-ifdef";
@@ -24,8 +21,8 @@ const defaultOptions = {
24
21
  dynamic: true,
25
22
  variantsMap: {}
26
23
  };
27
- const cssMacroFactory = tailwindcss_plugin.default.withOptions((options) => {
28
- const { dynamic, variantsMap } = (0, _weapp_tailwindcss_shared.defu)(options ?? {}, defaultOptions);
24
+ const cssMacroFactory = plugin.withOptions((options) => {
25
+ const { dynamic, variantsMap } = defu(options ?? {}, defaultOptions);
29
26
  const staticVariants = Object.entries(variantsMap).map(([name, config]) => {
30
27
  if (typeof config === "string") return {
31
28
  name,
@@ -50,8 +47,8 @@ const cssMacroFactory = tailwindcss_plugin.default.withOptions((options) => {
50
47
  }
51
48
  };
52
49
  });
53
- const cssMacro = require_auto.markCssMacroPlugin(((options) => {
54
- return require_auto.markCssMacroPlugin(cssMacroFactory(options));
50
+ const cssMacro = markCssMacroPlugin(((options) => {
51
+ return markCssMacroPlugin(cssMacroFactory(options));
55
52
  }));
56
53
  const cssMacroOptionsFunction = cssMacro;
57
54
  const cssMacroFactoryOptionsFunction = cssMacroFactory;
@@ -59,4 +56,4 @@ cssMacroOptionsFunction.__isOptionsFunction = cssMacroFactoryOptionsFunction.__i
59
56
  cssMacroOptionsFunction.__pluginFunction = cssMacroFactoryOptionsFunction.__pluginFunction;
60
57
  cssMacroOptionsFunction.__configFunction = cssMacroFactoryOptionsFunction.__configFunction;
61
58
  //#endregion
62
- module.exports = cssMacro;
59
+ export { cssMacro as default };
@@ -1,6 +1,8 @@
1
- import { a as noop } from "./utils-MVwpU07P.mjs";
2
- import { t as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH } from "./cache-options-DwBtLwQe.mjs";
3
- import { MappingChars2String, isAllowedClassName } from "@weapp-core/escape";
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("./utils-CuKLf1Zv.cjs");
3
+ const require_cache_options = require("./cache-options-DavPxrhC.cjs");
4
+ let _weapp_core_escape = require("@weapp-core/escape");
5
+ let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
4
6
  //#region src/defaults.ts
5
7
  const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty)ss$/;
6
8
  const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|ty|xhs)ml|swan)$/;
@@ -58,12 +60,12 @@ function getDefaultOptions() {
58
60
  wxsMatcher: alwaysFalse,
59
61
  cssPreflight: getDefaultCssPreflight(),
60
62
  disabled: false,
61
- onLoad: noop,
62
- onStart: noop,
63
- onEnd: noop,
64
- onUpdate: noop,
63
+ onLoad: _weapp_tailwindcss_shared.noop,
64
+ onStart: _weapp_tailwindcss_shared.noop,
65
+ onEnd: _weapp_tailwindcss_shared.noop,
66
+ onUpdate: _weapp_tailwindcss_shared.noop,
65
67
  customAttributes: {},
66
- customReplaceDictionary: MappingChars2String,
68
+ customReplaceDictionary: _weapp_core_escape.MappingChars2String,
67
69
  appType: void 0,
68
70
  arbitraryValues: {
69
71
  allowDoubleQuotes: false,
@@ -94,7 +96,7 @@ function getDefaultOptions() {
94
96
  cache: true,
95
97
  cacheKey: "st:unambiguous",
96
98
  cacheMaxEntries: 128,
97
- cacheMaxSourceLength: DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
99
+ cacheMaxSourceLength: require_cache_options.DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
98
100
  },
99
101
  postcssOptions: {},
100
102
  cssRemoveProperty: true,
@@ -106,10 +108,13 @@ function getDefaultOptions() {
106
108
  generator: {},
107
109
  cssSourceTrace: false,
108
110
  tailwindcssRuntimeOptions: { filter(className) {
109
- return !isAllowedClassName(className);
111
+ return !(0, _weapp_core_escape.isAllowedClassName)(className);
110
112
  } },
111
113
  logLevel: "info"
112
114
  };
113
115
  }
114
116
  //#endregion
115
- export { TAILWIND_V4_CSS_PREFLIGHT, getDefaultCssPreflight, getDefaultOptions, resolveDefaultCssPreflight };
117
+ exports.TAILWIND_V4_CSS_PREFLIGHT = TAILWIND_V4_CSS_PREFLIGHT;
118
+ exports.getDefaultCssPreflight = getDefaultCssPreflight;
119
+ exports.getDefaultOptions = getDefaultOptions;
120
+ exports.resolveDefaultCssPreflight = resolveDefaultCssPreflight;
@@ -1,4 +1,4 @@
1
- import type { CssPreflightOptions, UserDefinedOptions } from './types';
1
+ import type { CssPreflightOptions, UserDefinedOptions } from './types/index.js';
2
2
  export declare const TAILWIND_V4_CSS_PREFLIGHT: {
3
3
  border: string;
4
4
  'box-sizing': string;
package/dist/defaults.js CHANGED
@@ -1,8 +1,6 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./utils-CuKLf1Zv.js");
3
- const require_cache_options = require("./cache-options-DavPxrhC.js");
4
- let _weapp_core_escape = require("@weapp-core/escape");
5
- let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
1
+ import { a as noop } from "./utils-MVwpU07P.js";
2
+ import { t as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH } from "./cache-options-DwBtLwQe.js";
3
+ import { MappingChars2String, isAllowedClassName } from "@weapp-core/escape";
6
4
  //#region src/defaults.ts
7
5
  const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty)ss$/;
8
6
  const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|ty|xhs)ml|swan)$/;
@@ -60,12 +58,12 @@ function getDefaultOptions() {
60
58
  wxsMatcher: alwaysFalse,
61
59
  cssPreflight: getDefaultCssPreflight(),
62
60
  disabled: false,
63
- onLoad: _weapp_tailwindcss_shared.noop,
64
- onStart: _weapp_tailwindcss_shared.noop,
65
- onEnd: _weapp_tailwindcss_shared.noop,
66
- onUpdate: _weapp_tailwindcss_shared.noop,
61
+ onLoad: noop,
62
+ onStart: noop,
63
+ onEnd: noop,
64
+ onUpdate: noop,
67
65
  customAttributes: {},
68
- customReplaceDictionary: _weapp_core_escape.MappingChars2String,
66
+ customReplaceDictionary: MappingChars2String,
69
67
  appType: void 0,
70
68
  arbitraryValues: {
71
69
  allowDoubleQuotes: false,
@@ -96,7 +94,7 @@ function getDefaultOptions() {
96
94
  cache: true,
97
95
  cacheKey: "st:unambiguous",
98
96
  cacheMaxEntries: 128,
99
- cacheMaxSourceLength: require_cache_options.DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
97
+ cacheMaxSourceLength: DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
100
98
  },
101
99
  postcssOptions: {},
102
100
  cssRemoveProperty: true,
@@ -108,13 +106,10 @@ function getDefaultOptions() {
108
106
  generator: {},
109
107
  cssSourceTrace: false,
110
108
  tailwindcssRuntimeOptions: { filter(className) {
111
- return !(0, _weapp_core_escape.isAllowedClassName)(className);
109
+ return !isAllowedClassName(className);
112
110
  } },
113
111
  logLevel: "info"
114
112
  };
115
113
  }
116
114
  //#endregion
117
- exports.TAILWIND_V4_CSS_PREFLIGHT = TAILWIND_V4_CSS_PREFLIGHT;
118
- exports.getDefaultCssPreflight = getDefaultCssPreflight;
119
- exports.getDefaultOptions = getDefaultOptions;
120
- exports.resolveDefaultCssPreflight = resolveDefaultCssPreflight;
115
+ export { TAILWIND_V4_CSS_PREFLIGHT, getDefaultCssPreflight, getDefaultOptions, resolveDefaultCssPreflight };
@@ -1,4 +1,5 @@
1
- import { MappingChars2String, escape, isAllowedClassName, unescape } from "@weapp-core/escape";
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _weapp_core_escape = require("@weapp-core/escape");
2
3
  //#region src/utils/object.ts
3
4
  function definedEntries(value) {
4
5
  return Object.entries(value).filter(([, item]) => item !== void 0);
@@ -11,12 +12,12 @@ function omitUndefined(value) {
11
12
  const NEWLINE_RE = /[\n\r]+/g;
12
13
  function replaceWxml(original, options = {
13
14
  keepEOL: false,
14
- escapeMap: MappingChars2String
15
+ escapeMap: _weapp_core_escape.MappingChars2String
15
16
  }) {
16
17
  const { keepEOL, escapeMap, ignoreHead } = options;
17
18
  let res = original;
18
19
  if (!keepEOL) res = res.replaceAll(NEWLINE_RE, "");
19
- res = escape(res, omitUndefined({
20
+ res = (0, _weapp_core_escape.escape)(res, omitUndefined({
20
21
  map: escapeMap,
21
22
  ignoreHead
22
23
  }));
@@ -26,4 +27,17 @@ function replaceWxml(original, options = {
26
27
  //#region src/escape.ts
27
28
  const weappTwIgnore = String.raw;
28
29
  //#endregion
29
- export { replaceWxml as escape, isAllowedClassName, unescape, weappTwIgnore };
30
+ exports.escape = replaceWxml;
31
+ Object.defineProperty(exports, "isAllowedClassName", {
32
+ enumerable: true,
33
+ get: function() {
34
+ return _weapp_core_escape.isAllowedClassName;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, "unescape", {
38
+ enumerable: true,
39
+ get: function() {
40
+ return _weapp_core_escape.unescape;
41
+ }
42
+ });
43
+ exports.weappTwIgnore = weappTwIgnore;
package/dist/escape.js CHANGED
@@ -1,5 +1,4 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let _weapp_core_escape = require("@weapp-core/escape");
1
+ import { MappingChars2String, escape, isAllowedClassName, unescape } from "@weapp-core/escape";
3
2
  //#region src/utils/object.ts
4
3
  function definedEntries(value) {
5
4
  return Object.entries(value).filter(([, item]) => item !== void 0);
@@ -12,12 +11,12 @@ function omitUndefined(value) {
12
11
  const NEWLINE_RE = /[\n\r]+/g;
13
12
  function replaceWxml(original, options = {
14
13
  keepEOL: false,
15
- escapeMap: _weapp_core_escape.MappingChars2String
14
+ escapeMap: MappingChars2String
16
15
  }) {
17
16
  const { keepEOL, escapeMap, ignoreHead } = options;
18
17
  let res = original;
19
18
  if (!keepEOL) res = res.replaceAll(NEWLINE_RE, "");
20
- res = (0, _weapp_core_escape.escape)(res, omitUndefined({
19
+ res = escape(res, omitUndefined({
21
20
  map: escapeMap,
22
21
  ignoreHead
23
22
  }));
@@ -27,17 +26,4 @@ function replaceWxml(original, options = {
27
26
  //#region src/escape.ts
28
27
  const weappTwIgnore = String.raw;
29
28
  //#endregion
30
- exports.escape = replaceWxml;
31
- Object.defineProperty(exports, "isAllowedClassName", {
32
- enumerable: true,
33
- get: function() {
34
- return _weapp_core_escape.isAllowedClassName;
35
- }
36
- });
37
- Object.defineProperty(exports, "unescape", {
38
- enumerable: true,
39
- get: function() {
40
- return _weapp_core_escape.unescape;
41
- }
42
- });
43
- exports.weappTwIgnore = weappTwIgnore;
29
+ export { replaceWxml as escape, isAllowedClassName, unescape, weappTwIgnore };
@@ -1,2 +1,2 @@
1
- import type { DetectableAppType } from './index';
1
+ import type { DetectableAppType } from './index.js';
2
2
  export declare function normalizeFrameworkStylePlatform(platform: string | undefined, appType: DetectableAppType | undefined): string | undefined;
@@ -1,6 +1,10 @@
1
- import { existsSync, readFileSync } from "node:fs";
2
- import path from "node:path";
3
- import process from "node:process";
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
3
+ let node_fs = require("node:fs");
4
+ let node_path = require("node:path");
5
+ node_path = require_rolldown_runtime.__toESM(node_path, 1);
6
+ let node_process = require("node:process");
7
+ node_process = require_rolldown_runtime.__toESM(node_process, 1);
4
8
  //#region src/framework/index.ts
5
9
  const KNOWN_MAC_HBUILDERX_PLUGIN_DIRS = ["/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite", "/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli"];
6
10
  const HBUILDERX_PLUGIN_CWD_RE = /[\\/]HBuilderX(?:\.[^\\/]*)?(?:[\\/]Contents[\\/]HBuilderX)?[\\/]plugins[\\/]uniapp-cli(?:-vite)?(?:[\\/]|$)/i;
@@ -25,14 +29,14 @@ const MINI_PROGRAM_PLATFORMS = /* @__PURE__ */ new Set([
25
29
  const MPX_MARKERS = [["src/app.mpx", "mpx"], ["app.mpx", "mpx"]];
26
30
  function getProcessEnv() {
27
31
  return {
28
- MPX_CLI_MODE: process.env["MPX_CLI_MODE"],
29
- MPX_CURRENT_TARGET_MODE: process.env["MPX_CURRENT_TARGET_MODE"],
30
- NODE_PATH: process.env["NODE_PATH"],
31
- TARO_ENV: process.env["TARO_ENV"],
32
- UNI_PLATFORM: process.env["UNI_PLATFORM"],
33
- UNI_UTS_PLATFORM: process.env["UNI_UTS_PLATFORM"],
34
- WEAPP_TAILWINDCSS_TARGET: process.env["WEAPP_TAILWINDCSS_TARGET"],
35
- WEAPP_TW_TARGET: process.env["WEAPP_TW_TARGET"]
32
+ MPX_CLI_MODE: node_process.default.env["MPX_CLI_MODE"],
33
+ MPX_CURRENT_TARGET_MODE: node_process.default.env["MPX_CURRENT_TARGET_MODE"],
34
+ NODE_PATH: node_process.default.env["NODE_PATH"],
35
+ TARO_ENV: node_process.default.env["TARO_ENV"],
36
+ UNI_PLATFORM: node_process.default.env["UNI_PLATFORM"],
37
+ UNI_UTS_PLATFORM: node_process.default.env["UNI_UTS_PLATFORM"],
38
+ WEAPP_TAILWINDCSS_TARGET: node_process.default.env["WEAPP_TAILWINDCSS_TARGET"],
39
+ WEAPP_TW_TARGET: node_process.default.env["WEAPP_TW_TARGET"]
36
40
  };
37
41
  }
38
42
  function resolveDependencyNames(pkg) {
@@ -70,13 +74,13 @@ function resolvePlatformInfo(value) {
70
74
  }
71
75
  function hasKnownHBuilderXPluginPrefix(normalizedCwd) {
72
76
  for (const dir of KNOWN_MAC_HBUILDERX_PLUGIN_DIRS) {
73
- const normalizedDir = path.normalize(dir);
74
- if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${path.sep}`)) return true;
77
+ const normalizedDir = node_path.default.normalize(dir);
78
+ if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${node_path.default.sep}`)) return true;
75
79
  }
76
80
  return false;
77
81
  }
78
82
  function matchesHBuilderXPluginCwd(cwd) {
79
- const normalized = path.normalize(cwd);
83
+ const normalized = node_path.default.normalize(cwd);
80
84
  if (hasKnownHBuilderXPluginPrefix(normalized)) return true;
81
85
  return HBUILDERX_PLUGIN_CWD_RE.test(normalized);
82
86
  }
@@ -84,7 +88,7 @@ function isRunningInHBuilderX(options = {}) {
84
88
  const env = options.env ?? getProcessEnv();
85
89
  const nodePath = "nodePath" in options ? options.nodePath : env.NODE_PATH;
86
90
  if (!(nodePath == null || nodePath.trim().length === 0)) return false;
87
- return matchesHBuilderXPluginCwd(options.cwd ?? process.cwd());
91
+ return matchesHBuilderXPluginCwd(options.cwd ?? node_process.default.cwd());
88
92
  }
89
93
  function resolvePlatform(value) {
90
94
  return resolvePlatformInfo(value);
@@ -159,29 +163,29 @@ function detectAppTypeFromPackageJson(pkg) {
159
163
  if (isUniAppPackage(pkg)) return "uni-app";
160
164
  }
161
165
  function tryReadJson(file) {
162
- if (!existsSync(file)) return;
166
+ if (!(0, node_fs.existsSync)(file)) return;
163
167
  try {
164
- return JSON.parse(readFileSync(file, "utf8"));
168
+ return JSON.parse((0, node_fs.readFileSync)(file, "utf8"));
165
169
  } catch {}
166
170
  }
167
171
  function detectAppTypeFromMarkers(root) {
168
- for (const [relativePath, appType] of MPX_MARKERS) if (existsSync(path.join(root, relativePath))) return appType;
172
+ for (const [relativePath, appType] of MPX_MARKERS) if ((0, node_fs.existsSync)(node_path.default.join(root, relativePath))) return appType;
169
173
  }
170
174
  function detectAppTypeFromRoot(root, searchUp = true) {
171
- const resolvedRoot = path.resolve(root);
172
- if (!existsSync(resolvedRoot)) return;
175
+ const resolvedRoot = node_path.default.resolve(root);
176
+ if (!(0, node_fs.existsSync)(resolvedRoot)) return;
173
177
  const markerDetected = detectAppTypeFromMarkers(resolvedRoot);
174
178
  if (markerDetected) return markerDetected;
175
179
  let current = resolvedRoot;
176
180
  while (true) {
177
- if (isUniAppXManifest(tryReadJson(path.join(current, MANIFEST_JSON_FILE)))) return "uni-app-x";
178
- const pkg = tryReadJson(path.join(current, PACKAGE_JSON_FILE));
181
+ if (isUniAppXManifest(tryReadJson(node_path.default.join(current, MANIFEST_JSON_FILE)))) return "uni-app-x";
182
+ const pkg = tryReadJson(node_path.default.join(current, PACKAGE_JSON_FILE));
179
183
  if (pkg) {
180
184
  const detected = detectAppTypeFromPackageJson(pkg);
181
185
  if (detected) return detected;
182
186
  }
183
187
  if (!searchUp) break;
184
- const parent = path.dirname(current);
188
+ const parent = node_path.default.dirname(current);
185
189
  if (parent === current) break;
186
190
  current = parent;
187
191
  }
@@ -198,10 +202,28 @@ function detectAppType(options = {}) {
198
202
  }
199
203
  const env = options.env ?? (options.detectEnv ? getProcessEnv() : void 0);
200
204
  if (env) return detectAppTypeFromEnv(env, {
201
- cwd: options.cwd ?? options.root ?? (options.detectEnv ? process.cwd() : void 0),
205
+ cwd: options.cwd ?? options.root ?? (options.detectEnv ? node_process.default.cwd() : void 0),
202
206
  hbuilderxVite: options.hbuilderxVite
203
207
  });
204
208
  }
205
209
  const resolveImplicitAppTypeFromViteRoot = (root) => detectAppType({ root });
206
210
  //#endregion
207
- export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
211
+ exports.detectAppType = detectAppType;
212
+ exports.detectAppTypeFromEnv = detectAppTypeFromEnv;
213
+ exports.detectAppTypeFromPackageJson = detectAppTypeFromPackageJson;
214
+ exports.isMpxPackage = isMpxPackage;
215
+ exports.isRunningInHBuilderX = isRunningInHBuilderX;
216
+ exports.isTaroPackage = isTaroPackage;
217
+ exports.isUniAppPackage = isUniAppPackage;
218
+ exports.isUniAppVitePackage = isUniAppVitePackage;
219
+ exports.isUniAppXManifest = isUniAppXManifest;
220
+ exports.isUniAppXPackage = isUniAppXPackage;
221
+ exports.isWeappVitePackage = isWeappVitePackage;
222
+ exports.resolveImplicitAppTypeFromViteRoot = resolveImplicitAppTypeFromViteRoot;
223
+ exports.resolveMpxPlatform = resolveMpxPlatform;
224
+ exports.resolvePlatform = resolvePlatform;
225
+ exports.resolveTaroPlatform = resolveTaroPlatform;
226
+ exports.resolveUniAppXPlatform = resolveUniAppXPlatform;
227
+ exports.resolveUniPlatform = resolveUniPlatform;
228
+ exports.resolveUniPlatformsFromEnv = resolveUniPlatformsFromEnv;
229
+ exports.resolveUniUtsPlatform = resolveUniUtsPlatform;
@@ -1 +1 @@
1
- export * from './framework/index'
1
+ export * from './framework/index.js'
package/dist/framework.js CHANGED
@@ -1,10 +1,6 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
3
- let node_fs = require("node:fs");
4
- let node_path = require("node:path");
5
- node_path = require_rolldown_runtime.__toESM(node_path);
6
- let node_process = require("node:process");
7
- node_process = require_rolldown_runtime.__toESM(node_process);
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import path from "node:path";
3
+ import process from "node:process";
8
4
  //#region src/framework/index.ts
9
5
  const KNOWN_MAC_HBUILDERX_PLUGIN_DIRS = ["/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite", "/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli"];
10
6
  const HBUILDERX_PLUGIN_CWD_RE = /[\\/]HBuilderX(?:\.[^\\/]*)?(?:[\\/]Contents[\\/]HBuilderX)?[\\/]plugins[\\/]uniapp-cli(?:-vite)?(?:[\\/]|$)/i;
@@ -29,14 +25,14 @@ const MINI_PROGRAM_PLATFORMS = /* @__PURE__ */ new Set([
29
25
  const MPX_MARKERS = [["src/app.mpx", "mpx"], ["app.mpx", "mpx"]];
30
26
  function getProcessEnv() {
31
27
  return {
32
- MPX_CLI_MODE: node_process.default.env["MPX_CLI_MODE"],
33
- MPX_CURRENT_TARGET_MODE: node_process.default.env["MPX_CURRENT_TARGET_MODE"],
34
- NODE_PATH: node_process.default.env["NODE_PATH"],
35
- TARO_ENV: node_process.default.env["TARO_ENV"],
36
- UNI_PLATFORM: node_process.default.env["UNI_PLATFORM"],
37
- UNI_UTS_PLATFORM: node_process.default.env["UNI_UTS_PLATFORM"],
38
- WEAPP_TAILWINDCSS_TARGET: node_process.default.env["WEAPP_TAILWINDCSS_TARGET"],
39
- WEAPP_TW_TARGET: node_process.default.env["WEAPP_TW_TARGET"]
28
+ MPX_CLI_MODE: process.env["MPX_CLI_MODE"],
29
+ MPX_CURRENT_TARGET_MODE: process.env["MPX_CURRENT_TARGET_MODE"],
30
+ NODE_PATH: process.env["NODE_PATH"],
31
+ TARO_ENV: process.env["TARO_ENV"],
32
+ UNI_PLATFORM: process.env["UNI_PLATFORM"],
33
+ UNI_UTS_PLATFORM: process.env["UNI_UTS_PLATFORM"],
34
+ WEAPP_TAILWINDCSS_TARGET: process.env["WEAPP_TAILWINDCSS_TARGET"],
35
+ WEAPP_TW_TARGET: process.env["WEAPP_TW_TARGET"]
40
36
  };
41
37
  }
42
38
  function resolveDependencyNames(pkg) {
@@ -74,13 +70,13 @@ function resolvePlatformInfo(value) {
74
70
  }
75
71
  function hasKnownHBuilderXPluginPrefix(normalizedCwd) {
76
72
  for (const dir of KNOWN_MAC_HBUILDERX_PLUGIN_DIRS) {
77
- const normalizedDir = node_path.default.normalize(dir);
78
- if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${node_path.default.sep}`)) return true;
73
+ const normalizedDir = path.normalize(dir);
74
+ if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${path.sep}`)) return true;
79
75
  }
80
76
  return false;
81
77
  }
82
78
  function matchesHBuilderXPluginCwd(cwd) {
83
- const normalized = node_path.default.normalize(cwd);
79
+ const normalized = path.normalize(cwd);
84
80
  if (hasKnownHBuilderXPluginPrefix(normalized)) return true;
85
81
  return HBUILDERX_PLUGIN_CWD_RE.test(normalized);
86
82
  }
@@ -88,7 +84,7 @@ function isRunningInHBuilderX(options = {}) {
88
84
  const env = options.env ?? getProcessEnv();
89
85
  const nodePath = "nodePath" in options ? options.nodePath : env.NODE_PATH;
90
86
  if (!(nodePath == null || nodePath.trim().length === 0)) return false;
91
- return matchesHBuilderXPluginCwd(options.cwd ?? node_process.default.cwd());
87
+ return matchesHBuilderXPluginCwd(options.cwd ?? process.cwd());
92
88
  }
93
89
  function resolvePlatform(value) {
94
90
  return resolvePlatformInfo(value);
@@ -163,29 +159,29 @@ function detectAppTypeFromPackageJson(pkg) {
163
159
  if (isUniAppPackage(pkg)) return "uni-app";
164
160
  }
165
161
  function tryReadJson(file) {
166
- if (!(0, node_fs.existsSync)(file)) return;
162
+ if (!existsSync(file)) return;
167
163
  try {
168
- return JSON.parse((0, node_fs.readFileSync)(file, "utf8"));
164
+ return JSON.parse(readFileSync(file, "utf8"));
169
165
  } catch {}
170
166
  }
171
167
  function detectAppTypeFromMarkers(root) {
172
- for (const [relativePath, appType] of MPX_MARKERS) if ((0, node_fs.existsSync)(node_path.default.join(root, relativePath))) return appType;
168
+ for (const [relativePath, appType] of MPX_MARKERS) if (existsSync(path.join(root, relativePath))) return appType;
173
169
  }
174
170
  function detectAppTypeFromRoot(root, searchUp = true) {
175
- const resolvedRoot = node_path.default.resolve(root);
176
- if (!(0, node_fs.existsSync)(resolvedRoot)) return;
171
+ const resolvedRoot = path.resolve(root);
172
+ if (!existsSync(resolvedRoot)) return;
177
173
  const markerDetected = detectAppTypeFromMarkers(resolvedRoot);
178
174
  if (markerDetected) return markerDetected;
179
175
  let current = resolvedRoot;
180
176
  while (true) {
181
- if (isUniAppXManifest(tryReadJson(node_path.default.join(current, MANIFEST_JSON_FILE)))) return "uni-app-x";
182
- const pkg = tryReadJson(node_path.default.join(current, PACKAGE_JSON_FILE));
177
+ if (isUniAppXManifest(tryReadJson(path.join(current, MANIFEST_JSON_FILE)))) return "uni-app-x";
178
+ const pkg = tryReadJson(path.join(current, PACKAGE_JSON_FILE));
183
179
  if (pkg) {
184
180
  const detected = detectAppTypeFromPackageJson(pkg);
185
181
  if (detected) return detected;
186
182
  }
187
183
  if (!searchUp) break;
188
- const parent = node_path.default.dirname(current);
184
+ const parent = path.dirname(current);
189
185
  if (parent === current) break;
190
186
  current = parent;
191
187
  }
@@ -202,28 +198,10 @@ function detectAppType(options = {}) {
202
198
  }
203
199
  const env = options.env ?? (options.detectEnv ? getProcessEnv() : void 0);
204
200
  if (env) return detectAppTypeFromEnv(env, {
205
- cwd: options.cwd ?? options.root ?? (options.detectEnv ? node_process.default.cwd() : void 0),
201
+ cwd: options.cwd ?? options.root ?? (options.detectEnv ? process.cwd() : void 0),
206
202
  hbuilderxVite: options.hbuilderxVite
207
203
  });
208
204
  }
209
205
  const resolveImplicitAppTypeFromViteRoot = (root) => detectAppType({ root });
210
206
  //#endregion
211
- exports.detectAppType = detectAppType;
212
- exports.detectAppTypeFromEnv = detectAppTypeFromEnv;
213
- exports.detectAppTypeFromPackageJson = detectAppTypeFromPackageJson;
214
- exports.isMpxPackage = isMpxPackage;
215
- exports.isRunningInHBuilderX = isRunningInHBuilderX;
216
- exports.isTaroPackage = isTaroPackage;
217
- exports.isUniAppPackage = isUniAppPackage;
218
- exports.isUniAppVitePackage = isUniAppVitePackage;
219
- exports.isUniAppXManifest = isUniAppXManifest;
220
- exports.isUniAppXPackage = isUniAppXPackage;
221
- exports.isWeappVitePackage = isWeappVitePackage;
222
- exports.resolveImplicitAppTypeFromViteRoot = resolveImplicitAppTypeFromViteRoot;
223
- exports.resolveMpxPlatform = resolveMpxPlatform;
224
- exports.resolvePlatform = resolvePlatform;
225
- exports.resolveTaroPlatform = resolveTaroPlatform;
226
- exports.resolveUniAppXPlatform = resolveUniAppXPlatform;
227
- exports.resolveUniPlatform = resolveUniPlatform;
228
- exports.resolveUniPlatformsFromEnv = resolveUniPlatformsFromEnv;
229
- exports.resolveUniUtsPlatform = resolveUniUtsPlatform;
207
+ export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
@@ -1,10 +1,10 @@
1
- import type { TailwindResolvedSource, WeappTailwindcssGenerator } from './types';
2
- import type { TailwindcssRuntimeLike } from '../types';
3
- import { resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp } from '../tailwindcss/v4-engine';
1
+ import type { TailwindResolvedSource, WeappTailwindcssGenerator } from './types.js';
2
+ import type { TailwindcssRuntimeLike } from '../types/index.js';
3
+ import { resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp } from '../tailwindcss/v4-engine/index.js';
4
4
  export declare function createWeappTailwindcssGenerator(source: TailwindResolvedSource): WeappTailwindcssGenerator;
5
5
  export declare function resolveTailwindSourceFromRuntime(tailwindRuntime: TailwindcssRuntimeLike): Promise<TailwindResolvedSource>;
6
6
  export declare function createWeappTailwindcssGeneratorFromRuntime(tailwindRuntime: TailwindcssRuntimeLike): Promise<WeappTailwindcssGenerator>;
7
- export { normalizeWeappTailwindcssGeneratorOptions, } from './options';
7
+ export { normalizeWeappTailwindcssGeneratorOptions, } from './options.js';
8
8
  export { resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp, };
9
- export type { NormalizedWeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorUserOptions, } from './options';
10
- export type { TailwindCandidateSource, TailwindGeneratorVersion, TailwindResolvedSource, TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions, WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult, WeappTailwindcssGenerator, WeappTailwindcssGeneratorTarget, } from './types';
9
+ export type { NormalizedWeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorUserOptions, } from './options.js';
10
+ export type { TailwindCandidateSource, TailwindGeneratorVersion, TailwindResolvedSource, TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions, WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult, WeappTailwindcssGenerator, WeappTailwindcssGeneratorTarget, } from './types.js';
@@ -1,7 +1,7 @@
1
1
  import type { IStyleHandlerOptions, WebCssCompatUserOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { WeappTailwindcssGeneratorTarget } from './types';
3
- import type { RuntimeBranch, RuntimeBranchContext } from '../runtime-branch';
4
- import type { IArbitraryValues } from '../types/shared';
2
+ import type { WeappTailwindcssGeneratorTarget } from './types.js';
3
+ import type { RuntimeBranch, RuntimeBranchContext } from '../runtime-branch.js';
4
+ import type { IArbitraryValues } from '../types/shared.js';
5
5
  export interface WeappTailwindcssGeneratorOptions {
6
6
  target?: WeappTailwindcssGeneratorTarget | undefined;
7
7
  config?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
2
- import type { WeappTailwindcssGeneratorTarget } from '../runtime-branch/types';
3
- import type { TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions } from '../tailwindcss/v4-engine';
2
+ import type { WeappTailwindcssGeneratorTarget } from '../runtime-branch/types.js';
3
+ import type { TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions } from '../tailwindcss/v4-engine/index.js';
4
4
  export type { WeappTailwindcssGeneratorTarget };
5
5
  export type TailwindGeneratorVersion = 4;
6
6
  export type TailwindCandidateSource = TailwindV4CandidateSource;