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,16 +1,16 @@
|
|
|
1
|
+
import { a as findTailwindConfig, f as resolveSourceScanEntries, l as getRuntimeClassSetSignature, v as source_scan_exports } from "./tailwindcss-kSd0ykiX.js";
|
|
1
2
|
import { resolveImplicitAppTypeFromViteRoot } from "./framework.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as resolvePackageDir, o as normalizeStyleInjectorOptions, r as normalizeOutputPathKey, t as createSourceCandidateScanSignature } from "./source-candidate-scan-signature-Lm32zKVA.js";
|
|
3
|
+
import { S as findNearestPackageRoot, a as resolveGeneratorRuntimeBranch, b as isTailwindV4CssEntry, i as normalizeWeappTailwindcssGeneratorOptions, k as resolveTailwindcssOptions } from "./generator-oKZ5mCJ5.js";
|
|
4
|
+
import { A as createTailwindRuntimeReadyPromise, M as refreshTailwindRuntimeState, N as createDebug, f as getCompilerContext, g as vitePluginName, i as disposeCompilerOwner, k as collectRuntimeClassSet, n as createRuntimeAffectingSourceSignature, p as normalizeStyleHandlerMajorVersion, t as createCompilerRuntimeState } from "./compiler-CThodfGH.js";
|
|
5
|
+
import { $ as createSourceCandidateEligibilityMatcher, H as stripRequestQuery, I as hasTailwindGeneratedCss, L as hasTailwindGeneratedCssMarkers, M as normalizeEmptyTailwindCustomVariants$1, N as captureFrameworkPostcssOptions, T as hasUserCssLayerBlocks, U as createRuntimeClassSetManager, V as isSourceStyleRequest, Y as createSourceCandidateCollector, Z as isSourceCandidateRequest, at as hasTailwindSourceDirectives, c as annotateCssSourceTrace, d as isCssSourceTraceEnabled, dt as finalizeCompilerShadowRun, f as generateTailwindV4Css, i as createBundlerGeneratedCssMarker, it as hasTailwindRootDirectives, nt as hasTailwindApplyDirective, o as parseBundlerGeneratedCssMarkerBlocks, ot as normalizeTailwindConfigDirectives$1, rt as hasTailwindNonRootGenerationDirectives, s as stripBundlerGeneratedCssMarkers, st as normalizeTailwindSourceForGenerator, t as createHmrTimingRecorder, tt as hasLocalCssImport, u as createCssTokenSourceMap, x as scoreTailwindV4CssSourceFileMatch } from "./hmr-timing-xPpat-km.js";
|
|
6
|
+
import { c as getViteHookHandler, n as resolvePackageDir, o as normalizeStyleInjectorOptions, r as normalizeOutputPathKey, t as createSourceCandidateScanSignature } from "./source-candidate-scan-signature-BjVQYL-C.js";
|
|
7
7
|
import { existsSync, realpathSync } from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import process$1 from "node:process";
|
|
10
|
-
import {
|
|
10
|
+
import { applyConfiguredCssCalc, canProcessSourceStyleAsCss, collectImportedCssFiles, hasNonCommentCss, isStyleImportRequest, normalizeInjectableCssWithImports, removeTailwindEntryDirectivesFromCss, removeTailwindPostcssPlugins, resolvePostcssConfig, rewriteTailwindPackageImportStatements, stripTailwindConfigDirectives, transformWebCssCompat } from "@weapp-tailwindcss/postcss/transform";
|
|
11
11
|
import { LRUCache } from "lru-cache";
|
|
12
|
-
import { readFile } from "node:fs/promises";
|
|
13
12
|
import { cleanUrl as cleanUrl$1, ensurePosix } from "@weapp-tailwindcss/shared";
|
|
13
|
+
import { readFile } from "node:fs/promises";
|
|
14
14
|
import { logger } from "@weapp-tailwindcss/logger";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
16
16
|
import { weappStyleInjector } from "weapp-style-injector/vite";
|
|
@@ -202,6 +202,19 @@ function createViteCssAssetIdentityResolver(options) {
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
//#endregion
|
|
205
|
+
//#region src/bundlers/vite/processed-css-assets/style-files.ts
|
|
206
|
+
const CSS_OUTPUT_FILE_RE = /\.(?:css|wxss|acss|ttss|qss|jxss|tyss)(?:$|[?#])/i;
|
|
207
|
+
function isCssOutputFile(file) {
|
|
208
|
+
return CSS_OUTPUT_FILE_RE.test(file);
|
|
209
|
+
}
|
|
210
|
+
function isRootStyleOutputFile(file) {
|
|
211
|
+
const normalized = normalizeOutputPathKey(file.replace(/[?#].*$/, ""));
|
|
212
|
+
return isCssOutputFile(normalized) && !normalized.includes("/");
|
|
213
|
+
}
|
|
214
|
+
function isMiniProgramStyleOutputFile(file) {
|
|
215
|
+
return /\.(?:wxss|acss|ttss|qss|jxss|tyss)(?:$|[?#])/i.test(file);
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
205
218
|
//#region src/bundlers/vite/css-handler-options.ts
|
|
206
219
|
function resolveViteCssHandlerExtraOptions(file) {
|
|
207
220
|
return normalizeOutputPathKey(file.replace(/[?#].*$/, "")).includes("/") ? { isMainChunk: false } : {};
|
|
@@ -300,7 +313,6 @@ async function formatPostcssSourceMap(rawMap, file) {
|
|
|
300
313
|
//#region src/bundlers/vite/css-output.ts
|
|
301
314
|
const SOURCE_STYLE_OUTPUT_EXT_RE = /\.(?:less|sass|scss|styl|stylus|pcss|postcss)$/i;
|
|
302
315
|
const CSS_SOURCE_OUTPUT_EXT_RE = /\.(?:css|less|sass|scss|styl|stylus|pcss|postcss)$/i;
|
|
303
|
-
const SOURCE_STYLE_NON_CSS_SYNTAX_RE = /(?:^|\n)\s*(?:\/\/|\$[\w-]+\s*:|@(?:use|forward|mixin|include|function)\b)/;
|
|
304
316
|
const FALLBACK_STYLE_OUTPUT_EXTENSION = ".css";
|
|
305
317
|
const COMMON_MINI_PROGRAM_STYLE_OUTPUT_EXTENSIONS = [
|
|
306
318
|
".wxss",
|
|
@@ -451,13 +463,7 @@ function resolveViteCssPipelineOutputFileFromSourceFile(sourceFile, opts, rootDi
|
|
|
451
463
|
return cleanFile.replace(CSS_SOURCE_OUTPUT_EXT_RE, styleExtension);
|
|
452
464
|
}
|
|
453
465
|
function canProcessViteSourceStyleAsCss(source, file) {
|
|
454
|
-
|
|
455
|
-
try {
|
|
456
|
-
postcss.parse(source, { from: file });
|
|
457
|
-
return true;
|
|
458
|
-
} catch {
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
466
|
+
return canProcessSourceStyleAsCss(source, file);
|
|
461
467
|
}
|
|
462
468
|
function normalizeCssSourceForCompare(css) {
|
|
463
469
|
return css.trim();
|
|
@@ -914,19 +920,6 @@ const mix = (del = delimiter) => {
|
|
|
914
920
|
const posix = /* @__PURE__ */ mix(":");
|
|
915
921
|
const win32 = /* @__PURE__ */ mix(";");
|
|
916
922
|
//#endregion
|
|
917
|
-
//#region src/bundlers/vite/processed-css-assets/style-files.ts
|
|
918
|
-
const CSS_OUTPUT_FILE_RE = /\.(?:css|wxss|acss|ttss|qss|jxss|tyss)(?:$|[?#])/i;
|
|
919
|
-
function isCssOutputFile(file) {
|
|
920
|
-
return CSS_OUTPUT_FILE_RE.test(file);
|
|
921
|
-
}
|
|
922
|
-
function isRootStyleOutputFile(file) {
|
|
923
|
-
const normalized = normalizeOutputPathKey(file.replace(/[?#].*$/, ""));
|
|
924
|
-
return isCssOutputFile(normalized) && !normalized.includes("/");
|
|
925
|
-
}
|
|
926
|
-
function isMiniProgramStyleOutputFile(file) {
|
|
927
|
-
return /\.(?:wxss|acss|ttss|qss|jxss|tyss)(?:$|[?#])/i.test(file);
|
|
928
|
-
}
|
|
929
|
-
//#endregion
|
|
930
923
|
//#region src/bundlers/vite/processed-css-assets/markers-imports.ts
|
|
931
924
|
function createCssAssetPipelineContext(options, file, bundle) {
|
|
932
925
|
const context = options.createCssPipelineContext?.(file);
|
|
@@ -952,9 +945,6 @@ function appendCss(baseCss, css) {
|
|
|
952
945
|
function normalizeCssRecordIdentity(css) {
|
|
953
946
|
return css.trim();
|
|
954
947
|
}
|
|
955
|
-
function hasNonCommentCss(css) {
|
|
956
|
-
return css.replace(/\/\*[\s\S]*?\*\//g, "").trim().length > 0;
|
|
957
|
-
}
|
|
958
948
|
function dedupeViteCssResults(records) {
|
|
959
949
|
const seen = /* @__PURE__ */ new Set();
|
|
960
950
|
return records.filter((record) => {
|
|
@@ -964,73 +954,15 @@ function dedupeViteCssResults(records) {
|
|
|
964
954
|
return true;
|
|
965
955
|
});
|
|
966
956
|
}
|
|
967
|
-
function removeTailwindSourceMediaWrappersRoot(root) {
|
|
968
|
-
let changed = false;
|
|
969
|
-
root.walkAtRules("media", (atRule) => {
|
|
970
|
-
if (!atRule.params.startsWith("source(")) return;
|
|
971
|
-
if (atRule.nodes && atRule.nodes.length > 0) atRule.replaceWith(...atRule.nodes);
|
|
972
|
-
else atRule.remove();
|
|
973
|
-
changed = true;
|
|
974
|
-
});
|
|
975
|
-
if (changed) root.walkAtRules((atRule) => {
|
|
976
|
-
if (atRule.nodes && atRule.nodes.length === 0) atRule.remove();
|
|
977
|
-
});
|
|
978
|
-
return changed;
|
|
979
|
-
}
|
|
980
|
-
function removeTailwindSourceMediaWrappersFallback(css) {
|
|
981
|
-
return css.replace(/@media\s+source\([^)]*\)\s*\{\s*\/\*!\s*weapp-tailwindcss generator-placeholder\s*\*\/?\s*\}/gi, "").replace(/@media\s+source\([^)]*\)\s*\{\s*\}/gi, "");
|
|
982
|
-
}
|
|
983
|
-
function removeTailwindEntryDirectivesFromCss(css) {
|
|
984
|
-
try {
|
|
985
|
-
const source = stripGeneratorPlaceholderMarkers(css);
|
|
986
|
-
const root = postcss.parse(source);
|
|
987
|
-
const removedMediaWrappers = removeTailwindSourceMediaWrappersRoot(root);
|
|
988
|
-
const removedTailwindDirectives = removeTailwindSourceDirectivesRoot(root);
|
|
989
|
-
return removedMediaWrappers || removedTailwindDirectives ? root.toString() : source;
|
|
990
|
-
} catch {
|
|
991
|
-
return removeTailwindSourceDirectives(removeTailwindSourceMediaWrappersFallback(css));
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
function removeUnsupportedMiniProgramCssImportsFallback(css, file) {
|
|
995
|
-
if (!isMiniProgramStyleOutputFile(file) || !css.includes("@import")) return css;
|
|
996
|
-
return css.split(/\r?\n/).filter((line) => {
|
|
997
|
-
const trimmed = line.trim();
|
|
998
|
-
if (!trimmed.startsWith("@import")) return true;
|
|
999
|
-
const params = trimmed.slice(7).trim().replace(/;$/, "").trim();
|
|
1000
|
-
const request = parseTailwindCssDirectiveRequest(params);
|
|
1001
|
-
return request === void 0 || isMiniProgramLocalCssImportRequest(request);
|
|
1002
|
-
}).join("\n");
|
|
1003
|
-
}
|
|
1004
957
|
function normalizeInjectableCssForTarget(css, file) {
|
|
1005
958
|
return normalizeInjectableCssForTargetWithImports(css, file).css;
|
|
1006
959
|
}
|
|
1007
960
|
function normalizeInjectableCssForTargetWithImports(css, file) {
|
|
1008
|
-
|
|
1009
|
-
css,
|
|
1010
|
-
importedStyleFiles: /* @__PURE__ */ new Set()
|
|
1011
|
-
};
|
|
1012
|
-
try {
|
|
1013
|
-
const root = postcss.parse(css);
|
|
1014
|
-
const changed = isMiniProgramStyleOutputFile(file) ? removeUnsupportedMiniProgramCssImportsRoot(root) : false;
|
|
1015
|
-
const importedStyleFiles = collectImportedStyleFilesRoot(root, file);
|
|
1016
|
-
return {
|
|
1017
|
-
css: changed ? root.toString() : css,
|
|
1018
|
-
importedStyleFiles: importedStyleFiles.size > 0 ? importedStyleFiles : collectImportedStyleFilesFallback(css, file)
|
|
1019
|
-
};
|
|
1020
|
-
} catch {
|
|
1021
|
-
const fallbackCss = removeUnsupportedMiniProgramCssImportsFallback(css, file);
|
|
1022
|
-
return {
|
|
1023
|
-
css: fallbackCss,
|
|
1024
|
-
importedStyleFiles: collectImportedStyleFiles(fallbackCss, file)
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
961
|
+
return normalizeInjectableCssWithImports(css, isMiniProgramStyleOutputFile(file), (request) => resolveImportedStyleFile(file, request));
|
|
1027
962
|
}
|
|
1028
963
|
function stripStyleExtension(file) {
|
|
1029
964
|
return file.replace(/[?#].*$/, "").replace(/\.(?:css|wxss|acss|ttss|qss|jxss|tyss|scss|sass|less|styl|stylus|pcss|postcss)$/i, "");
|
|
1030
965
|
}
|
|
1031
|
-
function isStyleImportRequest(request) {
|
|
1032
|
-
return typeof request === "string" && request.length > 0 && !/^(?:https?:)?\/\//i.test(request) && /\.(?:css|wxss|acss|ttss|qss|jxss|tyss)(?:$|[?#])/i.test(request);
|
|
1033
|
-
}
|
|
1034
966
|
function resolveImportedStyleFile(targetFile, request) {
|
|
1035
967
|
if (!isStyleImportRequest(request)) return;
|
|
1036
968
|
const cleanRequest = request.replace(/[?#].*$/, "");
|
|
@@ -1038,27 +970,8 @@ function resolveImportedStyleFile(targetFile, request) {
|
|
|
1038
970
|
const targetDir = posix.posix.dirname(normalizeOutputPathKey(targetFile));
|
|
1039
971
|
return normalizeOutputPathKey(posix.posix.join(targetDir === "." ? "" : targetDir, cleanRequest));
|
|
1040
972
|
}
|
|
1041
|
-
function collectImportedStyleFilesFromRequests(requests, targetFile) {
|
|
1042
|
-
const imports = /* @__PURE__ */ new Set();
|
|
1043
|
-
for (const request of requests) {
|
|
1044
|
-
const importedFile = resolveImportedStyleFile(targetFile, request);
|
|
1045
|
-
if (importedFile) imports.add(importedFile);
|
|
1046
|
-
}
|
|
1047
|
-
return imports;
|
|
1048
|
-
}
|
|
1049
|
-
function collectImportedStyleFilesRoot(root, targetFile) {
|
|
1050
|
-
return collectImportedStyleFilesFromRequests(collectCssImportRequestsRoot(root), targetFile);
|
|
1051
|
-
}
|
|
1052
|
-
function collectImportedStyleFilesFallback(css, targetFile) {
|
|
1053
|
-
return collectImportedStyleFilesFromRequests([...css.matchAll(/@import\s+(?:url\(\s*)?(?:"([^"]+)"|'([^']+)'|([^\s;)]+))/g)].map((match) => match[1] ?? match[2] ?? match[3]).filter((request) => typeof request === "string" && request.length > 0), targetFile);
|
|
1054
|
-
}
|
|
1055
973
|
function collectImportedStyleFiles(css, targetFile) {
|
|
1056
|
-
|
|
1057
|
-
try {
|
|
1058
|
-
const imports = collectImportedStyleFilesRoot(postcss.parse(css), targetFile);
|
|
1059
|
-
return imports.size > 0 ? imports : collectImportedStyleFilesFallback(css, targetFile);
|
|
1060
|
-
} catch {}
|
|
1061
|
-
return collectImportedStyleFilesFallback(css, targetFile);
|
|
974
|
+
return collectImportedCssFiles(css, (request) => resolveImportedStyleFile(targetFile, request));
|
|
1062
975
|
}
|
|
1063
976
|
function normalizeMarkerOutputFile(markerFile, resolveViteProcessedCssOutputFile) {
|
|
1064
977
|
return resolveViteProcessedCssOutputFile?.(markerFile) ?? markerFile;
|
|
@@ -1619,7 +1532,7 @@ async function resolveHotTailwindCssModules(ctx, tailwindRootCssModuleIds, selec
|
|
|
1619
1532
|
const root = ctx.server.config?.root ?? process$1.cwd();
|
|
1620
1533
|
const outDir = ctx.server.config?.build?.outDir ? resolveViteModuleIdentity(ctx.server.config.build.outDir, root) : void 0;
|
|
1621
1534
|
const isHotSourceStyleModule = (id) => {
|
|
1622
|
-
if (!isSourceStyleRequest(id)) return false;
|
|
1535
|
+
if (typeof id !== "string" || !isSourceStyleRequest(id)) return false;
|
|
1623
1536
|
const file = cleanUrl$1(id);
|
|
1624
1537
|
if (isRootMiniProgramStyleUrl(file) || !isAbsoluteFilePath(file) && !file.startsWith("/")) return false;
|
|
1625
1538
|
if (outDir) {
|
|
@@ -1800,59 +1713,6 @@ function sendFullReloadForUnresolvedHotUpdate(ctx) {
|
|
|
1800
1713
|
});
|
|
1801
1714
|
}
|
|
1802
1715
|
//#endregion
|
|
1803
|
-
//#region src/bundlers/vite/shared/generic-web-production-fast-path.ts
|
|
1804
|
-
/**
|
|
1805
|
-
* Generic Web 非 watch 生产构建由 Tailwind Scanner 直接提供候选,不需要重复维护小程序候选状态。
|
|
1806
|
-
*/
|
|
1807
|
-
function shouldSkipGenericWebProductionSourceCandidates(options) {
|
|
1808
|
-
return options.frameworkName === "generic" && options.command === "build" && options.watch == null && options.isWebGeneratorTarget && options.requiresSourceCandidateState !== true;
|
|
1809
|
-
}
|
|
1810
|
-
/**
|
|
1811
|
-
* 在 Vite 解析插件列表时排除无需维护的候选层,避免其 hooks 进入模块图。
|
|
1812
|
-
*/
|
|
1813
|
-
function createGenericWebProductionSourceCandidatesApply(options) {
|
|
1814
|
-
return (config, env) => !shouldSkipGenericWebProductionSourceCandidates({
|
|
1815
|
-
command: env.command,
|
|
1816
|
-
frameworkName: options.frameworkName,
|
|
1817
|
-
isWebGeneratorTarget: options.getIsWebGeneratorTarget(),
|
|
1818
|
-
requiresSourceCandidateState: options.requiresSourceCandidateState,
|
|
1819
|
-
watch: config.build?.watch
|
|
1820
|
-
});
|
|
1821
|
-
}
|
|
1822
|
-
/**
|
|
1823
|
-
* Generic Web 生产构建的 CSS 已在 Vite transform 阶段生成时,不需要再建立面向小程序的完整产物快照。
|
|
1824
|
-
*/
|
|
1825
|
-
function shouldUseGenericWebProductionFastPath(options) {
|
|
1826
|
-
return shouldSkipGenericWebProductionSourceCandidates(options) && options.hasProcessedCss;
|
|
1827
|
-
}
|
|
1828
|
-
/**
|
|
1829
|
-
* Finalizer fast path 只处理无小程序结构语义的 Generic Web 生产产物。
|
|
1830
|
-
*/
|
|
1831
|
-
function shouldUseGenericWebFinalizerFastPath(options) {
|
|
1832
|
-
return shouldUseGenericWebProductionFastPath(options) && !options.hasFrameworkRootImportShells && !options.isHarmonyAppStyleTarget && !options.isNativeAppStyleTarget;
|
|
1833
|
-
}
|
|
1834
|
-
/**
|
|
1835
|
-
* 将 Generic Web fast path 的判定和跳过生命周期集中起来,供 generateBundle hook 直接消费。
|
|
1836
|
-
*/
|
|
1837
|
-
function createGenericWebProductionBundleHooks(options) {
|
|
1838
|
-
return {
|
|
1839
|
-
onSkipProcessBundle: () => {
|
|
1840
|
-
options.onStart();
|
|
1841
|
-
options.onEnd();
|
|
1842
|
-
},
|
|
1843
|
-
shouldProcessBundle: () => {
|
|
1844
|
-
const config = options.getResolvedConfig();
|
|
1845
|
-
return !shouldUseGenericWebProductionFastPath({
|
|
1846
|
-
command: config?.command,
|
|
1847
|
-
frameworkName: options.frameworkName,
|
|
1848
|
-
hasProcessedCss: options.getHasProcessedCss(),
|
|
1849
|
-
isWebGeneratorTarget: options.getIsWebGeneratorTarget(),
|
|
1850
|
-
watch: config?.build?.watch
|
|
1851
|
-
});
|
|
1852
|
-
}
|
|
1853
|
-
};
|
|
1854
|
-
}
|
|
1855
|
-
//#endregion
|
|
1856
1716
|
//#region src/bundlers/vite/css-finalizer/options.ts
|
|
1857
1717
|
function inferPlatformFromViteOutDir(outDir) {
|
|
1858
1718
|
const segment = outDir ? path.basename(path.normalize(outDir)) : void 0;
|
|
@@ -1916,6 +1776,84 @@ function finalizeWebCss(css, context, cssPipelineStrategy) {
|
|
|
1916
1776
|
}) ?? (shouldApplyWebCssCompat ? defaultWebCssCompat(css) : css);
|
|
1917
1777
|
}
|
|
1918
1778
|
//#endregion
|
|
1779
|
+
//#region src/bundlers/vite/css-finalizer/css-calc.ts
|
|
1780
|
+
/** 在所有 CSS 资产完成组装后,为普通 Web 样式补齐显式启用的 calc 计算。 */
|
|
1781
|
+
async function finalizeWebCssCalc(bundle, context) {
|
|
1782
|
+
const cssCalc = context.opts.cssOptions?.cssCalc ?? context.opts.cssCalc;
|
|
1783
|
+
if (!cssCalc) return;
|
|
1784
|
+
const pending = Object.values(bundle).filter((output) => output.type === "asset" && context.opts.cssMatcher(output.fileName) && !context.opts.htmlMatcher(output.fileName)).map((asset) => ({
|
|
1785
|
+
asset,
|
|
1786
|
+
original: typeof asset.source === "string" ? asset.source : new TextDecoder().decode(asset.source)
|
|
1787
|
+
})).filter(({ original }) => original.includes("calc("));
|
|
1788
|
+
if (pending.length === 0) return;
|
|
1789
|
+
const sources = new Set(collectViteProcessedCssSources(context.getViteProcessedCssAssetResults));
|
|
1790
|
+
const contextCss = sources.size === 1 ? sources.values().next().value : void 0;
|
|
1791
|
+
for (const { asset, original } of pending) {
|
|
1792
|
+
const css = await applyConfiguredCssCalc(original, {
|
|
1793
|
+
cssCalc,
|
|
1794
|
+
contextCss
|
|
1795
|
+
});
|
|
1796
|
+
if (css !== original) {
|
|
1797
|
+
asset.source = css;
|
|
1798
|
+
context.recordCssAssetResult?.(asset.fileName, css);
|
|
1799
|
+
context.opts.onUpdate(asset.fileName, original, css);
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
//#endregion
|
|
1804
|
+
//#region src/bundlers/vite/shared/generic-web-production-fast-path.ts
|
|
1805
|
+
/**
|
|
1806
|
+
* Generic Web 非 watch 生产构建由 Tailwind Scanner 直接提供候选,不需要重复维护小程序候选状态。
|
|
1807
|
+
*/
|
|
1808
|
+
function shouldSkipGenericWebProductionSourceCandidates(options) {
|
|
1809
|
+
return options.frameworkName === "generic" && options.command === "build" && options.watch == null && options.isWebGeneratorTarget && options.requiresSourceCandidateState !== true;
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* 在 Vite 解析插件列表时排除无需维护的候选层,避免其 hooks 进入模块图。
|
|
1813
|
+
*/
|
|
1814
|
+
function createGenericWebProductionSourceCandidatesApply(options) {
|
|
1815
|
+
return (config, env) => !shouldSkipGenericWebProductionSourceCandidates({
|
|
1816
|
+
command: env.command,
|
|
1817
|
+
frameworkName: options.frameworkName,
|
|
1818
|
+
isWebGeneratorTarget: options.getIsWebGeneratorTarget(),
|
|
1819
|
+
requiresSourceCandidateState: options.requiresSourceCandidateState,
|
|
1820
|
+
watch: config.build?.watch
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Generic Web 生产构建的 CSS 已在 Vite transform 阶段生成时,不需要再建立面向小程序的完整产物快照。
|
|
1825
|
+
*/
|
|
1826
|
+
function shouldUseGenericWebProductionFastPath(options) {
|
|
1827
|
+
return shouldSkipGenericWebProductionSourceCandidates(options) && options.hasProcessedCss;
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Finalizer fast path 只处理无小程序结构语义的 Generic Web 生产产物。
|
|
1831
|
+
*/
|
|
1832
|
+
function shouldUseGenericWebFinalizerFastPath(options) {
|
|
1833
|
+
return shouldUseGenericWebProductionFastPath(options) && !options.hasFrameworkRootImportShells && !options.isHarmonyAppStyleTarget && !options.isNativeAppStyleTarget;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* 将 Generic Web fast path 的判定和跳过生命周期集中起来,供 generateBundle hook 直接消费。
|
|
1837
|
+
*/
|
|
1838
|
+
function createGenericWebProductionBundleHooks(options) {
|
|
1839
|
+
return {
|
|
1840
|
+
onSkipProcessBundle: () => {
|
|
1841
|
+
options.onStart();
|
|
1842
|
+
options.onEnd();
|
|
1843
|
+
},
|
|
1844
|
+
shouldProcessBundle: () => {
|
|
1845
|
+
const config = options.getResolvedConfig();
|
|
1846
|
+
return !shouldUseGenericWebProductionFastPath({
|
|
1847
|
+
command: config?.command,
|
|
1848
|
+
frameworkName: options.frameworkName,
|
|
1849
|
+
hasProcessedCss: options.getHasProcessedCss(),
|
|
1850
|
+
isWebGeneratorTarget: options.getIsWebGeneratorTarget(),
|
|
1851
|
+
watch: config?.build?.watch
|
|
1852
|
+
});
|
|
1853
|
+
}
|
|
1854
|
+
};
|
|
1855
|
+
}
|
|
1856
|
+
//#endregion
|
|
1919
1857
|
//#region src/bundlers/vite/css-finalizer/generic-web-fast-path.ts
|
|
1920
1858
|
function readAssetSource(asset) {
|
|
1921
1859
|
return typeof asset.source === "string" ? asset.source : asset.source.toString();
|
|
@@ -1958,7 +1896,7 @@ function resolveProcessedCssAssets(cssAssets, records, options, bundleFiles) {
|
|
|
1958
1896
|
useAssetSource = true;
|
|
1959
1897
|
}
|
|
1960
1898
|
}
|
|
1961
|
-
if (!output && records.length === 1 && htmlOwnedAssets.length === 1) {
|
|
1899
|
+
if (!output && records.length === 1 && htmlOwnedAssets.length === 1 && htmlOwnedAssets[0]) {
|
|
1962
1900
|
output = htmlOwnedAssets[0];
|
|
1963
1901
|
useAssetSource = hasTailwindGeneratedCss(output.original) || hasTailwindGeneratedCssMarkers(output.original);
|
|
1964
1902
|
}
|
|
@@ -2020,8 +1958,8 @@ function tryFinalizeGenericWebCss(options) {
|
|
|
2020
1958
|
/**
|
|
2021
1959
|
* Generic Web 专用 CSS finalizer。
|
|
2022
1960
|
*
|
|
2023
|
-
*
|
|
2024
|
-
* HTML、JavaScript、模板和小程序分包产物。
|
|
1961
|
+
* 该插件复用 CSS transform 阶段记录的 CSS asset,显式开启 cssCalc 时也处理
|
|
1962
|
+
* 最终资产中的普通 CSS;不扫描或改写 HTML、JavaScript、模板和小程序分包产物。
|
|
2025
1963
|
*/
|
|
2026
1964
|
function createViteWebCssFinalizerOutputPlugin(context) {
|
|
2027
1965
|
return {
|
|
@@ -2070,6 +2008,7 @@ function createViteWebCssFinalizerOutputPlugin(context) {
|
|
|
2070
2008
|
rootDir,
|
|
2071
2009
|
sourceRoot: void 0
|
|
2072
2010
|
})) context.debug("Generic Web CSS finalizer skipped: no unique processed CSS asset");
|
|
2011
|
+
await finalizeWebCssCalc(bundle, context);
|
|
2073
2012
|
finalizeCompilerShadowRun(context.runtimeState);
|
|
2074
2013
|
context.hmrTimingRecorder?.record("webCssFinalizer.total", performance.now() - startedAt);
|
|
2075
2014
|
}
|
|
@@ -2341,7 +2280,6 @@ function summarizeViteProcessedCssResults(map) {
|
|
|
2341
2280
|
//#endregion
|
|
2342
2281
|
//#region src/bundlers/shared/css-imports.ts
|
|
2343
2282
|
const tailwindcssImportRE = /^(?:tailwindcss|weapp-tailwindcss)(?:\/.*)?$/;
|
|
2344
|
-
const tailwindcssCssImportStatementRE = /(@import\s+(?:url\(\s*)?)(["'])((?:tailwindcss|weapp-tailwindcss)(?:\/[^"']*)?\$?)(\2\s*\)?)/gi;
|
|
2345
2283
|
function normalizeTailwindcssSpecifier(specifier) {
|
|
2346
2284
|
if (specifier === "tailwindcss$" || specifier === "weapp-tailwindcss$") return specifier.slice(0, -1);
|
|
2347
2285
|
return specifier;
|
|
@@ -2357,14 +2295,7 @@ function resolveTailwindcssImport(specifier, pkgDir, options) {
|
|
|
2357
2295
|
return (options?.join ?? path.join)(pkgDir, getTailwindcssSubpath(normalized));
|
|
2358
2296
|
}
|
|
2359
2297
|
function rewriteTailwindcssImportsInCode(code, pkgDir, options) {
|
|
2360
|
-
|
|
2361
|
-
const rewritten = code.replace(tailwindcssCssImportStatementRE, (full, prefix, quote, specifier, suffix) => {
|
|
2362
|
-
const replacement = resolveTailwindcssImport(specifier, pkgDir, options);
|
|
2363
|
-
if (!replacement) return full;
|
|
2364
|
-
hasReplacements = true;
|
|
2365
|
-
return `${prefix}${quote}${replacement}${suffix}`;
|
|
2366
|
-
});
|
|
2367
|
-
return hasReplacements ? rewritten : void 0;
|
|
2298
|
+
return rewriteTailwindPackageImportStatements(code, (specifier) => resolveTailwindcssImport(specifier, pkgDir, options));
|
|
2368
2299
|
}
|
|
2369
2300
|
//#endregion
|
|
2370
2301
|
//#region src/bundlers/vite/rewrite-css-imports.ts
|
|
@@ -2377,9 +2308,6 @@ function isCssLikeImporter(importer) {
|
|
|
2377
2308
|
const normalized = cleanUrl$1(importer);
|
|
2378
2309
|
return isSourceStyleRequest(importer) || isCSSRequest(normalized) || normalized.endsWith("/*");
|
|
2379
2310
|
}
|
|
2380
|
-
function stripTailwindConfigDirectives(code) {
|
|
2381
|
-
return code.replace(/^\s*@config\s+(?:"[^"]+"|'[^']+')[^;\n]*;\s*$/gm, "");
|
|
2382
|
-
}
|
|
2383
2311
|
function createRewriteCssImportsPlugins(options) {
|
|
2384
2312
|
if (!options.shouldRewrite && !options.shouldOwnTailwindGeneration) return [];
|
|
2385
2313
|
const { appType, getAppType, rootImport, shouldOwnTailwindGeneration, weappTailwindcssDirPosix } = options;
|
|
@@ -2401,7 +2329,7 @@ function createRewriteCssImportsPlugins(options) {
|
|
|
2401
2329
|
async transform(code, id) {
|
|
2402
2330
|
if (!isCSSRequest(id)) return null;
|
|
2403
2331
|
const file = cleanUrl$1(id);
|
|
2404
|
-
const normalizedCode = !isSfcStyleSourceFile(file) && (hasTailwindRootDirectives(code) || code.includes("@config")) ? normalizeTailwindConfigDirectives(code, path.dirname(file)) : code;
|
|
2332
|
+
const normalizedCode = !isSfcStyleSourceFile(file) && (hasTailwindRootDirectives(code) || code.includes("@config")) ? normalizeTailwindConfigDirectives$1(code, path.dirname(file)) : code;
|
|
2405
2333
|
await options.onCssSourceTransform?.(id, normalizedCode);
|
|
2406
2334
|
const hasTailwindRoot = hasTailwindRootDirectives(normalizedCode, { importFallback: true });
|
|
2407
2335
|
if (hasTailwindRoot) await options.onTailwindRootCss?.(id, normalizedCode);
|
|
@@ -3145,6 +3073,16 @@ function createFrameworkProcessedCssRegistry() {
|
|
|
3145
3073
|
};
|
|
3146
3074
|
}
|
|
3147
3075
|
//#endregion
|
|
3076
|
+
//#region src/bundlers/vite/shared/hmr-source.ts
|
|
3077
|
+
/** 兼容 Vite 同步或异步的 HMR 源码读取,并沿用读取失败后的候选扫描。 */
|
|
3078
|
+
async function readViteHmrSource(context) {
|
|
3079
|
+
try {
|
|
3080
|
+
return await context.read?.();
|
|
3081
|
+
} catch {
|
|
3082
|
+
return;
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
//#endregion
|
|
3148
3086
|
//#region src/bundlers/vite/shared/framework-hmr-runtime-signature.ts
|
|
3149
3087
|
const WEB_HMR_RUNTIME_AFFECTING_DIRECTIVE_RE = /@(?:theme|source|config|plugin|apply)\b/;
|
|
3150
3088
|
function createFrameworkHmrRuntimeSignature(file, source) {
|
|
@@ -3159,7 +3097,7 @@ function hasFrameworkHmrRuntimeSourceChange(file, previousSource, nextSource) {
|
|
|
3159
3097
|
const SOURCE_CANDIDATE_SCAN_CACHE_MAX = 8;
|
|
3160
3098
|
const sourceCandidateScanSnapshotCache = new LRUCache({ max: SOURCE_CANDIDATE_SCAN_CACHE_MAX });
|
|
3161
3099
|
async function syncFrameworkSourceCandidatesForHotUpdate(sourceScanSession, ctx) {
|
|
3162
|
-
const source = typeof ctx.read === "function" ? await ctx
|
|
3100
|
+
const source = typeof ctx.read === "function" ? await readViteHmrSource(ctx) : void 0;
|
|
3163
3101
|
await sourceScanSession.syncChangedFile(ctx.file, source);
|
|
3164
3102
|
await sourceScanSession.waitForPendingSyncs();
|
|
3165
3103
|
}
|
|
@@ -3351,7 +3289,7 @@ function createFrameworkSourceScanSession(options) {
|
|
|
3351
3289
|
const file = cleanUrl$1(id);
|
|
3352
3290
|
const runtimeAffectingByDependency = isDependency(file);
|
|
3353
3291
|
if (runtimeAffectingByDependency) invalidate();
|
|
3354
|
-
const resolvedFile = resolveSourceScanPath(file);
|
|
3292
|
+
const resolvedFile = (0, source_scan_exports.resolveSourceScanPath)(file);
|
|
3355
3293
|
if (sourceScanMatcher && !sourceScanMatcher(file) && sourceScanBoundaryMatcher?.(file) && !sourceScanIneligibleFiles.has(resolvedFile)) {
|
|
3356
3294
|
await refreshSourceScanEligibleFiles();
|
|
3357
3295
|
if (!sourceScanMatcher(file)) sourceScanIneligibleFiles.add(resolvedFile);
|
|
@@ -3488,26 +3426,22 @@ function createFrameworkTailwindRootCss(options) {
|
|
|
3488
3426
|
}
|
|
3489
3427
|
//#endregion
|
|
3490
3428
|
//#region src/style-injector/vite-web.ts
|
|
3491
|
-
function getHandler(hook) {
|
|
3492
|
-
if (typeof hook === "function") return hook;
|
|
3493
|
-
if (hook && typeof hook === "object" && typeof hook.handler === "function") return hook.handler;
|
|
3494
|
-
}
|
|
3495
3429
|
/** Generic Web 专用 style injector,避免引入其他构建器和框架适配。 */
|
|
3496
3430
|
function createBuiltinViteWebStyleInjectorPlugins(options) {
|
|
3497
3431
|
const normalized = normalizeStyleInjectorOptions(options);
|
|
3498
3432
|
if (!normalized) return [];
|
|
3499
3433
|
const injector = weappStyleInjector(normalized);
|
|
3500
|
-
const transform =
|
|
3501
|
-
const generateBundle =
|
|
3434
|
+
const transform = getViteHookHandler(injector.transform);
|
|
3435
|
+
const generateBundle = getViteHookHandler(injector.generateBundle);
|
|
3502
3436
|
return [{
|
|
3503
3437
|
name: "weapp-tailwindcss:web-style-injector-pre",
|
|
3504
3438
|
apply: "build",
|
|
3505
3439
|
enforce: "pre",
|
|
3506
3440
|
configResolved(config) {
|
|
3507
|
-
injector.configResolved?.(config);
|
|
3441
|
+
return getViteHookHandler(injector.configResolved)?.call(this, config);
|
|
3508
3442
|
},
|
|
3509
|
-
async buildStart() {
|
|
3510
|
-
await injector.buildStart?.call(this,
|
|
3443
|
+
async buildStart(buildOptions) {
|
|
3444
|
+
await getViteHookHandler(injector.buildStart)?.call(this, buildOptions);
|
|
3511
3445
|
},
|
|
3512
3446
|
async transform(code, id, options2) {
|
|
3513
3447
|
return transform?.call(this, code, id, options2);
|
|
@@ -3517,7 +3451,7 @@ function createBuiltinViteWebStyleInjectorPlugins(options) {
|
|
|
3517
3451
|
apply: "build",
|
|
3518
3452
|
enforce: "post",
|
|
3519
3453
|
configResolved(config) {
|
|
3520
|
-
injector.configResolved?.(config);
|
|
3454
|
+
return getViteHookHandler(injector.configResolved)?.call(this, config);
|
|
3521
3455
|
},
|
|
3522
3456
|
async generateBundle(outputOptions, bundle, isWrite) {
|
|
3523
3457
|
await generateBundle?.call(this, outputOptions, bundle, isWrite);
|
|
@@ -3562,7 +3496,7 @@ function createCssOnlyVitePlugins(options = {}) {
|
|
|
3562
3496
|
});
|
|
3563
3497
|
const hmrCssModuleVersions = createViteHmrCssModuleVersionTracker();
|
|
3564
3498
|
const hmrTimingRecorder = createHmrTimingRecorder("vite");
|
|
3565
|
-
const { runtimeState,
|
|
3499
|
+
const { runtimeState, refreshRuntimeState } = createViteRuntimeClassSet({
|
|
3566
3500
|
opts,
|
|
3567
3501
|
initialTailwindRuntime: opts.tailwindRuntime,
|
|
3568
3502
|
refreshTailwindcssRuntime: opts.refreshTailwindcssRuntime,
|
|
@@ -3582,7 +3516,6 @@ function createCssOnlyVitePlugins(options = {}) {
|
|
|
3582
3516
|
let recordedCandidates;
|
|
3583
3517
|
const processedCssRegistry = createFrameworkProcessedCssRegistry();
|
|
3584
3518
|
const processedCssAssets = /* @__PURE__ */ new WeakSet();
|
|
3585
|
-
const tailwindRootCssModuleIds = /* @__PURE__ */ new Set();
|
|
3586
3519
|
const sourceScanSession = createFrameworkSourceScanSession({
|
|
3587
3520
|
cssMemory,
|
|
3588
3521
|
debug,
|
|
@@ -3595,13 +3528,18 @@ function createCssOnlyVitePlugins(options = {}) {
|
|
|
3595
3528
|
shouldOwnTailwindGeneration: shouldGenerate,
|
|
3596
3529
|
sourceCandidateCollector
|
|
3597
3530
|
});
|
|
3598
|
-
|
|
3531
|
+
async function collectCssSourceCandidates() {
|
|
3532
|
+
await runtimeState.readyPromise;
|
|
3533
|
+
await sourceScanSession.waitForPendingSyncs();
|
|
3534
|
+
return sourceCandidateCollector.values();
|
|
3535
|
+
}
|
|
3536
|
+
const { moduleIds: tailwindRootCssModuleIds, refreshSource: refreshTailwindRootCssSource, register: registerTailwindRootCss, rememberModule: rememberTailwindRootCssModule } = createFrameworkTailwindRootCss({
|
|
3599
3537
|
getImportFallback: () => resolveWebGeneratorOptions(opts).importFallback,
|
|
3600
3538
|
refreshRuntimeState: async () => {
|
|
3601
3539
|
await refreshRuntimeState(true);
|
|
3602
3540
|
},
|
|
3603
3541
|
registerAutoCssSource: async (id, css) => {
|
|
3604
|
-
cssMemory.refreshRememberedCssSourceBySourceFile(id, normalizeTailwindSourceForGenerator(normalizeTailwindConfigDirectives(css, path.dirname(cleanUrl$1(id))), { importFallback: true }));
|
|
3542
|
+
cssMemory.refreshRememberedCssSourceBySourceFile(id, normalizeTailwindSourceForGenerator(normalizeTailwindConfigDirectives$1(css, path.dirname(cleanUrl$1(id))), { importFallback: true }));
|
|
3605
3543
|
},
|
|
3606
3544
|
shouldOwnTailwindGeneration: shouldGenerate,
|
|
3607
3545
|
sourceScanSession
|
|
@@ -3619,13 +3557,13 @@ function createCssOnlyVitePlugins(options = {}) {
|
|
|
3619
3557
|
await sourceScanSession.waitForPendingSyncs();
|
|
3620
3558
|
const file = cleanUrl$1(id);
|
|
3621
3559
|
const outputFile = resolveViteCssPipelineOutputFile(file, opts, resolvedConfig?.root ?? process$1.cwd(), true, false, void 0);
|
|
3622
|
-
const runtime = hookContext?.sourceCandidates ? new Set(hookContext.sourceCandidates) : await
|
|
3560
|
+
const runtime = hookContext?.sourceCandidates ? new Set(hookContext.sourceCandidates) : await collectCssSourceCandidates();
|
|
3623
3561
|
const generated = await generateTailwindV4Css({
|
|
3624
3562
|
opts,
|
|
3625
3563
|
runtimeState,
|
|
3626
3564
|
runtime,
|
|
3627
3565
|
compilerMode: "legacy",
|
|
3628
|
-
rawSource: normalizeEmptyTailwindCustomVariants(code),
|
|
3566
|
+
rawSource: normalizeEmptyTailwindCustomVariants$1(code),
|
|
3629
3567
|
file,
|
|
3630
3568
|
outputFile,
|
|
3631
3569
|
cssHandlerOptions: cssHandlerOptions.getCssHandlerOptions(file),
|
|
@@ -3714,7 +3652,7 @@ function createCssOnlyVitePlugins(options = {}) {
|
|
|
3714
3652
|
const finalizer = createViteWebCssFinalizerOutputPlugin({
|
|
3715
3653
|
opts,
|
|
3716
3654
|
runtimeState,
|
|
3717
|
-
ensureRuntimeClassSet,
|
|
3655
|
+
ensureRuntimeClassSet: collectCssSourceCandidates,
|
|
3718
3656
|
debug,
|
|
3719
3657
|
frameworkName: "generic",
|
|
3720
3658
|
getResolvedConfig: () => resolvedConfig,
|
|
@@ -3789,11 +3727,12 @@ function createFrameworkSourceCandidatesPluginForCssOnly(options) {
|
|
|
3789
3727
|
function createGenericWebVitePlugins(options = {}) {
|
|
3790
3728
|
const capability = createGenericWebViteCapabilityProfile(options);
|
|
3791
3729
|
const owner = createViteSourceOutputRelationOwner();
|
|
3792
|
-
const
|
|
3730
|
+
const runtimeOptions = {
|
|
3793
3731
|
...options,
|
|
3794
3732
|
__internalViteCapabilityProfile: capability,
|
|
3795
3733
|
__internalViteWebStyleInjectorFactory: createBuiltinViteWebStyleInjectorPlugins
|
|
3796
|
-
}
|
|
3734
|
+
};
|
|
3735
|
+
const plugins = withViteSourceOutputRelationOwner(owner, () => createCssOnlyVitePlugins(runtimeOptions));
|
|
3797
3736
|
if (!plugins) {
|
|
3798
3737
|
owner.dispose();
|
|
3799
3738
|
return;
|
|
@@ -3802,26 +3741,25 @@ function createGenericWebVitePlugins(options = {}) {
|
|
|
3802
3741
|
const wrapped = { ...plugin };
|
|
3803
3742
|
if (plugin.watchChange) {
|
|
3804
3743
|
const hook = plugin.watchChange;
|
|
3805
|
-
wrapped.watchChange = async function(
|
|
3806
|
-
|
|
3807
|
-
if (args[1]?.event === "delete") owner.removeSource(id);
|
|
3744
|
+
wrapped.watchChange = async function(id, change) {
|
|
3745
|
+
if (change?.event === "delete") owner.removeSource(id);
|
|
3808
3746
|
else if (typeof id === "string") owner.observeSource(id);
|
|
3809
|
-
return typeof hook === "function" ? hook.
|
|
3747
|
+
return typeof hook === "function" ? hook.call(this, id, change) : hook.handler.call(this, id, change);
|
|
3810
3748
|
};
|
|
3811
3749
|
}
|
|
3812
3750
|
if (plugin.handleHotUpdate) {
|
|
3813
3751
|
const hook = plugin.handleHotUpdate;
|
|
3814
|
-
wrapped.handleHotUpdate = async function(
|
|
3815
|
-
const file =
|
|
3752
|
+
wrapped.handleHotUpdate = async function(context) {
|
|
3753
|
+
const file = context.file;
|
|
3816
3754
|
if (typeof file === "string") owner.observeSource(file);
|
|
3817
|
-
return typeof hook === "function" ? hook.
|
|
3755
|
+
return typeof hook === "function" ? hook.call(this, context) : hook.handler.call(this, context);
|
|
3818
3756
|
};
|
|
3819
3757
|
}
|
|
3820
3758
|
if (plugin.closeBundle) {
|
|
3821
3759
|
const hook = plugin.closeBundle;
|
|
3822
|
-
wrapped.closeBundle = async function(
|
|
3760
|
+
wrapped.closeBundle = async function() {
|
|
3823
3761
|
try {
|
|
3824
|
-
return typeof hook === "function" ? await hook.
|
|
3762
|
+
return typeof hook === "function" ? await hook.call(this) : await hook.handler.call(this);
|
|
3825
3763
|
} finally {
|
|
3826
3764
|
owner.dispose();
|
|
3827
3765
|
}
|
|
@@ -3831,4 +3769,4 @@ function createGenericWebVitePlugins(options = {}) {
|
|
|
3831
3769
|
});
|
|
3832
3770
|
}
|
|
3833
3771
|
//#endregion
|
|
3834
|
-
export {
|
|
3772
|
+
export { resolveSourceStyleSourceFromOutputFile as $, finalizeWebCss as A, formatPostcssSourceMap as At, sendSupplementalCssHotUpdates as B, isRootStyleOutputFile as Bt, tryFinalizeGenericWebCss as C, normalizeCssSourceForCompare as Ct, finalizeWebCssCalc as D, resolveViteCssPipelineOutputFile as Dt, shouldSkipGenericWebProductionSourceCandidates as E, resolveViteCssOutputFile as Et, mergeHotModulesByIdentity as F, slash as Ft, collectChunkModuleIds as G, createGenericWebViteCapabilityProfile as Gt, parseVueRequest as H, createViteSourceOutputRelationOwner as Ht, resolveHotSourceModules as I, createCssHandlerOptionsCache as It, hasTailwindGenerationSource as J, extractSfcStyleBlocks as K, frameworkViteCapabilityProfile as Kt, resolveHotSourceModulesByIds as L, resolveViteCssHandlerExtraOptions as Lt, registerGeneratorDependencies as M, isHTMLRequest as Mt, shouldGenerateCssByGenerator as N, normalizePath as Nt, collectViteProcessedCssSources as O, resolveViteCssPipelineOutputFileFromSourceFile as Ot, hasSelfAcceptingNonStyleHotModule as P, resolveViteCssPipelineRequestFile as Pt, resolveSfcStyleSourceFromOutputFile as Q, resolveHotTailwindCssModules as R, isCssOutputFile as Rt, createViteWebCssFinalizerOutputPlugin as S, canProcessViteSourceStyleAsCss as St, createGenericWebProductionSourceCandidatesApply as T, resolveReplayCssOutputFile as Tt, resolveViteWebCssCompatOptions as U, getActiveViteSourceOutputRelationOwner as Ut, resolveViteModuleIdentity as V, createViteCssAssetIdentityResolver as Vt, shouldApplyViteWebCssCompat as W, withViteSourceOutputRelationOwner as Wt, normalizeSfcSourceFileForCompare as X, isSfcStyleSourceFile as Y, resolveSfcStyleRequestFromKnownSource as Z, normalizeVitePersistentCacheKey as _, removeTailwindEntryDirectivesFromCss as _t, readViteHmrSource as a, collectMatchingGeneratedCssMarkerFiles as at, shouldCollectTransformedSourceCandidates as b, CSS_SOURCE_OUTPUT_EXT_RE as bt, createViteHmrCssModuleVersionFilterPlugin as c, dedupeViteCssResults as ct, createFrameworkCssGenerationQueue as d, isMatchingGeneratedCssMarkerFile as dt, hasMatchingStyleFileBase as et, createViteCssGenerationPlugins as f, normalizeInjectableCssForTarget as ft, isMissingInternalCssSource as g, removeDuplicateUnlinkedRootCssAssetsReferencedByHtml as gt, hasVitePipelineTailwindGenerationDirective as h, readAssetSource$1 as ht, syncFrameworkSourceCandidatesForHotUpdate as i, collectImportedStyleFiles as it, inferPlatformFromViteOutDir as j, isCSSRequest as jt, createCssHandlerOptions as k, cleanUrl$1 as kt, createViteHmrCssModuleVersionTracker as l, getAssetFile as lt, createRewriteCssImportsPlugins as m, normalizeMarkerOutputFile as mt, createFrameworkTailwindRootCss as n, appendCss as nt, createFrameworkProcessedCssRegistry as o, collectRootStyleBundleCssSources as ot, createViteRuntimeClassSet as p, normalizeInjectableCssForTargetWithImports as pt, hasSfcStyleSources as q, createFrameworkSourceScanSession as r, clearAssetSource as rt, createFrameworkPostPlugin as s, createCssAssetPipelineContext as st, createGenericWebVitePlugins as t, isMatchingCssSourceFile as tt, createViteHmrCandidateState as u, hasNonCommentCss as ut, summarizeStringCache as v, resolveViteProcessedCssAssetSource as vt, createGenericWebProductionBundleHooks as w, resolveMiniProgramStyleOutputExtension as wt, touchMapEntry as x, SOURCE_STYLE_OUTPUT_EXT_RE as xt, createViteCssMemory as y, posix as yt, sendFullReloadForUnresolvedHotUpdate as z, isMiniProgramStyleOutputFile as zt };
|