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
|
@@ -9,6 +9,8 @@ interface CompilerGenerationCacheKey {
|
|
|
9
9
|
candidateSignature: string;
|
|
10
10
|
incrementalCache: CompilerGenerateRequest['incrementalCache'];
|
|
11
11
|
scanSources: CompilerGenerateRequest['scanSources'];
|
|
12
|
+
scanMode: CompilerGenerateRequest['scanMode'];
|
|
13
|
+
excludeFilesFingerprint: string | undefined;
|
|
12
14
|
sourcesFingerprint: string | undefined;
|
|
13
15
|
styleOptionsFingerprint: string | undefined;
|
|
14
16
|
target: CompilerTarget;
|
|
@@ -21,8 +23,8 @@ export declare function reuseCompilerGenerationResult(result: WeappTailwindcssGe
|
|
|
21
23
|
css: string;
|
|
22
24
|
rawCss: string;
|
|
23
25
|
target: "weapp" | "web";
|
|
24
|
-
root: import("@tailwindcss
|
|
25
|
-
sources: import("@tailwindcss
|
|
26
|
+
root: import("@weapp-tailwindcss/engine").TailwindV4CompiledSourceRoot;
|
|
27
|
+
sources: import("@weapp-tailwindcss/engine").TailwindV4SourcePattern[];
|
|
26
28
|
classSet: Set<string>;
|
|
27
29
|
rawCandidates: Set<string>;
|
|
28
30
|
dependencies: string[];
|
|
@@ -8,7 +8,7 @@ interface CreateCompilerTransformsOptions {
|
|
|
8
8
|
export declare function createCompilerTransforms({ ensureActive, track, userOptions }: CreateCompilerTransformsOptions): {
|
|
9
9
|
clearCache: () => void;
|
|
10
10
|
transformCss: (css: string, snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformCss"]>[2]) => Promise<import("postcss").Result<import("postcss").Document | import("postcss").Root>>;
|
|
11
|
-
transformCssRoot: (root: Parameters<Compiler["transformCssRoot"]>[0], snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformCssRoot"]>[2]) => Promise<import("postcss").Result<import("postcss").
|
|
11
|
+
transformCssRoot: (root: Parameters<Compiler["transformCssRoot"]>[0], snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformCssRoot"]>[2]) => Promise<import("postcss").Result<import("postcss").Root>>;
|
|
12
12
|
transformJavaScript: (source: string, snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformJavaScript"]>[2]) => Promise<import("../../types/index.js").JsHandlerResult>;
|
|
13
13
|
transformTemplate: (source: string, snapshot: CompilerSnapshot, options?: Parameters<Compiler["transformTemplate"]>[2]) => Promise<string>;
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Document, FinalizeMiniProgramCssOptions, IStyleHandlerOptions, Result as PostcssResult, Root } from '@weapp-tailwindcss/postcss';
|
|
1
|
+
import type { Document, FinalizeMiniProgramCssOptions, IStyleHandlerOptions, Result as PostcssResult, Root } from '@weapp-tailwindcss/postcss/transform';
|
|
2
2
|
import type { CacheTelemetryCollector } from '../../compiler/cache-telemetry.js';
|
|
3
3
|
import type { TailwindV4ResolvedSource, TailwindV4SourceOptions, WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult } from '../../generator/index.js';
|
|
4
4
|
import type { CreateJsHandlerOptions, ITemplateHandlerOptions, JsHandlerResult, UserDefinedOptions } from '../../types/index.js';
|
package/dist/core.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_compiler = require("./compiler-
|
|
3
|
-
const require_runtime_state = require("./runtime-state-
|
|
4
|
-
let
|
|
2
|
+
const require_compiler = require("./compiler-DkGY5Nmh.cjs");
|
|
3
|
+
const require_runtime_state = require("./runtime-state-BOzuVoKl.cjs");
|
|
4
|
+
let _weapp_tailwindcss_postcss_transform = require("@weapp-tailwindcss/postcss/transform");
|
|
5
5
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
6
6
|
let node_perf_hooks = require("node:perf_hooks");
|
|
7
7
|
//#region src/core.ts
|
|
@@ -43,10 +43,10 @@ function createContext(options = {}) {
|
|
|
43
43
|
revision: runtimeState.revision,
|
|
44
44
|
operationId,
|
|
45
45
|
durationMs: node_perf_hooks.performance.now() - startedAt,
|
|
46
|
-
error
|
|
47
|
-
|
|
46
|
+
...error ? { error: {
|
|
47
|
+
...error instanceof Error ? { name: error.name } : {},
|
|
48
48
|
message: error instanceof Error ? error.message : String(error)
|
|
49
|
-
} :
|
|
49
|
+
} } : {}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
function getDefaultJsHandlerOptions(majorVersion = runtimeState.tailwindRuntime.majorVersion) {
|
|
@@ -196,24 +196,24 @@ exports.createContext = createContext;
|
|
|
196
196
|
Object.defineProperty(exports, "finalizeMiniProgramCss", {
|
|
197
197
|
enumerable: true,
|
|
198
198
|
get: function() {
|
|
199
|
-
return
|
|
199
|
+
return _weapp_tailwindcss_postcss_transform.finalizeMiniProgramCss;
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "finalizeMiniProgramCssRoot", {
|
|
203
203
|
enumerable: true,
|
|
204
204
|
get: function() {
|
|
205
|
-
return
|
|
205
|
+
return _weapp_tailwindcss_postcss_transform.finalizeMiniProgramCssRoot;
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "postcss", {
|
|
209
209
|
enumerable: true,
|
|
210
210
|
get: function() {
|
|
211
|
-
return
|
|
211
|
+
return _weapp_tailwindcss_postcss_transform.postcss;
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "removeTailwindSourceDirectivesRoot", {
|
|
215
215
|
enumerable: true,
|
|
216
216
|
get: function() {
|
|
217
|
-
return
|
|
217
|
+
return _weapp_tailwindcss_postcss_transform.removeTailwindSourceDirectivesRoot;
|
|
218
218
|
}
|
|
219
219
|
});
|
package/dist/core.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export { createCompilationEventBus, createCompilerRuntimeState } from './compile
|
|
|
4
4
|
export type { CompilationEvent, CompilerHost, CompilerRuntimeState } from './compiler/index.js';
|
|
5
5
|
export type { Compiler, CompilerCacheReuseState, CompilerCssTransformOptions, CompilerGenerateRequest, CompilerGenerateResult, CompilerSnapshot, CompilerSnapshotRoot, CompilerSourcePattern, CompilerTarget, CompilerTemplateTransformOptions, CreateCompilerOptions, CreateCompilerSnapshotRequest, } from './core/compiler/index.js';
|
|
6
6
|
export { createCompiler } from './core/compiler/index.js';
|
|
7
|
-
export { finalizeMiniProgramCss, finalizeMiniProgramCssRoot, postcss, removeTailwindSourceDirectivesRoot, } from '@weapp-tailwindcss/postcss';
|
|
8
|
-
export type { FinalizeMiniProgramCssOptions } from '@weapp-tailwindcss/postcss';
|
|
7
|
+
export { finalizeMiniProgramCss, finalizeMiniProgramCssRoot, postcss, removeTailwindSourceDirectivesRoot, } from '@weapp-tailwindcss/postcss/transform';
|
|
8
|
+
export type { FinalizeMiniProgramCssOptions } from '@weapp-tailwindcss/postcss/transform';
|
|
9
9
|
type RuntimeJsTransformOptions = {
|
|
10
10
|
runtimeSet?: Set<string>;
|
|
11
11
|
} & CreateJsHandlerOptions;
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { finalizeMiniProgramCss, finalizeMiniProgramCssRoot, postcss, removeTailwindSourceDirectivesRoot } from "@weapp-tailwindcss/postcss";
|
|
1
|
+
import { A as createTailwindRuntimeReadyPromise, F as createCompilationEventBus, d as createCompiler, f as getCompilerContext, j as ensureRuntimeClassSet, t as createCompilerRuntimeState, y as shouldSkipJsTransform } from "./compiler-CThodfGH.js";
|
|
2
|
+
import { finalizeMiniProgramCss, finalizeMiniProgramCssRoot, postcss, removeTailwindSourceDirectivesRoot } from "@weapp-tailwindcss/postcss/transform";
|
|
3
3
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
4
4
|
import { performance } from "node:perf_hooks";
|
|
5
5
|
//#region src/core.ts
|
|
@@ -41,10 +41,10 @@ function createContext(options = {}) {
|
|
|
41
41
|
revision: runtimeState.revision,
|
|
42
42
|
operationId,
|
|
43
43
|
durationMs: performance.now() - startedAt,
|
|
44
|
-
error
|
|
45
|
-
|
|
44
|
+
...error ? { error: {
|
|
45
|
+
...error instanceof Error ? { name: error.name } : {},
|
|
46
46
|
message: error instanceof Error ? error.message : String(error)
|
|
47
|
-
} :
|
|
47
|
+
} } : {}
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
function getDefaultJsHandlerOptions(majorVersion = runtimeState.tailwindRuntime.majorVersion) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@weapp-tailwindcss/postcss/transform");
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_generator = require("./generator-BdSIvFEO.cjs");
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-fg3euq-1.cjs");
|
|
3
2
|
let node_path = require("node:path");
|
|
4
3
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
5
|
-
let
|
|
4
|
+
let _weapp_tailwindcss_postcss_transform = require("@weapp-tailwindcss/postcss/transform");
|
|
6
5
|
//#region src/bundlers/shared/css-imports.ts
|
|
7
6
|
const tailwindcssImportRE = /^(?:tailwindcss|weapp-tailwindcss)(?:\/.*)?$/;
|
|
8
|
-
const tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])((?:tailwindcss|weapp-tailwindcss)(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
9
7
|
function normalizeResolvedTailwindcssImports(code, pkgDir) {
|
|
10
8
|
if (!pkgDir) return code;
|
|
11
9
|
const paths = /^[a-z]:[\\/]|^\\\\/i.test(pkgDir) ? node_path.default.win32 : node_path.default.posix;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const parsed = require_generator.parseCssImportSpecifier(rule.params);
|
|
16
|
-
if (!parsed || !paths.isAbsolute(parsed.specifier)) return;
|
|
17
|
-
const subpath = paths.relative(pkgDir, parsed.specifier);
|
|
10
|
+
return (0, _weapp_tailwindcss_postcss_transform.rewriteCssImportSpecifiers)(code, (specifier) => {
|
|
11
|
+
if (!paths.isAbsolute(specifier)) return;
|
|
12
|
+
const subpath = paths.relative(pkgDir, specifier);
|
|
18
13
|
if (![
|
|
19
14
|
"index.css",
|
|
20
15
|
"theme.css",
|
|
21
16
|
"utilities.css",
|
|
22
17
|
"preflight.css"
|
|
23
18
|
].includes(subpath)) return;
|
|
24
|
-
|
|
25
|
-
rule.params = rule.params.replace(parsed.raw, () => require_generator.quoteCssImportSpecifier(request, parsed.quote));
|
|
26
|
-
changed = true;
|
|
19
|
+
return subpath === "index.css" ? "tailwindcss" : `tailwindcss/${subpath}`;
|
|
27
20
|
});
|
|
28
|
-
return changed ? root.toString() : code;
|
|
29
21
|
}
|
|
30
22
|
function normalizeTailwindcssSpecifier(specifier) {
|
|
31
23
|
if (specifier === "tailwindcss$" || specifier === "weapp-tailwindcss$") return specifier.slice(0, -1);
|
|
@@ -42,14 +34,7 @@ function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
|
42
34
|
return (options?.join ?? node_path.default.join)(pkgDir, getTailwindcssSubpath(normalized));
|
|
43
35
|
}
|
|
44
36
|
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
45
|
-
|
|
46
|
-
const rewritten = code.replace(tailwindcssCssImportStatementRE, (full, prefix, quote, specifier, suffix) => {
|
|
47
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
48
|
-
if (!replacement) return full;
|
|
49
|
-
hasReplacements = true;
|
|
50
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
51
|
-
});
|
|
52
|
-
return hasReplacements ? rewritten : void 0;
|
|
37
|
+
return (0, _weapp_tailwindcss_postcss_transform.rewriteTailwindPackageImportStatements)(code, (specifier) => resolveTailwindcssImport(specifier, pkgDir, options));
|
|
53
38
|
}
|
|
54
39
|
//#endregion
|
|
55
40
|
Object.defineProperty(exports, "normalizeResolvedTailwindcssImports", {
|
package/dist/css-macro/auto.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { compileCssMacroConditionalComments, CSS_MACRO_STYLE_OPTIONS_MARKER, hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4Directive, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, transformCssMacroCss, transformCssMacroTailwindV4Source, withCssMacroStyleOptions, } from '@weapp-tailwindcss/postcss';
|
|
1
|
+
export { compileCssMacroConditionalComments, CSS_MACRO_STYLE_OPTIONS_MARKER, hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4Directive, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, transformCssMacroCss, transformCssMacroTailwindV4Source, withCssMacroStyleOptions, } from '@weapp-tailwindcss/postcss/transform';
|
|
2
2
|
export declare const CSS_MACRO_PLUGIN_MARKER = "__weappTailwindcssCssMacro";
|
|
3
3
|
export declare function markCssMacroPlugin<T extends object>(value: T): T;
|
|
4
4
|
export declare function isCssMacroTailwindPlugin(value: unknown): boolean;
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_rolldown_runtime = require("../rolldown-runtime-
|
|
5
|
+
const require_rolldown_runtime = require("../rolldown-runtime-fg3euq-1.cjs");
|
|
6
6
|
let _weapp_tailwindcss_postcss_css_macro_postcss = require("@weapp-tailwindcss/postcss/css-macro/postcss");
|
|
7
7
|
_weapp_tailwindcss_postcss_css_macro_postcss = require_rolldown_runtime.__toESM(_weapp_tailwindcss_postcss_css_macro_postcss, 1);
|
|
8
8
|
Object.defineProperty(exports, "CSS_MACRO_POSTCSS_PLUGIN_NAME", {
|
package/dist/css-macro.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_auto = require("./auto-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-fg3euq-1.cjs");
|
|
2
|
+
const require_auto = require("./auto-B1OyRrE8.cjs");
|
|
3
3
|
require("./utils-CuKLf1Zv.cjs");
|
|
4
4
|
let tailwindcss_plugin = require("tailwindcss/plugin");
|
|
5
5
|
tailwindcss_plugin = require_rolldown_runtime.__toESM(tailwindcss_plugin, 1);
|
|
@@ -55,7 +55,7 @@ const cssMacro = require_auto.markCssMacroPlugin(((options) => {
|
|
|
55
55
|
}));
|
|
56
56
|
const cssMacroOptionsFunction = cssMacro;
|
|
57
57
|
const cssMacroFactoryOptionsFunction = cssMacroFactory;
|
|
58
|
-
cssMacroOptionsFunction.__isOptionsFunction = cssMacroFactoryOptionsFunction.__isOptionsFunction;
|
|
58
|
+
if (cssMacroFactoryOptionsFunction.__isOptionsFunction !== void 0) cssMacroOptionsFunction.__isOptionsFunction = cssMacroFactoryOptionsFunction.__isOptionsFunction;
|
|
59
59
|
cssMacroOptionsFunction.__pluginFunction = cssMacroFactoryOptionsFunction.__pluginFunction;
|
|
60
60
|
cssMacroOptionsFunction.__configFunction = cssMacroFactoryOptionsFunction.__configFunction;
|
|
61
61
|
//#endregion
|
package/dist/css-macro.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as markCssMacroPlugin } from "./auto-
|
|
1
|
+
import { a as markCssMacroPlugin } from "./auto-ENr4xzzw.js";
|
|
2
2
|
import { t as defu } from "./utils-MVwpU07P.js";
|
|
3
3
|
import plugin from "tailwindcss/plugin";
|
|
4
4
|
//#region src/css-macro/constants.ts
|
|
@@ -52,7 +52,7 @@ const cssMacro = markCssMacroPlugin(((options) => {
|
|
|
52
52
|
}));
|
|
53
53
|
const cssMacroOptionsFunction = cssMacro;
|
|
54
54
|
const cssMacroFactoryOptionsFunction = cssMacroFactory;
|
|
55
|
-
cssMacroOptionsFunction.__isOptionsFunction = cssMacroFactoryOptionsFunction.__isOptionsFunction;
|
|
55
|
+
if (cssMacroFactoryOptionsFunction.__isOptionsFunction !== void 0) cssMacroOptionsFunction.__isOptionsFunction = cssMacroFactoryOptionsFunction.__isOptionsFunction;
|
|
56
56
|
cssMacroOptionsFunction.__pluginFunction = cssMacroFactoryOptionsFunction.__pluginFunction;
|
|
57
57
|
cssMacroOptionsFunction.__configFunction = cssMacroFactoryOptionsFunction.__configFunction;
|
|
58
58
|
//#endregion
|
|
@@ -5,8 +5,8 @@ const DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH = 5e4;
|
|
|
5
5
|
const HARD_PARSE_CACHE_MAX_ENTRIES = 1024;
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/defaults.ts
|
|
8
|
-
const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty)ss$/;
|
|
9
|
-
const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|qx|ty|xhs)ml|swan)$/;
|
|
8
|
+
const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty|dd)ss$/;
|
|
9
|
+
const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|qx|ty|xhs|dd)ml|swan)$/;
|
|
10
10
|
const JS_FILE_PATTERN = /.+\.[cm]?js?$/;
|
|
11
11
|
const alwaysFalse = () => false;
|
|
12
12
|
const TAILWIND_V4_CSS_PREFLIGHT = {
|
|
@@ -35,6 +35,7 @@ function getDefaultOptions() {
|
|
|
35
35
|
* qss QQ小程序
|
|
36
36
|
* css 最正常的样式文件
|
|
37
37
|
* tyss 涂鸦小程序
|
|
38
|
+
* ddss 钉钉小程序
|
|
38
39
|
*/
|
|
39
40
|
cssMatcher: (file) => CSS_FILE_PATTERN.test(file),
|
|
40
41
|
/**
|
|
@@ -47,6 +48,7 @@ function getDefaultOptions() {
|
|
|
47
48
|
* tyml 涂鸦小程序
|
|
48
49
|
* xhsml 小红书小程序
|
|
49
50
|
* swan 百度小程序
|
|
51
|
+
* ddml 钉钉小程序
|
|
50
52
|
*/
|
|
51
53
|
htmlMatcher: (file) => HTML_FILE_PATTERN.test(file),
|
|
52
54
|
jsMatcher: (file) => {
|
|
@@ -6,8 +6,8 @@ const DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH = 5e4;
|
|
|
6
6
|
const HARD_PARSE_CACHE_MAX_ENTRIES = 1024;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/defaults.ts
|
|
9
|
-
const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty)ss$/;
|
|
10
|
-
const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|qx|ty|xhs)ml|swan)$/;
|
|
9
|
+
const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty|dd)ss$/;
|
|
10
|
+
const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|qx|ty|xhs|dd)ml|swan)$/;
|
|
11
11
|
const JS_FILE_PATTERN = /.+\.[cm]?js?$/;
|
|
12
12
|
const alwaysFalse = () => false;
|
|
13
13
|
const TAILWIND_V4_CSS_PREFLIGHT = {
|
|
@@ -36,6 +36,7 @@ function getDefaultOptions() {
|
|
|
36
36
|
* qss QQ小程序
|
|
37
37
|
* css 最正常的样式文件
|
|
38
38
|
* tyss 涂鸦小程序
|
|
39
|
+
* ddss 钉钉小程序
|
|
39
40
|
*/
|
|
40
41
|
cssMatcher: (file) => CSS_FILE_PATTERN.test(file),
|
|
41
42
|
/**
|
|
@@ -48,6 +49,7 @@ function getDefaultOptions() {
|
|
|
48
49
|
* tyml 涂鸦小程序
|
|
49
50
|
* xhsml 小红书小程序
|
|
50
51
|
* swan 百度小程序
|
|
52
|
+
* ddml 钉钉小程序
|
|
51
53
|
*/
|
|
52
54
|
htmlMatcher: (file) => HTML_FILE_PATTERN.test(file),
|
|
53
55
|
jsMatcher: (file) => {
|
package/dist/defaults.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_defaults = require("./defaults-
|
|
2
|
+
const require_defaults = require("./defaults-CyX5iO9y.cjs");
|
|
3
3
|
exports.TAILWIND_V4_CSS_PREFLIGHT = require_defaults.TAILWIND_V4_CSS_PREFLIGHT;
|
|
4
4
|
exports.getDefaultCssPreflight = require_defaults.getDefaultCssPreflight;
|
|
5
5
|
exports.getDefaultOptions = require_defaults.getDefaultOptions;
|
package/dist/defaults.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as resolveDefaultCssPreflight, n as getDefaultCssPreflight, r as getDefaultOptions, t as TAILWIND_V4_CSS_PREFLIGHT } from "./defaults-
|
|
1
|
+
import { i as resolveDefaultCssPreflight, n as getDefaultCssPreflight, r as getDefaultOptions, t as TAILWIND_V4_CSS_PREFLIGHT } from "./defaults-AQuvJS-h.js";
|
|
2
2
|
export { TAILWIND_V4_CSS_PREFLIGHT, getDefaultCssPreflight, getDefaultOptions, resolveDefaultCssPreflight };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@weapp-tailwindcss/postcss/transform");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { finalizeMiniProgramCssStructure } from "@weapp-tailwindcss/postcss/transform";
|
|
2
2
|
//#region src/compiler/runtime-build-state.ts
|
|
3
3
|
function invertLinkedByEntry(linkedByEntry) {
|
|
4
4
|
const dependentsByLinkedFile = /* @__PURE__ */ new Map();
|
|
@@ -134,6 +134,7 @@ function buildRuntimeCompilationSnapshot(entries, state, options) {
|
|
|
134
134
|
const changed = previousHash == null || previousHash !== hash;
|
|
135
135
|
const previousRuntimeAffectingHash = state.runtimeAffectingHashByFile.get(file);
|
|
136
136
|
const runtimeAffectingHash = !changed && previousRuntimeAffectingHash != null ? previousRuntimeAffectingHash : (() => {
|
|
137
|
+
if (type === "js" && entry.runtimeCandidate === false) return hash;
|
|
137
138
|
const signature = options.createRuntimeAffectingSignature(source, type);
|
|
138
139
|
snapshot.runtimeAffectingSignatureByFile.set(file, signature);
|
|
139
140
|
return options.computeHash(signature);
|
|
@@ -180,129 +181,4 @@ async function processCachedTask({ cache, cacheKey, hashKey = cacheKey, rawSourc
|
|
|
180
181
|
if (!cacheHit) await applyResult(result, { cacheHit: false });
|
|
181
182
|
}
|
|
182
183
|
//#endregion
|
|
183
|
-
|
|
184
|
-
function isCssWhitespace(code) {
|
|
185
|
-
return code === 9 || code === 10 || code === 12 || code === 13 || code === 32;
|
|
186
|
-
}
|
|
187
|
-
function isCssWordChar(code) {
|
|
188
|
-
return code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95;
|
|
189
|
-
}
|
|
190
|
-
const EMPTY_CSS_BLOCK_RE = /\{(?:[\t\n\f\r ]|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/;
|
|
191
|
-
function findCssPreludeStart(css, start, end) {
|
|
192
|
-
let cursor = start;
|
|
193
|
-
while (cursor < end) {
|
|
194
|
-
while (cursor < end && isCssWhitespace(css.charCodeAt(cursor))) cursor++;
|
|
195
|
-
if (css.charCodeAt(cursor) !== 47 || css.charCodeAt(cursor + 1) !== 42) return cursor;
|
|
196
|
-
const commentEnd = css.indexOf("*/", cursor + 2);
|
|
197
|
-
if (commentEnd < 0 || commentEnd + 2 > end) return end;
|
|
198
|
-
cursor = commentEnd + 2;
|
|
199
|
-
}
|
|
200
|
-
return end;
|
|
201
|
-
}
|
|
202
|
-
function isKeyframesAtRule(css, start, end) {
|
|
203
|
-
let cursor = start + 1;
|
|
204
|
-
if (css.charCodeAt(cursor) === 45) {
|
|
205
|
-
cursor++;
|
|
206
|
-
const prefixStart = cursor;
|
|
207
|
-
while (cursor < end && isCssWordChar(css.charCodeAt(cursor))) cursor++;
|
|
208
|
-
if (cursor === prefixStart || css.charCodeAt(cursor) !== 45) return false;
|
|
209
|
-
cursor++;
|
|
210
|
-
}
|
|
211
|
-
if (cursor + 9 > end || css.slice(cursor, cursor + 9).toLowerCase() !== "keyframes") return false;
|
|
212
|
-
return !isCssWordChar(css.charCodeAt(cursor + 9));
|
|
213
|
-
}
|
|
214
|
-
function hasEmptyCssBlockCandidate(css) {
|
|
215
|
-
if (!EMPTY_CSS_BLOCK_RE.test(css)) return false;
|
|
216
|
-
const blocks = [];
|
|
217
|
-
let parenthesisDepth = 0;
|
|
218
|
-
let quote = 0;
|
|
219
|
-
let squareBracketDepth = 0;
|
|
220
|
-
let statementStart = 0;
|
|
221
|
-
for (let index = 0; index < css.length; index++) {
|
|
222
|
-
const code = css.charCodeAt(index);
|
|
223
|
-
if (quote !== 0) {
|
|
224
|
-
if (code === 92) index++;
|
|
225
|
-
else if (code === quote) quote = 0;
|
|
226
|
-
continue;
|
|
227
|
-
}
|
|
228
|
-
if (code === 34 || code === 39) {
|
|
229
|
-
quote = code;
|
|
230
|
-
if (blocks.length > 0) blocks[blocks.length - 1].hasContent = true;
|
|
231
|
-
continue;
|
|
232
|
-
}
|
|
233
|
-
if (code === 92) {
|
|
234
|
-
if (blocks.length > 0) blocks[blocks.length - 1].hasContent = true;
|
|
235
|
-
index++;
|
|
236
|
-
continue;
|
|
237
|
-
}
|
|
238
|
-
if (code === 47 && css.charCodeAt(index + 1) === 42) {
|
|
239
|
-
const commentEnd = css.indexOf("*/", index + 2);
|
|
240
|
-
if (commentEnd < 0) return false;
|
|
241
|
-
index = commentEnd + 1;
|
|
242
|
-
continue;
|
|
243
|
-
}
|
|
244
|
-
if (code === 40) {
|
|
245
|
-
parenthesisDepth++;
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
if (code === 41 && parenthesisDepth > 0) {
|
|
249
|
-
parenthesisDepth--;
|
|
250
|
-
continue;
|
|
251
|
-
}
|
|
252
|
-
if (code === 91) {
|
|
253
|
-
squareBracketDepth++;
|
|
254
|
-
continue;
|
|
255
|
-
}
|
|
256
|
-
if (code === 93 && squareBracketDepth > 0) {
|
|
257
|
-
squareBracketDepth--;
|
|
258
|
-
continue;
|
|
259
|
-
}
|
|
260
|
-
if (code === 123 && parenthesisDepth === 0 && squareBracketDepth === 0) {
|
|
261
|
-
const preludeStart = findCssPreludeStart(css, statementStart, index);
|
|
262
|
-
const isAtRule = css.charCodeAt(preludeStart) === 64;
|
|
263
|
-
const isKeyframesContainer = isAtRule && isKeyframesAtRule(css, preludeStart, index);
|
|
264
|
-
blocks.push({
|
|
265
|
-
hasContent: false,
|
|
266
|
-
isKeyframesContainer,
|
|
267
|
-
isKeyframeStep: !isAtRule && blocks[blocks.length - 1]?.isKeyframesContainer === true
|
|
268
|
-
});
|
|
269
|
-
statementStart = index + 1;
|
|
270
|
-
continue;
|
|
271
|
-
}
|
|
272
|
-
if (code === 125 && parenthesisDepth === 0 && squareBracketDepth === 0) {
|
|
273
|
-
const block = blocks.pop();
|
|
274
|
-
if (!block) continue;
|
|
275
|
-
if (!block.hasContent && !block.isKeyframeStep) return true;
|
|
276
|
-
if (blocks.length > 0) blocks[blocks.length - 1].hasContent = true;
|
|
277
|
-
statementStart = index + 1;
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
if (code === 59 && parenthesisDepth === 0 && squareBracketDepth === 0) {
|
|
281
|
-
statementStart = index + 1;
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
284
|
-
if (!isCssWhitespace(code) && blocks.length > 0) blocks[blocks.length - 1].hasContent = true;
|
|
285
|
-
}
|
|
286
|
-
return false;
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* 在小程序样式进入最终产物图时递归清理无语义的空 CSS 块。
|
|
290
|
-
*/
|
|
291
|
-
function finalizeMiniProgramCssStructure(css) {
|
|
292
|
-
const repaired = repairTrailingUnclosedTailwindSourceMedia(css);
|
|
293
|
-
if (!hasEmptyCssBlockCandidate(repaired)) return repaired;
|
|
294
|
-
try {
|
|
295
|
-
const root = postcss.parse(repaired);
|
|
296
|
-
let removed = 0;
|
|
297
|
-
let passRemoved = 0;
|
|
298
|
-
do {
|
|
299
|
-
passRemoved = removeEmptyRules(root) + removeEmptyAtRules(root);
|
|
300
|
-
removed += passRemoved;
|
|
301
|
-
} while (passRemoved > 0);
|
|
302
|
-
return removed > 0 ? root.toString() : repaired;
|
|
303
|
-
} catch {
|
|
304
|
-
return repaired;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
//#endregion
|
|
308
|
-
export { createRuntimeCompilationAffectingSignature as a, resetRuntimeCompilationBuildState as c, buildRuntimeCompilationSnapshot as i, updateRuntimeCompilationBuildState as l, hasEmptyCssBlockCandidate as n, createRuntimeCompilationBuildState as o, processCachedTask as r, removeRuntimeCompilationBuildStateFiles as s, finalizeMiniProgramCssStructure as t };
|
|
184
|
+
export { createRuntimeCompilationBuildState as a, updateRuntimeCompilationBuildState as c, createRuntimeCompilationAffectingSignature as i, processCachedTask as n, removeRuntimeCompilationBuildStateFiles as o, buildRuntimeCompilationSnapshot as r, resetRuntimeCompilationBuildState as s, finalizeMiniProgramCssStructure as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type DetectableAppType = 'mpx' | 'taro' | 'uni-app' | 'uni-app-vite' | 'uni-app-x' | 'weapp-vite';
|
|
2
|
-
export type FrameworkEnv = Partial<Record<'MPX_CLI_MODE' | 'MPX_CURRENT_TARGET_MODE' | 'NODE_PATH' | 'TARO_ENV' | 'UNI_PLATFORM' | 'UNI_UTS_PLATFORM' | 'WEAPP_TAILWINDCSS_TARGET' | 'WEAPP_TW_TARGET', string | undefined>>;
|
|
2
|
+
export type FrameworkEnv = Record<string, string | undefined> & Partial<Record<'MPX_CLI_MODE' | 'MPX_CURRENT_TARGET_MODE' | 'NODE_PATH' | 'TARO_ENV' | 'UNI_PLATFORM' | 'UNI_UTS_PLATFORM' | 'WEAPP_TAILWINDCSS_TARGET' | 'WEAPP_TW_TARGET', string | undefined>>;
|
|
3
3
|
export interface UniPlatformInfo {
|
|
4
4
|
raw: string | undefined;
|
|
5
5
|
normalized: string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function normalizeFrameworkStylePlatform(platform: string | undefined, appType:
|
|
1
|
+
import type { AppType } from '../types/index.js';
|
|
2
|
+
export declare function normalizeFrameworkStylePlatform(platform: string | undefined, appType: AppType | undefined): string | undefined;
|
package/dist/framework.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-fg3euq-1.cjs");
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|