weapp-tailwindcss 5.5.5 → 5.5.7
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.
- package/dist/{auto-DtU6f3X6.cjs → auto-B1OyRrE8.cjs} +1 -1
- package/dist/{auto-2dg_uhEJ.js → auto-ENr4xzzw.js} +1 -1
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +5 -4
- package/dist/bundlers/shared/css-cleanup/at-rules.d.ts +1 -1
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/css-source-trace.d.ts +2 -5
- package/dist/bundlers/shared/final-css-cleanup.d.ts +1 -2
- package/dist/bundlers/shared/framework-css-composition.d.ts +1 -0
- package/dist/bundlers/shared/framework-postcss.d.ts +1 -24
- package/dist/bundlers/shared/framework-user-css.d.ts +1 -3
- package/dist/bundlers/shared/generated-css-marker.d.ts +1 -9
- package/dist/bundlers/shared/generator-css/candidates.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/class-selectors.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/config-directive.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/directives/fallback.d.ts +1 -11
- package/dist/bundlers/shared/generator-css/directives.d.ts +1 -25
- package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +1 -19
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +1 -25
- package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +1 -30
- package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +1 -9
- package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/local-imports.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/markers.d.ts +1 -28
- package/dist/bundlers/shared/generator-css/output-import-shell.d.ts +1 -8
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +1 -58
- package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +1 -6
- package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -21
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +1 -13
- package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +1 -7
- package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +1 -33
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +1 -28
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -14
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +1 -16
- package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +1 -22
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +1 -7
- package/dist/bundlers/shared/generator-css/types.d.ts +1 -61
- package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +1 -9
- package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/user-css/compile-functions.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +1 -15
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +1 -15
- package/dist/bundlers/shared/generator-css/user-css.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/user-layer-order.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -7
- package/dist/bundlers/shared/generator-css.d.ts +1 -9
- package/dist/bundlers/shared/run-tasks.d.ts +1 -3
- package/dist/bundlers/shared/runtime-class-set.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/collector.d.ts +1 -8
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +1 -12
- package/dist/bundlers/shared/source-candidates/script.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/snapshot.d.ts +1 -19
- package/dist/bundlers/shared/source-candidates/source-priority.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/store.d.ts +1 -2
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +1 -75
- package/dist/bundlers/shared/source-candidates/views.d.ts +1 -12
- package/dist/bundlers/shared/source-candidates.d.ts +1 -4
- package/dist/bundlers/shared/source-scan/css-entries.d.ts +1 -18
- package/dist/bundlers/shared/source-scan/dependencies.d.ts +1 -2
- package/dist/bundlers/shared/source-scan.d.ts +1 -16
- package/dist/bundlers/shared/static-config-content.d.ts +1 -5
- package/dist/bundlers/shared/style-handler-options.d.ts +1 -0
- package/dist/bundlers/shared/style-requests.d.ts +1 -5
- package/dist/bundlers/shared/v4-generation-core.d.ts +1 -21
- package/dist/bundlers/vite/css-finalizer/css-calc.d.ts +3 -0
- package/dist/bundlers/vite/css-finalizer/final-assets.d.ts +3 -0
- package/dist/bundlers/vite/css-handler-options.d.ts +1 -1
- package/dist/bundlers/vite/frameworks/generic/web.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/finalize/sync-processed-css.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/framework-style-memory.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +7 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/rollup-assets.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/runtime.d.ts +3 -1
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/web-css-module.d.ts +1 -0
- package/dist/bundlers/vite/plugin-hook.d.ts +3 -0
- package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +1 -10
- package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +1 -4
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +4 -7
- package/dist/bundlers/vite/processed-css-assets/scoped-tailwind-noise.d.ts +1 -13
- package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +3 -1
- package/dist/bundlers/vite/shared/framework-module-candidates.d.ts +3 -2
- package/dist/bundlers/vite/shared/framework-runtime-configuration.d.ts +3 -0
- package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +9 -0
- package/dist/bundlers/vite/shared/framework-runtime-utils.d.ts +6 -5
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +3 -3
- package/dist/bundlers/vite/shared/framework-strategy.d.ts +3 -1
- package/dist/bundlers/vite/shared/hmr-source.d.ts +2 -0
- package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -1
- package/dist/bundlers/vite/source-candidates.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +2 -7
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +4 -8
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +2 -7
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +2 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/watch-dependencies.d.ts +6 -0
- package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +1 -1
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/source.d.ts +29 -0
- package/dist/{cache-CBJFB1HN.cjs → cache-CzvIGfwS.cjs} +1 -0
- package/dist/compiler/composition.d.ts +1 -1
- package/dist/compiler/index.d.ts +2 -0
- package/dist/compiler/runtime-affecting-signature/js.d.ts +1 -0
- package/dist/compiler/semantic-css.d.ts +1 -1
- package/dist/compiler/types.d.ts +1 -1
- package/dist/{compiler-D_vxtEdw.js → compiler-CThodfGH.js} +3105 -3065
- package/dist/{compiler-Cc0JXfbw.cjs → compiler-DkGY5Nmh.cjs} +22414 -45557
- package/dist/core/compiler/generation-cache.d.ts +4 -2
- package/dist/core/compiler/transforms.d.ts +1 -1
- package/dist/core/compiler/types.d.ts +1 -1
- package/dist/core.cjs +10 -10
- package/dist/core.d.ts +2 -2
- package/dist/core.js +5 -5
- package/dist/css-cleanup-B6FUJC3z.cjs +1 -0
- package/dist/{css-imports-FRZwX4P6.cjs → css-imports-R_RDMjPz.cjs} +7 -22
- package/dist/css-macro/auto.d.ts +1 -1
- package/dist/css-macro/postcss.cjs +1 -1
- package/dist/css-macro.cjs +3 -3
- package/dist/css-macro.js +2 -2
- package/dist/{defaults-CKx-4LcW.js → defaults-AQuvJS-h.js} +4 -2
- package/dist/{defaults-CiGsr8Xq.cjs → defaults-CyX5iO9y.cjs} +4 -2
- package/dist/defaults.cjs +1 -1
- package/dist/defaults.js +1 -1
- package/dist/final-css-cleanup-B6FUJC3z.cjs +1 -0
- package/dist/{final-css-cleanup-B0HUBtiE.js → final-css-cleanup-BOzhuhGz.js} +3 -127
- package/dist/framework/index.d.ts +1 -1
- package/dist/framework/platform.d.ts +2 -2
- package/dist/framework.cjs +1 -1
- package/dist/{v4-generation-core-DJBWZ_D0.cjs → generated-css-marker-jMNbQHpy.cjs} +717 -1730
- package/dist/generation/candidates.d.ts +1 -0
- package/dist/generation/class-selectors.d.ts +4 -0
- package/dist/generation/config-directive.d.ts +1 -0
- package/dist/generation/directives/fallback.d.ts +1 -0
- package/dist/generation/directives.d.ts +1 -0
- package/dist/generation/framework-css-composition.d.ts +1 -0
- package/dist/generation/framework-postcss.d.ts +25 -0
- package/dist/generation/framework-user-css.d.ts +5 -0
- package/dist/generation/generation-helpers/preflight.d.ts +19 -0
- package/dist/generation/generation-helpers/results.d.ts +23 -0
- package/dist/generation/generation-helpers/runtime-isolation.d.ts +30 -0
- package/dist/generation/generation-helpers/source-order.d.ts +1 -0
- package/dist/generation/generation-helpers.d.ts +4 -0
- package/dist/generation/index.d.ts +9 -0
- package/dist/generation/legacy-compat.d.ts +12 -0
- package/dist/generation/legacy-selectors.d.ts +1 -0
- package/dist/generation/legacy-units.d.ts +1 -0
- package/dist/generation/local-imports.d.ts +1 -0
- package/dist/generation/markers.d.ts +1 -0
- package/dist/generation/output-import-shell.d.ts +1 -0
- package/dist/generation/pipeline/context.d.ts +60 -0
- package/dist/generation/pipeline/deferred-output.d.ts +3 -0
- package/dist/generation/pipeline/execution.d.ts +3 -0
- package/dist/generation/pipeline/fallback-output.d.ts +3 -0
- package/dist/generation/pipeline/ordered-output.d.ts +3 -0
- package/dist/generation/pipeline/preparation.d.ts +19 -0
- package/dist/generation/pipeline.d.ts +2 -0
- package/dist/generation/result-helpers.d.ts +6 -0
- package/dist/generation/scoped-rules.d.ts +1 -0
- package/dist/generation/service.d.ts +20 -0
- package/dist/generation/source-files.d.ts +21 -0
- package/dist/generation/source-resolver/apply-reference.d.ts +10 -0
- package/dist/generation/source-resolver/config.d.ts +7 -0
- package/dist/generation/source-resolver/configuration.d.ts +33 -0
- package/dist/generation/source-resolver/matching.d.ts +3 -0
- package/dist/generation/source-resolver/metadata.d.ts +28 -0
- package/dist/generation/source-resolver/postcss-source.d.ts +14 -0
- package/dist/generation/source-resolver/resolve-source.d.ts +4 -0
- package/dist/generation/source-resolver/resolve-sources.d.ts +5 -0
- package/dist/generation/source-resolver/single-source.d.ts +16 -0
- package/dist/generation/source-resolver/source-entries.d.ts +3 -0
- package/dist/generation/source-resolver/source-matching.d.ts +5 -0
- package/dist/generation/source-resolver/types.d.ts +22 -0
- package/dist/generation/source-resolver.d.ts +7 -0
- package/dist/generation/style-options.d.ts +8 -0
- package/dist/generation/style-requests.d.ts +5 -0
- package/dist/generation/types.d.ts +65 -0
- package/dist/generation/user-css/apply-only.d.ts +5 -0
- package/dist/generation/user-css/at-rules.d.ts +1 -0
- package/dist/generation/user-css/compile-functions.d.ts +3 -0
- package/dist/generation/user-css/generated-cleanup.d.ts +1 -0
- package/dist/generation/user-css/source-fragments.d.ts +1 -0
- package/dist/generation/user-css/transform.d.ts +1 -0
- package/dist/generation/user-css/user-layers.d.ts +1 -0
- package/dist/generation/user-css.d.ts +5 -0
- package/dist/generation/user-layer-order.d.ts +1 -0
- package/dist/generation/validate.d.ts +7 -0
- package/dist/generator-CxauQbx3.cjs +1868 -0
- package/dist/generator-oKZ5mCJ5.js +1637 -0
- package/dist/generator.cjs +10 -4
- package/dist/generator.js +1 -1
- package/dist/{gulp-Dnt8VL8D.cjs → gulp-CVvBpIlq.cjs} +27 -26
- package/dist/{gulp-B1mPTMqw.js → gulp-DhddVxGA.js} +6 -5
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-qpX410qU.cjs → hmr-timing-DfMbbZ1E.cjs} +13 -13
- package/dist/{hmr-timing-wAt0LavM.js → hmr-timing-xPpat-km.js} +601 -1548
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/js/ModuleGraph.d.ts +3 -1
- package/dist/js/NodePathWalker.d.ts +1 -1
- package/dist/js/babel/analyze.d.ts +6 -0
- package/dist/js/babel.d.ts +1 -2
- package/dist/js/fast-path/analysis.d.ts +14 -0
- package/dist/js/fast-path/oxc.d.ts +1 -1
- package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
- package/dist/js/node-path-walker/import-tokens.d.ts +1 -1
- package/dist/js/oxc-parser.d.ts +4 -0
- package/dist/pipeline-helpers-zMPmp5F3.cjs +516 -0
- package/dist/postcss-html-transform.cjs +1 -1
- package/dist/postcss.cjs +3 -2
- package/dist/postcss.d.ts +1 -1
- package/dist/postcss.js +3 -2
- package/dist/presets.cjs +3 -3
- package/dist/presets.js +2 -2
- package/dist/project-sources/candidates/collector.d.ts +8 -0
- package/dist/project-sources/candidates/scan-root.d.ts +12 -0
- package/dist/project-sources/candidates/script.d.ts +1 -0
- package/dist/project-sources/candidates/snapshot.d.ts +19 -0
- package/dist/project-sources/candidates/source-priority.d.ts +1 -0
- package/dist/project-sources/candidates/store.d.ts +2 -0
- package/dist/project-sources/candidates/types-and-cache.d.ts +75 -0
- package/dist/project-sources/candidates/views.d.ts +12 -0
- package/dist/project-sources/candidates.d.ts +4 -0
- package/dist/project-sources/css-entries.d.ts +18 -0
- package/dist/project-sources/dependencies.d.ts +2 -0
- package/dist/project-sources/index.d.ts +16 -0
- package/dist/project-sources/static-config-content.d.ts +5 -0
- package/dist/reset.cjs +1 -1
- package/dist/{rolldown-runtime-Ctb5zv51.cjs → rolldown-runtime-fg3euq-1.cjs} +7 -0
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.js +2 -2
- package/dist/{runtime-state-XYSycuGu.cjs → runtime-state-BOzuVoKl.cjs} +1 -1
- package/dist/{scoped-generator-CtetE5rm.cjs → scoped-generator-BIZ7N_J-.cjs} +51 -36
- package/dist/{scoped-generator-BqxVxNp9.js → scoped-generator-DlQrVbuC.js} +49 -33
- package/dist/{source-candidate-scan-signature-Lm32zKVA.js → source-candidate-scan-signature-BjVQYL-C.js} +22 -5
- package/dist/{source-candidate-scan-signature-BDGB9nKZ.cjs → source-candidate-scan-signature-nG-rg809.cjs} +34 -5
- package/dist/style-injector/internal.d.ts +118 -8
- package/dist/style-injector/options.d.ts +6 -2
- package/dist/tailwindcss/miniprogram.d.ts +1 -1
- package/dist/tailwindcss/remove-unsupported-css.d.ts +1 -1
- package/dist/tailwindcss/runtime-options.d.ts +5 -0
- package/dist/tailwindcss/source-scan/inline-source.d.ts +1 -7
- package/dist/tailwindcss/source-scan.d.ts +3 -32
- package/dist/tailwindcss/v4/css-sources.d.ts +1 -1
- package/dist/tailwindcss/v4/preflight.d.ts +1 -4
- package/dist/tailwindcss/v4/rpx-theme-warning.d.ts +4 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +2 -3
- package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/rpx-candidates.d.ts +1 -6
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +5 -2
- package/dist/tailwindcss/v4-engine/generator/style-context.d.ts +1 -3
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +3 -7
- package/dist/tailwindcss/v4-engine/source.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/types.d.ts +3 -1
- package/dist/{tailwindcss-9e6ZuYgS.cjs → tailwindcss-U3KIUegn.cjs} +66 -271
- package/dist/{tailwindcss-DTV9MoJT.js → tailwindcss-kSd0ykiX.js} +73 -251
- package/dist/{transform-BbbZvFQq.js → transform-BAon9ykq.js} +35 -20
- package/dist/{transform-D21f8Dm8.cjs → transform-D2KFdA3C.cjs} +41 -26
- package/dist/types/index.d.ts +4 -3
- package/dist/types/user-defined-options/general.d.ts +1 -1
- package/dist/uni-app-x/border-preflight.d.ts +1 -2
- package/dist/uni-app-x/component-local-style.d.ts +4 -1
- package/dist/uni-app-x/transform.d.ts +4 -2
- package/dist/uni-app-x/vite/author-apply.d.ts +3 -1
- package/dist/uni-app-x/vite/native-hmr.d.ts +1 -1
- package/dist/uni-app-x/vite/style-result.d.ts +5 -0
- package/dist/utils/run-tasks.d.ts +3 -0
- package/dist/vite/web.cjs +1 -1
- package/dist/vite/web.js +1 -1
- package/dist/{vite-CaH7WjX6.cjs → vite-BxW0qd7J.cjs} +677 -1315
- package/dist/{vite-CuYntLZP.js → vite-D-RGkmOE.js} +541 -1173
- package/dist/vite-web.d.ts +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/{watch-dependencies-GbC14Rlt.cjs → watch-dependencies-C1so1whD.cjs} +14 -1
- package/dist/weapp-tw-css-generation-loader.cjs +4 -3
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +34 -29
- package/dist/weapp-tw-runtime-classset-loader.cjs +5 -18
- package/dist/{web-CdXkY_VO.js → web--kA4HUTm.js} +149 -211
- package/dist/{web-CYs2Kcaa.cjs → web-Y-H6I1k6.cjs} +226 -286
- package/dist/{webpack-BnCSOUuu.js → webpack-BB-kw4Qr.js} +38 -450
- package/dist/{webpack-BQNnpQPC.cjs → webpack-DxrWatNB.cjs} +97 -97
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
- package/dist/wxml/utils/custom-template.d.ts +1 -1
- package/package.json +16 -13
- package/dist/final-css-cleanup-DSjczga3.cjs +0 -138
- package/dist/generator-BdSIvFEO.cjs +0 -3905
- package/dist/generator-CAOx1Sqm.js +0 -3357
- package/dist/pipeline-helpers-BHagysZY.cjs +0 -971
- package/dist/tailwindcss/v4-engine/css-import.d.ts +0 -14
- package/dist/uni-app-x/style-asset/source-parser.d.ts +0 -2
|
@@ -1,186 +1,40 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_generator = require("./generator-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-fg3euq-1.cjs");
|
|
2
|
+
const require_generator = require("./generator-CxauQbx3.cjs");
|
|
3
3
|
require("./utils-CuKLf1Zv.cjs");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
7
7
|
let node_process = require("node:process");
|
|
8
8
|
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
9
|
-
let
|
|
10
|
-
let
|
|
9
|
+
let _weapp_tailwindcss_engine = require("@weapp-tailwindcss/engine");
|
|
10
|
+
let _weapp_tailwindcss_postcss_transform = require("@weapp-tailwindcss/postcss/transform");
|
|
11
11
|
let node_module = require("node:module");
|
|
12
|
-
let node_fs_promises = require("node:fs/promises");
|
|
13
12
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
13
|
+
let _weapp_tailwindcss_postcss_syntax = require("@weapp-tailwindcss/postcss/syntax");
|
|
14
|
+
let node_fs_promises = require("node:fs/promises");
|
|
15
|
+
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
14
16
|
let fast_glob = require("fast-glob");
|
|
15
17
|
fast_glob = require_rolldown_runtime.__toESM(fast_glob, 1);
|
|
16
18
|
let tailwindcss_config = require("tailwindcss-config");
|
|
17
|
-
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
18
19
|
let node_url = require("node:url");
|
|
19
|
-
//#region src/tailwindcss/source-scan
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
if (char === "\"" || char === "'") {
|
|
37
|
-
quote = char;
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
if (char === "(") {
|
|
41
|
-
stack.push(")");
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
if (char === "[") {
|
|
45
|
-
stack.push("]");
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
if (char === "{") {
|
|
49
|
-
stack.push("}");
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
if (stack.length > 0 && char === stack[stack.length - 1]) {
|
|
53
|
-
stack.pop();
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
if (stack.length === 0 && char === separator) {
|
|
57
|
-
const part = input.slice(lastPos, index);
|
|
58
|
-
if (part || options.keepEmpty) parts.push(part);
|
|
59
|
-
lastPos = index + 1;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const part = input.slice(lastPos);
|
|
63
|
-
if (part || options.keepEmpty) parts.push(part);
|
|
64
|
-
return parts;
|
|
65
|
-
}
|
|
66
|
-
function isSequence(value) {
|
|
67
|
-
return NUMERICAL_RANGE_RE.test(value);
|
|
68
|
-
}
|
|
69
|
-
function expandSequence(value) {
|
|
70
|
-
const match = value.match(NUMERICAL_RANGE_RE);
|
|
71
|
-
if (!match) return [value];
|
|
72
|
-
const [, start, end, stepValue] = match;
|
|
73
|
-
if (start === void 0 || end === void 0) return [value];
|
|
74
|
-
let step = stepValue ? Number.parseInt(stepValue, 10) : void 0;
|
|
75
|
-
const startNumber = Number.parseInt(start, 10);
|
|
76
|
-
const endNumber = Number.parseInt(end, 10);
|
|
77
|
-
const increasing = startNumber < endNumber;
|
|
78
|
-
if (step === void 0) step = increasing ? 1 : -1;
|
|
79
|
-
if (step === 0) return [];
|
|
80
|
-
if (increasing && step < 0) step = -step;
|
|
81
|
-
if (!increasing && step > 0) step = -step;
|
|
82
|
-
const result = [];
|
|
83
|
-
for (let value = startNumber; increasing ? value <= endNumber : value >= endNumber; value += step) result.push(String(value));
|
|
84
|
-
return result;
|
|
85
|
-
}
|
|
86
|
-
function expandInlineSourceCandidatePattern(pattern) {
|
|
87
|
-
const index = pattern.indexOf("{");
|
|
88
|
-
if (index === -1) return [pattern];
|
|
89
|
-
const prefix = pattern.slice(0, index);
|
|
90
|
-
const rest = pattern.slice(index);
|
|
91
|
-
let depth = 0;
|
|
92
|
-
let endIndex = -1;
|
|
93
|
-
for (let index = 0; index < rest.length; index++) {
|
|
94
|
-
const char = rest[index];
|
|
95
|
-
if (char === "{") depth += 1;
|
|
96
|
-
else if (char === "}") {
|
|
97
|
-
depth -= 1;
|
|
98
|
-
if (depth === 0) {
|
|
99
|
-
endIndex = index;
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (endIndex === -1) return [pattern];
|
|
105
|
-
const inner = rest.slice(1, endIndex);
|
|
106
|
-
const suffix = rest.slice(endIndex + 1);
|
|
107
|
-
const parts = (isSequence(inner) ? expandSequence(inner) : segmentTopLevel(inner, ",", { keepEmpty: true })).flatMap((part) => expandInlineSourceCandidatePattern(part));
|
|
108
|
-
return expandInlineSourceCandidatePattern(suffix).flatMap((suffix) => parts.map((part) => `${prefix}${part}${suffix}`));
|
|
109
|
-
}
|
|
110
|
-
function parseSourceInlineParam(params) {
|
|
111
|
-
let value = params.trim();
|
|
112
|
-
const negated = value.startsWith("not ");
|
|
113
|
-
if (negated) value = value.slice(4).trim();
|
|
114
|
-
if (!value.startsWith("inline(") || !value.endsWith(")")) return;
|
|
115
|
-
const inlineValue = value.slice(7, -1).trim();
|
|
116
|
-
const match = /^(['"])([\s\S]*)\1$/.exec(inlineValue);
|
|
117
|
-
if (!match) return;
|
|
118
|
-
const source = match[2];
|
|
119
|
-
if (source === void 0) return;
|
|
120
|
-
return {
|
|
121
|
-
negated,
|
|
122
|
-
source
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function collectCssInlineSourceCandidates(root) {
|
|
126
|
-
const included = /* @__PURE__ */ new Set();
|
|
127
|
-
const excluded = /* @__PURE__ */ new Set();
|
|
128
|
-
root.walkAtRules("source", (rule) => {
|
|
129
|
-
const parsed = parseSourceInlineParam(rule.params);
|
|
130
|
-
if (!parsed) return;
|
|
131
|
-
const target = parsed.negated ? excluded : included;
|
|
132
|
-
for (const source of segmentTopLevel(parsed.source, " ")) {
|
|
133
|
-
const trimmed = source.trim();
|
|
134
|
-
if (!trimmed) continue;
|
|
135
|
-
for (const candidate of expandInlineSourceCandidatePattern(trimmed)) {
|
|
136
|
-
const normalized = candidate.trim();
|
|
137
|
-
if (normalized) target.add(normalized);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
for (const candidate of excluded) included.delete(candidate);
|
|
142
|
-
return {
|
|
143
|
-
included,
|
|
144
|
-
excluded
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/tailwindcss/v4/preflight.ts
|
|
149
|
-
function parseCssImportSpecifier(params) {
|
|
150
|
-
const value = params.trim();
|
|
151
|
-
const quoted = /^(['"])(.*?)\1/.exec(value);
|
|
152
|
-
if (quoted) return quoted[2];
|
|
153
|
-
const url = /^url\(\s*(?:(['"])(.*?)\1|([^'")\s]+))\s*\)/.exec(value);
|
|
154
|
-
return url?.[2] ?? url?.[3];
|
|
155
|
-
}
|
|
156
|
-
function normalizeTailwindImportSpecifier(params) {
|
|
157
|
-
return parseCssImportSpecifier(params)?.replaceAll("\\", "/");
|
|
158
|
-
}
|
|
159
|
-
function isTailwindV4CssImportParam(params) {
|
|
160
|
-
const specifier = normalizeTailwindImportSpecifier(params);
|
|
161
|
-
return specifier === "tailwindcss" || specifier === "tailwindcss4" || specifier?.startsWith("tailwindcss/") === true || specifier?.startsWith("tailwindcss4/") === true || specifier?.endsWith("/tailwindcss/index.css") === true;
|
|
162
|
-
}
|
|
163
|
-
function isTailwindV4PreflightImportParam(params) {
|
|
164
|
-
const specifier = normalizeTailwindImportSpecifier(params);
|
|
165
|
-
return specifier === "tailwindcss" || specifier === "tailwindcss4" || specifier === "tailwindcss/preflight" || specifier === "tailwindcss/preflight.css" || specifier === "tailwindcss4/preflight" || specifier === "tailwindcss4/preflight.css" || specifier?.endsWith("/tailwindcss/index.css") === true || specifier?.endsWith("/tailwindcss/preflight.css") === true;
|
|
166
|
-
}
|
|
167
|
-
function includesTailwindV4PreflightDirective(css) {
|
|
168
|
-
try {
|
|
169
|
-
const root = _weapp_tailwindcss_postcss.postcss.parse(css);
|
|
170
|
-
let includesPreflight = false;
|
|
171
|
-
root.walkAtRules("import", (rule) => {
|
|
172
|
-
includesPreflight || (includesPreflight = isTailwindV4PreflightImportParam(rule.params));
|
|
173
|
-
});
|
|
174
|
-
root.walkAtRules("tailwind", (rule) => {
|
|
175
|
-
includesPreflight || (includesPreflight = rule.params.trim() === "base");
|
|
176
|
-
});
|
|
177
|
-
return includesPreflight;
|
|
178
|
-
} catch {
|
|
179
|
-
return /@import\s+(?:url\(\s*)?["']?tailwindcss4?(?:\/(?:preflight(?:\.css)?|index\.css))?["')\s;]/.test(css) || /@tailwind\s+base\b/.test(css);
|
|
180
|
-
}
|
|
20
|
+
//#region src/tailwindcss/source-scan.ts
|
|
21
|
+
var source_scan_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
22
|
+
collectCssInlineSourceCandidates: () => _weapp_tailwindcss_postcss_syntax.collectCssInlineSourceCandidates,
|
|
23
|
+
expandInlineSourceCandidatePattern: () => _weapp_tailwindcss_postcss_syntax.expandInlineSourceCandidatePattern,
|
|
24
|
+
expandTailwindSourceEntries: () => _weapp_tailwindcss_postcss_syntax.expandTailwindSourceEntries,
|
|
25
|
+
parseConfigParam: () => _weapp_tailwindcss_postcss_syntax.parseConfigParam,
|
|
26
|
+
parseSourceFileParam: () => _weapp_tailwindcss_postcss_syntax.parseSourceFileParam,
|
|
27
|
+
resolveCssSourceEntries: () => _weapp_tailwindcss_postcss_syntax.resolveCssSourceEntries,
|
|
28
|
+
resolveTailwindV4CssSourceBase: () => resolveTailwindV4CssSourceBase
|
|
29
|
+
});
|
|
30
|
+
require_rolldown_runtime.__reExport(source_scan_exports, require("@weapp-tailwindcss/source-scan"));
|
|
31
|
+
function resolveTailwindV4CssSourceBase(source, fallbackBase) {
|
|
32
|
+
if (typeof source.base === "string" && source.base.length > 0) return source.base;
|
|
33
|
+
if (typeof source.file === "string" && source.file.length > 0) return node_path.default.dirname(source.file);
|
|
34
|
+
return fallbackBase;
|
|
181
35
|
}
|
|
182
36
|
//#endregion
|
|
183
|
-
//#region src/
|
|
37
|
+
//#region src/project-sources/static-config-content.ts
|
|
184
38
|
function skipWhitespaceAndComments(source, start) {
|
|
185
39
|
let index = start;
|
|
186
40
|
while (index < source.length) {
|
|
@@ -350,18 +204,10 @@ function readStaticConfigContent(configPath) {
|
|
|
350
204
|
return parseStaticContentValue(source, contentProperty.start)?.value;
|
|
351
205
|
}
|
|
352
206
|
//#endregion
|
|
353
|
-
//#region src/
|
|
354
|
-
const SOURCE_CANDIDATE_PATTERN =
|
|
207
|
+
//#region src/project-sources/css-entries.ts
|
|
208
|
+
const SOURCE_CANDIDATE_PATTERN = source_scan_exports.FULL_SOURCE_SCAN_PATTERN;
|
|
355
209
|
const TAILWIND_CSS_ENTRY_PATTERN = "**/*.css";
|
|
356
210
|
const tailwindV4CssEntriesCache = /* @__PURE__ */ new Map();
|
|
357
|
-
function parseImportSourceParam(params) {
|
|
358
|
-
const match = /\bsource\(\s*(none|(['"])(.*?)\2)\s*\)/.exec(params);
|
|
359
|
-
if (!match) return;
|
|
360
|
-
return {
|
|
361
|
-
none: match[1] === "none",
|
|
362
|
-
sourcePath: match[3]
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
211
|
function resolveSourceBase(base, sourcePath) {
|
|
366
212
|
return node_path.default.isAbsolute(sourcePath) ? sourcePath : node_path.default.resolve(base, sourcePath);
|
|
367
213
|
}
|
|
@@ -376,9 +222,9 @@ function createCssEntriesCacheKey(css, base, dependencies) {
|
|
|
376
222
|
dependencies
|
|
377
223
|
});
|
|
378
224
|
}
|
|
379
|
-
|
|
225
|
+
function statConfigDependency(file) {
|
|
380
226
|
try {
|
|
381
|
-
const stats =
|
|
227
|
+
const stats = (0, node_fs.statSync)(file);
|
|
382
228
|
return {
|
|
383
229
|
file,
|
|
384
230
|
mtimeMs: stats.mtimeMs,
|
|
@@ -392,13 +238,8 @@ async function statConfigDependency(file) {
|
|
|
392
238
|
};
|
|
393
239
|
}
|
|
394
240
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
root.walkAtRules("config", (rule) => {
|
|
398
|
-
const configPath = require_generator.parseConfigParam(rule.params);
|
|
399
|
-
if (configPath) configPaths.add(resolveConfigPath(base, configPath));
|
|
400
|
-
});
|
|
401
|
-
return Promise.all([...configPaths].sort().map(statConfigDependency));
|
|
241
|
+
function collectConfigDependencySignatures(requests, base) {
|
|
242
|
+
return [...new Set(requests.map((request) => resolveConfigPath(base, request)))].sort().map(statConfigDependency);
|
|
402
243
|
}
|
|
403
244
|
function mergeTailwindInlineSourceCandidates(allInlineCandidates) {
|
|
404
245
|
const merged = {
|
|
@@ -415,17 +256,13 @@ function mergeTailwindInlineSourceCandidates(allInlineCandidates) {
|
|
|
415
256
|
}
|
|
416
257
|
return merged.included.size > 0 || merged.excluded.size > 0 ? merged : void 0;
|
|
417
258
|
}
|
|
418
|
-
async function resolveConfigContentEntries(
|
|
419
|
-
const configPaths =
|
|
420
|
-
root.walkAtRules("config", (rule) => {
|
|
421
|
-
const configPath = require_generator.parseConfigParam(rule.params);
|
|
422
|
-
if (configPath) configPaths.add(resolveConfigPath(base, configPath));
|
|
423
|
-
});
|
|
259
|
+
async function resolveConfigContentEntries(requests, base) {
|
|
260
|
+
const configPaths = new Set(requests.map((request) => resolveConfigPath(base, request)));
|
|
424
261
|
const entries = [];
|
|
425
262
|
for (const configPath of configPaths) {
|
|
426
263
|
const staticContent = readStaticConfigContent(configPath);
|
|
427
264
|
if (staticContent !== void 0) {
|
|
428
|
-
entries.push(...
|
|
265
|
+
entries.push(...(0, source_scan_exports.normalizeLegacyContentEntries)(staticContent, node_path.default.dirname(configPath), { relativeBase: node_path.default.dirname(configPath) }));
|
|
429
266
|
continue;
|
|
430
267
|
}
|
|
431
268
|
try {
|
|
@@ -433,7 +270,7 @@ async function resolveConfigContentEntries(root, base) {
|
|
|
433
270
|
config: configPath,
|
|
434
271
|
cwd: node_path.default.dirname(configPath)
|
|
435
272
|
});
|
|
436
|
-
entries.push(...
|
|
273
|
+
entries.push(...(0, source_scan_exports.normalizeLegacyContentEntries)(loaded?.config.content, node_path.default.dirname(configPath), { relativeBase: node_path.default.dirname(configPath) }));
|
|
437
274
|
} catch {}
|
|
438
275
|
}
|
|
439
276
|
return {
|
|
@@ -442,31 +279,15 @@ async function resolveConfigContentEntries(root, base) {
|
|
|
442
279
|
};
|
|
443
280
|
}
|
|
444
281
|
async function resolveTailwindV4EntriesFromCss(css, base) {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
let hasSourceNone = false;
|
|
453
|
-
let hasTailwindCssImport = false;
|
|
454
|
-
let includesPreflight = false;
|
|
455
|
-
const [sourceEntries, configEntries] = await Promise.all([require_generator.resolveCssSourceEntries(root, base, SOURCE_CANDIDATE_PATTERN), resolveConfigContentEntries(root, base)]);
|
|
282
|
+
const analysis = (0, _weapp_tailwindcss_postcss_transform.analyzeTailwindV4EntrySource)(css);
|
|
283
|
+
return analysis ? resolveTailwindV4EntriesFromAnalysis(analysis, base) : void 0;
|
|
284
|
+
}
|
|
285
|
+
async function resolveTailwindV4EntriesFromAnalysis(analysis, base) {
|
|
286
|
+
const { hasSourceNone, hasTailwindCssImport, includesPreflight, inlineCandidates, sourceRequests, importSourcePath } = analysis.getSourceDirectives();
|
|
287
|
+
const importSourceBase = importSourcePath ? resolveSourceBase(base, importSourcePath) : void 0;
|
|
288
|
+
const [sourceEntries, configEntries] = await Promise.all([Promise.all(sourceRequests.map((request) => (0, source_scan_exports.resolveTailwindSourceEntry)(request.sourcePath, base, request.negated, SOURCE_CANDIDATE_PATTERN))), resolveConfigContentEntries(analysis.configRequests, base)]);
|
|
456
289
|
const entries = [...configEntries.entries, ...sourceEntries];
|
|
457
290
|
const hasPositiveEntries = entries.some((entry) => !entry.negated);
|
|
458
|
-
const inlineCandidates = collectCssInlineSourceCandidates(root);
|
|
459
|
-
root.walkAtRules("import", (rule) => {
|
|
460
|
-
if (!isTailwindV4CssImportParam(rule.params)) return;
|
|
461
|
-
hasTailwindCssImport = true;
|
|
462
|
-
includesPreflight || (includesPreflight = isTailwindV4PreflightImportParam(rule.params));
|
|
463
|
-
const sourceParam = parseImportSourceParam(rule.params);
|
|
464
|
-
if (sourceParam?.none) hasSourceNone = true;
|
|
465
|
-
if (sourceParam?.sourcePath) importSourceBase = resolveSourceBase(base, sourceParam.sourcePath);
|
|
466
|
-
});
|
|
467
|
-
root.walkAtRules("tailwind", (rule) => {
|
|
468
|
-
includesPreflight || (includesPreflight = rule.params.trim() === "base");
|
|
469
|
-
});
|
|
470
291
|
if (importSourceBase) return {
|
|
471
292
|
entries: [{
|
|
472
293
|
base: importSourceBase,
|
|
@@ -525,16 +346,12 @@ async function pathExistsAsFile(file) {
|
|
|
525
346
|
}
|
|
526
347
|
}
|
|
527
348
|
async function resolveTailwindV4EntriesFromCssCached(css, base) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
} catch {
|
|
532
|
-
return;
|
|
533
|
-
}
|
|
534
|
-
const cacheKey = createCssEntriesCacheKey(css, base, await collectConfigDependencySignatures(root, base));
|
|
349
|
+
const analysis = (0, _weapp_tailwindcss_postcss_transform.analyzeTailwindV4EntrySource)(css);
|
|
350
|
+
if (!analysis) return;
|
|
351
|
+
const cacheKey = createCssEntriesCacheKey(css, base, collectConfigDependencySignatures(analysis.configRequests, base));
|
|
535
352
|
const cached = tailwindV4CssEntriesCache.get(cacheKey);
|
|
536
353
|
if (cached) return cached;
|
|
537
|
-
const task =
|
|
354
|
+
const task = resolveTailwindV4EntriesFromAnalysis(analysis, base).catch((error) => {
|
|
538
355
|
tailwindV4CssEntriesCache.delete(cacheKey);
|
|
539
356
|
throw error;
|
|
540
357
|
});
|
|
@@ -572,7 +389,7 @@ function collectConfiguredCssSources(options) {
|
|
|
572
389
|
return require_generator.filterTailwindV4CssSourceRoots([...options.tailwindcss?.v4?.cssSources ?? [], ...options.tailwindcssRuntimeOptions?.tailwindcss?.v4?.cssSources ?? []]) ?? [];
|
|
573
390
|
}
|
|
574
391
|
//#endregion
|
|
575
|
-
//#region src/
|
|
392
|
+
//#region src/project-sources/dependencies.ts
|
|
576
393
|
function addSourceScanDependency(dependencies, file) {
|
|
577
394
|
if (typeof file === "string" && file.length > 0) dependencies.add(node_path.default.resolve(file));
|
|
578
395
|
}
|
|
@@ -580,7 +397,7 @@ function addSourceScanDependencies(dependencies, files) {
|
|
|
580
397
|
for (const file of files ?? []) addSourceScanDependency(dependencies, file);
|
|
581
398
|
}
|
|
582
399
|
//#endregion
|
|
583
|
-
//#region src/
|
|
400
|
+
//#region src/project-sources/index.ts
|
|
584
401
|
function createResolvedSourceScan(input, dependencies) {
|
|
585
402
|
return {
|
|
586
403
|
...input,
|
|
@@ -654,7 +471,7 @@ async function resolveSourceScanEntries(options, runtime, scanOptions = {}) {
|
|
|
654
471
|
if (typeof cssSource.css !== "string" || cssSource.css.length === 0) continue;
|
|
655
472
|
addSourceScanDependency(dependencies, cssSource.file);
|
|
656
473
|
addSourceScanDependencies(dependencies, cssSource.dependencies);
|
|
657
|
-
const resolved = await resolveTailwindV4EntriesFromCssCached(cssSource.css,
|
|
474
|
+
const resolved = await resolveTailwindV4EntriesFromCssCached(cssSource.css, resolveTailwindV4CssSourceBase(cssSource, sourceOptionBase));
|
|
658
475
|
if (resolved) {
|
|
659
476
|
entries.push(...resolved.entries);
|
|
660
477
|
cssInlineCandidates.push(resolved.inlineCandidates);
|
|
@@ -745,14 +562,14 @@ async function collectTailwindV4TrackedSourceFiles(tailwindRuntime) {
|
|
|
745
562
|
for (const cssEntry of tailwindOptions?.v4?.cssEntries ?? []) {
|
|
746
563
|
if (!(0, node_fs.existsSync)(cssEntry)) continue;
|
|
747
564
|
const resolved = await resolveTailwindV4EntriesFromCssCached((0, node_fs.readFileSync)(cssEntry, "utf8"), node_path.default.dirname(cssEntry));
|
|
748
|
-
const expanded = resolved?.entries?.length ? await
|
|
565
|
+
const expanded = resolved?.entries?.length ? await (0, _weapp_tailwindcss_postcss_syntax.expandTailwindSourceEntries)(resolved.entries) : [];
|
|
749
566
|
for (const file of expanded) files.add(file);
|
|
750
567
|
}
|
|
751
568
|
for (const cssSource of tailwindOptions?.v4?.cssSources ?? []) {
|
|
752
569
|
if (typeof cssSource.css !== "string" || cssSource.css.length === 0) continue;
|
|
753
570
|
const base = typeof cssSource.file === "string" && cssSource.file.length > 0 ? node_path.default.dirname(cssSource.file) : tailwindOptions?.v4?.base ?? tailwindOptions?.cwd ?? tailwindRuntime.options?.projectRoot ?? node_process.default.cwd();
|
|
754
571
|
const resolved = await resolveTailwindV4EntriesFromCssCached(cssSource.css, base);
|
|
755
|
-
const expanded = resolved?.entries?.length ? await
|
|
572
|
+
const expanded = resolved?.entries?.length ? await (0, _weapp_tailwindcss_postcss_syntax.expandTailwindSourceEntries)(resolved.entries) : [];
|
|
756
573
|
for (const file of expanded) files.add(file);
|
|
757
574
|
}
|
|
758
575
|
const result = [...files].sort((a, b) => a.localeCompare(b));
|
|
@@ -1108,48 +925,26 @@ function createEngineTailwindcssRuntime(options) {
|
|
|
1108
925
|
if (typeof options.filter !== "function") return classSet;
|
|
1109
926
|
return new Set([...classSet].filter((className) => options.filter?.(className) !== false));
|
|
1110
927
|
}
|
|
1111
|
-
function hasTailwindV4ApplyContext(css) {
|
|
1112
|
-
if (!css.includes("@apply")) return false;
|
|
1113
|
-
try {
|
|
1114
|
-
const root = _weapp_tailwindcss_postcss.postcss.parse(css);
|
|
1115
|
-
let hasContext = false;
|
|
1116
|
-
root.walkAtRules((rule) => {
|
|
1117
|
-
if (rule.name === "reference" || rule.name === "import" || rule.name === "tailwind" && rule.params.trim() === "utilities") hasContext = true;
|
|
1118
|
-
});
|
|
1119
|
-
return hasContext;
|
|
1120
|
-
} catch {
|
|
1121
|
-
return false;
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
928
|
async function collectClassSet() {
|
|
1125
929
|
const report = await collectContentTokens();
|
|
1126
930
|
const rawCandidates = new Set(report.entries.map((entry) => {
|
|
1127
931
|
return typeof entry === "string" ? entry : entry.rawCandidate;
|
|
1128
932
|
}).filter((entry) => typeof entry === "string" && entry.length > 0));
|
|
1129
933
|
const source = require_generator.resolveCssMacroTailwindV4Source(await require_generator.resolveTailwindV4SourceFromRuntime(runtime));
|
|
1130
|
-
const
|
|
1131
|
-
const
|
|
934
|
+
const bareArbitraryValues = require_generator.resolveRuntimeBareArbitraryValues(runtime.options);
|
|
935
|
+
const designSystem = await (0, _weapp_tailwindcss_engine.loadTailwindV4DesignSystem)(source);
|
|
936
|
+
const candidates = new Set((0, _weapp_tailwindcss_engine.resolveValidTailwindV4Candidates)(designSystem, rawCandidates, { ...bareArbitraryValues === void 0 ? {} : { bareArbitraryValues } }));
|
|
1132
937
|
await collectTailwindV4CssCandidates(candidates);
|
|
1133
938
|
return applyClassSetFilter(candidates);
|
|
1134
939
|
}
|
|
1135
940
|
async function collectTailwindV4CssCandidates(candidates) {
|
|
1136
941
|
const source = require_generator.resolveCssMacroTailwindV4Source(await require_generator.resolveTailwindV4SourceFromRuntime(runtime));
|
|
1137
942
|
const cssList = [source.css, ...(source.cssSources ?? []).map((cssSource) => cssSource.css).filter((css) => typeof css === "string")];
|
|
1138
|
-
for (const css of cssList)
|
|
1139
|
-
if (!hasTailwindV4ApplyContext(css)) continue;
|
|
1140
|
-
try {
|
|
1141
|
-
_weapp_tailwindcss_postcss.postcss.parse(css).walkAtRules("apply", (rule) => {
|
|
1142
|
-
for (const candidate of rule.params.split(/\s+/)) {
|
|
1143
|
-
const normalized = candidate.replace(/!important$/, "").trim();
|
|
1144
|
-
if (normalized) candidates.add(normalized);
|
|
1145
|
-
}
|
|
1146
|
-
});
|
|
1147
|
-
} catch {}
|
|
1148
|
-
}
|
|
943
|
+
for (const css of cssList) for (const candidate of (0, _weapp_tailwindcss_postcss_transform.collectRuntimeApplyCandidates)(css)) candidates.add(candidate);
|
|
1149
944
|
}
|
|
1150
945
|
async function collectContentTokens() {
|
|
1151
946
|
const source = require_generator.resolveCssMacroTailwindV4Source(await require_generator.resolveTailwindV4SourceFromRuntime(runtime));
|
|
1152
|
-
const report = await (0,
|
|
947
|
+
const report = await (0, _weapp_tailwindcss_engine.extractProjectCandidatesWithPositions)({
|
|
1153
948
|
base: source.base,
|
|
1154
949
|
baseFallbacks: source.baseFallbacks,
|
|
1155
950
|
css: source.css,
|
|
@@ -1616,12 +1411,6 @@ Object.defineProperty(exports, "applyV4CssCalcDefaults", {
|
|
|
1616
1411
|
return applyV4CssCalcDefaults;
|
|
1617
1412
|
}
|
|
1618
1413
|
});
|
|
1619
|
-
Object.defineProperty(exports, "collectCssInlineSourceCandidates", {
|
|
1620
|
-
enumerable: true,
|
|
1621
|
-
get: function() {
|
|
1622
|
-
return collectCssInlineSourceCandidates;
|
|
1623
|
-
}
|
|
1624
|
-
});
|
|
1625
1414
|
Object.defineProperty(exports, "createTailwindcssRuntimeFromContext", {
|
|
1626
1415
|
enumerable: true,
|
|
1627
1416
|
get: function() {
|
|
@@ -1658,12 +1447,6 @@ Object.defineProperty(exports, "getRuntimeClassSetSignatureWithSources", {
|
|
|
1658
1447
|
return getRuntimeClassSetSignatureWithSources;
|
|
1659
1448
|
}
|
|
1660
1449
|
});
|
|
1661
|
-
Object.defineProperty(exports, "includesTailwindV4PreflightDirective", {
|
|
1662
|
-
enumerable: true,
|
|
1663
|
-
get: function() {
|
|
1664
|
-
return includesTailwindV4PreflightDirective;
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
1450
|
Object.defineProperty(exports, "invalidateRuntimeClassSet", {
|
|
1668
1451
|
enumerable: true,
|
|
1669
1452
|
get: function() {
|
|
@@ -1688,6 +1471,12 @@ Object.defineProperty(exports, "resolveTailwindV4CssDependencies", {
|
|
|
1688
1471
|
return resolveTailwindV4CssDependencies;
|
|
1689
1472
|
}
|
|
1690
1473
|
});
|
|
1474
|
+
Object.defineProperty(exports, "resolveTailwindV4CssSourceBase", {
|
|
1475
|
+
enumerable: true,
|
|
1476
|
+
get: function() {
|
|
1477
|
+
return resolveTailwindV4CssSourceBase;
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1691
1480
|
Object.defineProperty(exports, "resolveTailwindV4EntriesFromCss", {
|
|
1692
1481
|
enumerable: true,
|
|
1693
1482
|
get: function() {
|
|
@@ -1712,6 +1501,12 @@ Object.defineProperty(exports, "resolveUniAppXOptions", {
|
|
|
1712
1501
|
return resolveUniAppXOptions;
|
|
1713
1502
|
}
|
|
1714
1503
|
});
|
|
1504
|
+
Object.defineProperty(exports, "source_scan_exports", {
|
|
1505
|
+
enumerable: true,
|
|
1506
|
+
get: function() {
|
|
1507
|
+
return source_scan_exports;
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1715
1510
|
Object.defineProperty(exports, "warnMissingCssEntries", {
|
|
1716
1511
|
enumerable: true,
|
|
1717
1512
|
get: function() {
|