weapp-tailwindcss 5.1.15 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +6 -0
- package/README.md +6 -0
- package/bin/{weapp-tailwindcss.js → weapp-tailwindcss.cjs} +1 -1
- package/dist/bundlers/framework-selector.d.ts +2 -2
- package/dist/bundlers/gulp/asset-emission-plan.d.ts +10 -0
- package/dist/bundlers/gulp/frameworks/native/index.d.ts +10 -3
- package/dist/bundlers/gulp/index.d.ts +10 -3
- package/dist/bundlers/gulp/module-graph.d.ts +1 -1
- package/dist/bundlers/gulp/runtime-snapshot.d.ts +4 -2
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/cache-state.d.ts +71 -0
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +45 -0
- package/dist/bundlers/gulp/shared/create-native-framework-plugins.d.ts +9 -2
- package/dist/bundlers/rspack/index.d.ts +2 -2
- package/dist/bundlers/shared/cache.d.ts +1 -1
- package/dist/bundlers/shared/css-imports.d.ts +1 -1
- package/dist/bundlers/shared/css-source-trace.d.ts +2 -2
- package/dist/bundlers/shared/framework-postcss.d.ts +21 -0
- package/dist/bundlers/shared/generator-css/candidates.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +19 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +25 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +30 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +4 -72
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +5 -3
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +58 -0
- package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +6 -0
- package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +32 -0
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +13 -5
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +4 -0
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +5 -0
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +16 -0
- package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +5 -0
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +4 -4
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +7 -9
- package/dist/bundlers/shared/generator-css/types.d.ts +12 -3
- package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +9 -0
- package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +4 -0
- package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +9 -0
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +10 -0
- package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +15 -0
- package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -33
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -1
- package/dist/bundlers/shared/generator-css.d.ts +9 -10
- package/dist/bundlers/shared/runtime-class-set/entries.d.ts +4 -0
- package/dist/bundlers/shared/runtime-class-set/escaped-candidates.d.ts +9 -0
- package/dist/bundlers/shared/runtime-class-set.d.ts +30 -0
- package/dist/bundlers/shared/runtime-entry-type.d.ts +8 -0
- package/dist/bundlers/shared/runtime-signatures.d.ts +8 -0
- package/dist/bundlers/shared/source-candidate-scan-signature.d.ts +13 -0
- package/dist/bundlers/shared/source-candidates/collector.d.ts +8 -0
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +10 -0
- package/dist/bundlers/{vite → shared}/source-candidates/script.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/store.d.ts +2 -0
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +69 -0
- package/dist/bundlers/shared/source-candidates.d.ts +4 -0
- package/dist/bundlers/shared/source-scan/css-entries.d.ts +18 -0
- package/dist/bundlers/shared/source-scan.d.ts +16 -0
- package/dist/bundlers/shared/static-config-content.d.ts +5 -0
- package/dist/bundlers/shared/v4-generation-core.d.ts +9 -1
- package/dist/bundlers/vite/bundle-entries.d.ts +1 -1
- package/dist/bundlers/vite/bundle-state.d.ts +11 -38
- package/dist/bundlers/vite/css-asset-identity.d.ts +11 -0
- package/dist/bundlers/vite/css-finalizer/options.d.ts +54 -0
- package/dist/bundlers/vite/css-finalizer/plugin.d.ts +3 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +1 -43
- package/dist/bundlers/vite/css-memory.d.ts +1 -2
- package/dist/bundlers/vite/frameworks/generic/index.d.ts +2 -2
- package/dist/bundlers/vite/frameworks/taro/index.d.ts +2 -2
- package/dist/bundlers/vite/frameworks/uni-app/index.d.ts +3 -3
- package/dist/bundlers/vite/frameworks/uni-app-x/index.d.ts +3 -3
- package/dist/bundlers/vite/frameworks/weapp-vite/index.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/asset-emission-plan.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle/bundle-markup-candidates.d.ts +4 -4
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-cache-task.d.ts +34 -0
- package/dist/bundlers/vite/generate-bundle/css-composition-plan.d.ts +58 -0
- package/dist/bundlers/vite/generate-bundle/css-config-directives.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-entry-processing.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +21 -2
- package/dist/bundlers/vite/generate-bundle/css-output.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-source-plan.d.ts +19 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +61 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-result.d.ts +23 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +42 -0
- package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +3 -2
- package/dist/bundlers/vite/generate-bundle/finalize/bundle.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +69 -0
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -70
- package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +6 -5
- package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/remembered-css-plan.d.ts +35 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +5 -6
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +20 -0
- package/dist/bundlers/vite/generate-bundle/runtime-configured-css.d.ts +54 -0
- package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +3 -3
- package/dist/bundlers/vite/generate-bundle/runtime.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/signatures.d.ts +1 -8
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +3 -3
- package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +5 -0
- package/dist/bundlers/vite/generate-bundle/subpackages.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +14 -1
- package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/transform-scheduling.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +8 -7
- package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +3 -2
- package/dist/bundlers/vite/generate-bundle/validate-runtime-candidates.d.ts +22 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +7 -7
- package/dist/bundlers/vite/incremental-runtime-class-set/entries.d.ts +1 -4
- package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -3
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +2 -30
- package/dist/bundlers/vite/index.d.ts +3 -3
- package/dist/bundlers/vite/js-precheck.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +13 -0
- package/dist/bundlers/vite/processed-css-assets/collector.d.ts +4 -0
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +34 -0
- package/dist/bundlers/vite/processed-css-assets/empty-at-rule.d.ts +1 -0
- package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +42 -0
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +89 -0
- package/dist/bundlers/vite/processed-css-assets/style-files.d.ts +3 -0
- package/dist/bundlers/vite/processed-css-assets.d.ts +4 -71
- package/dist/bundlers/vite/resolve-app-type.d.ts +1 -1
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +3 -1
- package/dist/bundlers/vite/runtime-affecting-signature.d.ts +1 -2
- package/dist/bundlers/vite/runtime-candidate-entry.d.ts +9 -0
- package/dist/bundlers/vite/runtime-class-set.d.ts +4 -4
- package/dist/bundlers/vite/serve-css-generation.d.ts +2 -0
- package/dist/bundlers/vite/serve-js-transform.d.ts +1 -1
- package/dist/bundlers/vite/serve-root-import-shell.d.ts +1 -1
- package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +2 -0
- package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -8
- package/dist/bundlers/vite/shared/framework-hmr-candidate-state.d.ts +45 -0
- package/dist/bundlers/vite/shared/framework-post-plugin.d.ts +2 -0
- package/dist/bundlers/vite/shared/framework-processed-css-registry.d.ts +22 -0
- package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +1 -0
- package/dist/bundlers/vite/shared/framework-source-candidates-plugin.d.ts +2 -0
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +38 -0
- package/dist/bundlers/vite/shared/framework-strategy.d.ts +4 -4
- package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +2 -13
- package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -10
- package/dist/bundlers/vite/source-candidates.d.ts +1 -68
- package/dist/bundlers/vite/source-output-relations.d.ts +24 -0
- package/dist/bundlers/vite/source-scan/css-entries.d.ts +2 -18
- package/dist/bundlers/vite/source-scan.d.ts +2 -16
- package/dist/bundlers/vite/static-config-content.d.ts +1 -5
- package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
- package/dist/bundlers/vite/web-css-compat.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/asset-emission-plan.d.ts +18 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +2 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/finalize-assets.d.ts +2 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-result.d.ts +3 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-task.d.ts +2 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -41
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/html-js-tasks.d.ts +5 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +4 -10
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +30 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +8 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts +78 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +43 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/resources.d.ts +30 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/runtime-candidates.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +28 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +21 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +9 -219
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +4 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +2 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +8 -4
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/generic/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/index.d.ts +7 -7
- package/dist/bundlers/webpack/frameworks/mpx/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/taro/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/uni-app/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/weapp-vite/index.d.ts +2 -2
- package/dist/bundlers/webpack/index.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +7 -2
- package/dist/bundlers/webpack/loaders/weapp-tw-css-generation-loader.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +1 -1
- package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +20 -0
- package/dist/bundlers/webpack/shared/create-framework-plugin/watch-output.d.ts +13 -0
- package/dist/bundlers/webpack/shared/create-framework-plugin.d.ts +3 -21
- package/dist/cli/context.d.ts +2 -2
- package/dist/cli/doctor.d.ts +1 -1
- package/dist/cli/helpers/options.d.ts +3 -3
- package/dist/cli/helpers.d.ts +1 -1
- package/dist/cli.cjs +37012 -0
- package/dist/cli.js +145 -176
- package/dist/compiler/artifact.d.ts +14 -0
- package/dist/compiler/candidate-index.d.ts +10 -0
- package/dist/compiler/compilation-change-coordinator.d.ts +28 -0
- package/dist/compiler/compilation-dependency-state.d.ts +16 -0
- package/dist/compiler/compilation-scope-graph.d.ts +31 -0
- package/dist/compiler/compilation-session-pool.d.ts +54 -0
- package/dist/compiler/compiler-owner-state.d.ts +3 -0
- package/dist/compiler/composition.d.ts +8 -0
- package/dist/compiler/emission-plan.d.ts +26 -0
- package/dist/compiler/index.d.ts +23 -0
- package/dist/compiler/invalidation.d.ts +3 -0
- package/dist/compiler/mode.d.ts +3 -0
- package/dist/compiler/owner-lifecycle.d.ts +1 -0
- package/dist/compiler/platform-adapter.d.ts +9 -0
- package/dist/compiler/runtime-affecting-signature.d.ts +2 -0
- package/dist/compiler/runtime-build-state.d.ts +6 -0
- package/dist/compiler/runtime-snapshot.d.ts +53 -0
- package/dist/compiler/scope-planner.d.ts +6 -0
- package/dist/compiler/semantic-css.d.ts +66 -0
- package/dist/compiler/session.d.ts +13 -0
- package/dist/compiler/shadow-gate.d.ts +26 -0
- package/dist/compiler/shadow-report-session.d.ts +37 -0
- package/dist/compiler/shadow-report.d.ts +15 -0
- package/dist/compiler/source-graph.d.ts +32 -0
- package/dist/compiler/tailwind-generation-session-pool.d.ts +22 -0
- package/dist/compiler/types.d.ts +95 -0
- package/dist/constants.d.ts +2 -2
- package/dist/context/compiler-context-cache.d.ts +1 -1
- package/dist/context/custom-attributes.d.ts +1 -1
- package/dist/context/handlers.d.ts +3 -3
- package/dist/context/index.d.ts +1 -1
- package/dist/context/runtime-package-replacements.d.ts +1 -1
- package/dist/context/style-options.d.ts +1 -1
- package/dist/context/tailwindcss.d.ts +3 -3
- package/dist/{context-VeFq_8vW.js → context-PZXBqrAJ.cjs} +32 -94
- package/dist/{context-BgGWVAmN.mjs → context-oTkxC5aZ.js} +23 -12
- package/dist/{core.mjs → core.cjs} +13 -12
- package/dist/core.d.ts +2 -2
- package/dist/core.js +12 -13
- package/dist/css-imports-DfNC3e6a.cjs +43 -0
- package/dist/css-loader-runtime-CSv0lKqV.cjs +11 -0
- package/dist/css-macro/postcss.cjs +19 -0
- package/dist/css-macro/postcss.js +2 -19
- package/dist/{css-macro.mjs → css-macro.cjs} +11 -8
- package/dist/css-macro.d.ts +2 -2
- package/dist/css-macro.js +8 -11
- package/dist/{defaults.mjs → defaults.cjs} +16 -11
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.js +11 -16
- package/dist/{escape.mjs → escape.cjs} +18 -4
- package/dist/escape.js +4 -18
- package/dist/framework/platform.d.ts +1 -1
- package/dist/{framework.mjs → framework.cjs} +47 -25
- package/dist/framework.d.ts +1 -1
- package/dist/framework.js +25 -47
- package/dist/generator/index.d.ts +6 -6
- package/dist/generator/options.d.ts +3 -3
- package/dist/generator/types.d.ts +2 -2
- package/dist/{generator-CEnUsjed.js → generator-C8D5cnbe.cjs} +730 -468
- package/dist/{generator-CEo920So.mjs → generator-CDdzqf1S.js} +747 -497
- package/dist/generator.cjs +12 -0
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +2 -12
- package/dist/{gulp-3m1dAiig.js → gulp-Cjcss8T_.cjs} +326 -241
- package/dist/{gulp-DP71z1jG.mjs → gulp-DNXQvDUw.js} +316 -234
- package/dist/gulp.cjs +5 -0
- package/dist/gulp.d.ts +4 -4
- package/dist/gulp.js +2 -5
- package/dist/{hmr-timing-1aS6--U7.mjs → hmr-timing-CuJwQzDc.js} +5230 -3259
- package/dist/hmr-timing-DMLfNfGG.cjs +555 -0
- package/dist/index.cjs +45 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -45
- package/dist/js/JsTokenUpdater.d.ts +1 -1
- package/dist/js/ModuleGraph.d.ts +3 -3
- package/dist/js/NodePathWalker.d.ts +2 -2
- package/dist/js/babel/process.d.ts +2 -2
- package/dist/js/babel.d.ts +8 -8
- package/dist/js/evalTransforms.d.ts +2 -2
- package/dist/js/fast-path/oxc.d.ts +1 -1
- package/dist/js/handlers.d.ts +2 -2
- package/dist/js/index.d.ts +3 -3
- package/dist/js/literal-transform.d.ts +1 -1
- package/dist/js/module-graph/ignored-exports.d.ts +4 -4
- package/dist/js/module-graph/types.d.ts +2 -2
- package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
- package/dist/js/precheck.d.ts +1 -1
- package/dist/js/replacement-cache.d.ts +1 -1
- package/dist/js/sourceAnalysis.d.ts +3 -3
- package/dist/js/taggedTemplateIgnore.d.ts +1 -1
- package/dist/object-Bvy6-w9r.js +47 -0
- package/dist/object-C_Vr6_S5.cjs +58 -0
- package/dist/options-DlvhQwWB.cjs +775 -0
- package/dist/pipeline-helpers-XtUmUlci.cjs +955 -0
- package/dist/postcss-html-transform.cjs +7 -0
- package/dist/postcss-html-transform.js +3 -5
- package/dist/postcss.cjs +15 -0
- package/dist/postcss.js +7 -11
- package/dist/presets/hbuilderx.d.ts +2 -2
- package/dist/presets/index.d.ts +4 -4
- package/dist/presets/shared.d.ts +1 -1
- package/dist/presets/taro.d.ts +2 -2
- package/dist/presets/uni-app-x.d.ts +1 -1
- package/dist/presets/uni-app.d.ts +2 -2
- package/dist/{presets.mjs → presets.cjs} +37 -24
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +24 -36
- package/dist/reset.cjs +19 -0
- package/dist/reset.d.ts +2 -2
- package/dist/reset.js +2 -19
- package/dist/{rolldown-runtime-emK7D4bc.js → rolldown-runtime-CVvi-lCc.cjs} +15 -0
- package/dist/{rspack.mjs → rspack.cjs} +10 -4
- package/dist/rspack.d.ts +3 -3
- package/dist/rspack.js +4 -10
- package/dist/runtime-branch/create-branch.d.ts +1 -1
- package/dist/runtime-branch/generator-target-env.d.ts +1 -1
- package/dist/runtime-branch/index.d.ts +2 -2
- package/dist/runtime-branch/mini-program.d.ts +1 -1
- package/dist/runtime-branch/native-app.d.ts +1 -1
- package/dist/runtime-branch/platform.d.ts +2 -2
- package/dist/runtime-branch/tailwind-version.d.ts +1 -1
- package/dist/runtime-branch/types.d.ts +2 -2
- package/dist/runtime-branch/web.d.ts +1 -1
- package/dist/runtime-branch.d.ts +1 -1
- package/dist/runtime-registry-Y7NrD2WH.cjs +31 -0
- package/dist/shared/classname-transform.d.ts +1 -1
- package/dist/shared/mpx-plugin-owner.d.ts +2 -0
- package/dist/shared/mpx.d.ts +1 -1
- package/dist/{source-candidate-scan-signature-Cf7259PR.mjs → source-candidate-scan-signature-B0S7f5P7.js} +26 -336
- package/dist/{source-candidate-scan-signature-BAahhiwb.js → source-candidate-scan-signature-BmSuoxR9.cjs} +31 -414
- package/dist/style-injector/internal.d.ts +6 -6
- package/dist/style-options-CEfXwZzX.cjs +75 -0
- package/dist/tailwindcss/candidates.d.ts +2 -2
- package/dist/tailwindcss/index.d.ts +1 -1
- package/dist/tailwindcss/runtime/cache.d.ts +1 -1
- package/dist/tailwindcss/runtime-factory.d.ts +2 -2
- package/dist/tailwindcss/runtime-options.d.ts +1 -1
- package/dist/tailwindcss/runtime-types.d.ts +2 -2
- package/dist/tailwindcss/runtime.d.ts +2 -2
- package/dist/tailwindcss/source-scan.d.ts +2 -2
- package/dist/tailwindcss/targets.d.ts +1 -1
- package/dist/tailwindcss/v4/config.d.ts +1 -1
- package/dist/tailwindcss/v4/css-sources.d.ts +2 -1
- package/dist/tailwindcss/v4/index.d.ts +2 -2
- package/dist/tailwindcss/v4/multi-runtime.d.ts +1 -1
- package/dist/tailwindcss/v4/runtime-factory.d.ts +5 -5
- package/dist/tailwindcss/v4/runtime-options.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/css-macro-source.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/cache-stats.d.ts +26 -0
- package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/engine.d.ts +2 -0
- package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +51 -0
- package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +17 -0
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +2 -1
- package/dist/tailwindcss/v4-engine/generator.d.ts +2 -28
- package/dist/tailwindcss/v4-engine/index.d.ts +5 -5
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +2 -2
- package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
- package/dist/tailwindcss/v4-engine/types.d.ts +1 -0
- package/dist/{tailwindcss-KBYPJ2DW.js → tailwindcss-Cs94gJgf.cjs} +10 -770
- package/dist/{tailwindcss-xs704TRw.mjs → tailwindcss-D7TGiZR2.js} +23 -23
- package/dist/transform-BUEyOCT7.cjs +341 -0
- package/dist/transform-BbaPIji9.js +342 -0
- package/dist/typedoc.export.d.ts +4 -4
- package/dist/types/index.d.ts +7 -7
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/typedoc-tailwindcss-runtime.d.ts +3 -3
- package/dist/types/user-defined-options/general.d.ts +5 -5
- package/dist/types/user-defined-options/important.d.ts +2 -2
- package/dist/types/user-defined-options/index.d.ts +9 -9
- package/dist/types/user-defined-options/matcher.d.ts +2 -2
- package/dist/types.cjs +0 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -0
- package/dist/uni-app-x/harmony.d.ts +1 -0
- package/dist/uni-app-x/index.d.ts +2 -2
- package/dist/uni-app-x/options.d.ts +1 -1
- package/dist/uni-app-x/style-asset/harmony-apply.d.ts +1 -0
- package/dist/uni-app-x/style-asset/style-value.d.ts +3 -0
- package/dist/uni-app-x/style-asset.d.ts +5 -4
- package/dist/uni-app-x/transform.d.ts +1 -1
- package/dist/uni-app-x/vite/harmony-apply.d.ts +19 -0
- package/dist/uni-app-x/vite/native-target.d.ts +2 -0
- package/dist/uni-app-x/vite.d.ts +5 -2
- package/dist/unocss/index.d.ts +1 -1
- package/dist/utils/disabled.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/{hmr-timing-B8p4f0ca.js → v4-generation-core-D7MuR5ZF.cjs} +4886 -3330
- package/dist/{vite-nXZEiwG0.mjs → vite-BI1TeUPO.js} +6148 -4522
- package/dist/{vite-DUVjMduj.js → vite-CBzmUTu-.cjs} +6267 -4666
- package/dist/vite.cjs +4 -0
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +2 -4
- package/dist/watch-dependencies-BZGubvuJ.cjs +40 -0
- package/dist/{weapp-tw-css-generation-loader.js → weapp-tw-css-generation-loader.cjs} +3 -2
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +201 -0
- package/dist/{weapp-tw-runtime-classset-loader.js → weapp-tw-runtime-classset-loader.cjs} +19 -15
- package/dist/{webpack-nppysF4B.js → webpack-Dao6bWEj.cjs} +1000 -1473
- package/dist/{webpack-C_UUFRgj.mjs → webpack-dAY9h8r8.js} +1462 -1185
- package/dist/webpack.cjs +5 -0
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +2 -5
- package/dist/wxml/Tokenizer.d.ts +2 -2
- package/dist/wxml/custom-attributes.d.ts +1 -1
- package/dist/wxml/index.d.ts +2 -2
- package/dist/wxml/shared.d.ts +1 -1
- package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +1 -1
- package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
- package/dist/wxml/utils/codegen.d.ts +1 -1
- package/dist/wxml/utils/custom-template.d.ts +2 -2
- package/dist/wxml/utils/fragment-helpers.d.ts +2 -2
- package/dist/wxml/utils/fragment-updater.d.ts +2 -2
- package/dist/wxml/utils/template-fragments.d.ts +2 -2
- package/dist/wxml/utils.d.ts +5 -5
- package/dist/wxml-DSMNuUaP.cjs +38609 -0
- package/dist/{cli.mjs → wxml-IBzZSaQC.js} +237 -718
- package/package.json +59 -54
- package/dist/css-macro/postcss.mjs +0 -2
- package/dist/generator.mjs +0 -2
- package/dist/gulp.mjs +0 -2
- package/dist/index.mjs +0 -9
- package/dist/object-BJSWl-E5.mjs +0 -9
- package/dist/object-COs_Mw6p.js +0 -14
- package/dist/postcss-html-transform.mjs +0 -5
- package/dist/postcss.mjs +0 -11
- package/dist/reset.mjs +0 -2
- package/dist/transform-B_KM9sLX.mjs +0 -14930
- package/dist/transform-CcYptivi.js +0 -14927
- package/dist/types.mjs +0 -1
- package/dist/vite.mjs +0 -2
- package/dist/watch-dependencies-bpG6kmAf.js +0 -80
- package/dist/weapp-tw-css-import-rewrite-loader-DNk0IxAt.js +0 -10198
- package/dist/weapp-tw-css-import-rewrite-loader.js +0 -10
- package/dist/webpack.mjs +0 -2
- package/dist/wxml-Ce10eREX.js +0 -3979
- package/dist/wxml-DdGdeqaH.mjs +0 -3861
- /package/dist/{auto-2dg_uhEJ.mjs → auto-2dg_uhEJ.js} +0 -0
- /package/dist/{auto-DtU6f3X6.js → auto-DtU6f3X6.cjs} +0 -0
- /package/dist/bundlers/{vite → shared}/source-scan/dependencies.d.ts +0 -0
- /package/dist/{cache-options-DavPxrhC.js → cache-options-DavPxrhC.cjs} +0 -0
- /package/dist/{cache-options-DwBtLwQe.mjs → cache-options-DwBtLwQe.js} +0 -0
- /package/dist/{logger-BNzxZbZj.mjs → logger-BNzxZbZj.js} +0 -0
- /package/dist/{logger-TlKT3xmR.js → logger-TlKT3xmR.cjs} +0 -0
- /package/dist/{utils-CuKLf1Zv.js → utils-CuKLf1Zv.cjs} +0 -0
- /package/dist/{utils-MVwpU07P.mjs → utils-MVwpU07P.js} +0 -0
package/README.en.md
CHANGED
|
@@ -9,3 +9,9 @@ This is the core package that brings Tailwind CSS to mini program ecosystems, ha
|
|
|
9
9
|
For setup guides, configuration references, and framework examples, see the [official weapp-tailwindcss documentation](https://tw.icebreaker.top).
|
|
10
10
|
|
|
11
11
|
For Tailwind CSS 4 projects, the entry CSS must still be imported by the application. Configure `cssEntries` explicitly with absolute paths resolved from the project root, but do not treat it as a replacement for importing the CSS entry into the build graph.
|
|
12
|
+
|
|
13
|
+
## Runtime requirements
|
|
14
|
+
|
|
15
|
+
Starting with `weapp-tailwindcss@5.2.0`, Node.js `>=22.12.0` is required. This is the first Node.js 22 release where loading ESM from CommonJS is enabled by default.
|
|
16
|
+
|
|
17
|
+
When using `uni-app` or `uni-app x` through HBuilderX, HBuilderX `>=5.11` is also required. Older HBuilderX releases may bundle a Node.js runtime that cannot load the current ESM dependencies.
|
package/README.md
CHANGED
|
@@ -9,3 +9,9 @@
|
|
|
9
9
|
更多接入方式、配置说明和框架示例见 [weapp-tailwindcss 官方文档](https://tw.icebreaker.top)。
|
|
10
10
|
|
|
11
11
|
Tailwind CSS 4 项目中,入口 CSS 需要同时满足两点:在项目里被实际引入,并通过 `cssEntries` 显式传给插件用于稳定识别。`cssEntries` 应使用项目根目录解析出的绝对路径;它不是替代 import 的开关。
|
|
12
|
+
|
|
13
|
+
## 运行环境
|
|
14
|
+
|
|
15
|
+
从 `weapp-tailwindcss@5.2.0` 开始,需要 Node.js `>=22.12.0`。该版本默认支持从 CommonJS 加载 ESM。
|
|
16
|
+
|
|
17
|
+
通过 HBuilderX 使用 `uni-app` 或 `uni-app x` 时,还需要 HBuilderX `>=5.11`。旧版 HBuilderX 的内置 Node 可能无法加载当前依赖中的 ESM 模块。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DetectableAppType, DetectAppTypeOptions } from '../framework';
|
|
2
|
-
import type { AppType, UserDefinedOptions } from '../types';
|
|
1
|
+
import type { DetectableAppType, DetectAppTypeOptions } from '../framework/index.js';
|
|
2
|
+
import type { AppType, UserDefinedOptions } from '../types/index.js';
|
|
3
3
|
export interface ResolveBundlerFrameworkOptions extends Pick<DetectAppTypeOptions, 'cwd' | 'env' | 'manifest' | 'packageJson' | 'root' | 'searchUp'> {
|
|
4
4
|
appType?: AppType | undefined;
|
|
5
5
|
detectEnv?: boolean | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type File from 'vinyl';
|
|
2
|
+
import type { AssetEmissionPlan } from '../../compiler/index.js';
|
|
3
|
+
import { Buffer } from 'node:buffer';
|
|
4
|
+
export type GulpAssetSource = string | Buffer;
|
|
5
|
+
export interface ApplyGulpAssetEmissionPlanOptions {
|
|
6
|
+
deleteAsset: (assetId: string) => void;
|
|
7
|
+
writeAsset: (assetId: string, contents: Buffer) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function applyGulpAssetEmissionPlan(plan: AssetEmissionPlan<GulpAssetSource>, options: ApplyGulpAssetEmissionPlanOptions): void;
|
|
10
|
+
export declare function writeGulpFileAsset(file: File, source: GulpAssetSource): void;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type { UserDefinedOptions } from '../../../../types';
|
|
1
|
+
import type { UserDefinedOptions } from '../../../../types/index.js';
|
|
2
2
|
export declare function createNativeGulpFrameworkPlugins(options?: UserDefinedOptions): {
|
|
3
|
+
beginCompilerShadowRun: () => number;
|
|
4
|
+
completeCompilerShadowRun: (revision?: number) => import("../../../../compiler/index.js").CompilerShadowGateResult | undefined;
|
|
5
|
+
dispose(): Promise<void>;
|
|
6
|
+
getCompilerShadowRunSnapshot: () => import("../../../../compiler/index.js").CompilerShadowRunSnapshot;
|
|
7
|
+
watchChange: (id: string, change?: {
|
|
8
|
+
event: "update" | "delete";
|
|
9
|
+
}) => Promise<Set<string>>;
|
|
3
10
|
adaptWxss: (options?: Partial<import("@weapp-tailwindcss/postcss").IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
4
11
|
generateWxss: (options?: Partial<import("@weapp-tailwindcss/postcss").IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
5
12
|
transformWxss: (options?: Partial<import("@weapp-tailwindcss/postcss").IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
6
|
-
transformWxml: (options?: Partial<import("
|
|
7
|
-
transformJs: (options?: Partial<import("
|
|
13
|
+
transformWxml: (options?: Partial<import("../../../../types/index.js").ITemplateHandlerOptions>) => import("node:stream").Transform;
|
|
14
|
+
transformJs: (options?: Partial<import("../../../../types/index.js").CreateJsHandlerOptions>) => import("node:stream").Transform;
|
|
8
15
|
};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type { UserDefinedOptions } from '../../types';
|
|
1
|
+
import type { UserDefinedOptions } from '../../types/index.js';
|
|
2
2
|
export declare function createPlugins(options?: UserDefinedOptions): {
|
|
3
|
+
beginCompilerShadowRun: () => number;
|
|
4
|
+
completeCompilerShadowRun: (revision?: number) => import("../../compiler/index.js").CompilerShadowGateResult | undefined;
|
|
5
|
+
dispose(): Promise<void>;
|
|
6
|
+
getCompilerShadowRunSnapshot: () => import("../../compiler/index.js").CompilerShadowRunSnapshot;
|
|
7
|
+
watchChange: (id: string, change?: {
|
|
8
|
+
event: "update" | "delete";
|
|
9
|
+
}) => Promise<Set<string>>;
|
|
3
10
|
adaptWxss: (options?: Partial<import("@weapp-tailwindcss/postcss").IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
4
11
|
generateWxss: (options?: Partial<import("@weapp-tailwindcss/postcss").IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
5
12
|
transformWxss: (options?: Partial<import("@weapp-tailwindcss/postcss").IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
6
|
-
transformWxml: (options?: Partial<import("
|
|
7
|
-
transformJs: (options?: Partial<import("
|
|
13
|
+
transformWxml: (options?: Partial<import("../../types/index.js").ITemplateHandlerOptions>) => import("node:stream").Transform;
|
|
14
|
+
transformJs: (options?: Partial<import("../../types/index.js").CreateJsHandlerOptions>) => import("node:stream").Transform;
|
|
8
15
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { JsModuleGraphOptions, UserDefinedOptions } from '../../types';
|
|
1
|
+
import type { JsModuleGraphOptions, UserDefinedOptions } from '../../types/index.js';
|
|
2
2
|
export declare function createGulpModuleGraphOptions(opts: UserDefinedOptions): JsModuleGraphOptions;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RuntimeCompilationBuildState, RuntimeCompilationSnapshot } from '../../compiler/index.js';
|
|
2
2
|
export declare function createGulpRuntimeSnapshot(runtimeSourcesByFile: Map<string, {
|
|
3
3
|
source: string;
|
|
4
4
|
type: 'html' | 'js';
|
|
5
|
-
}>,
|
|
5
|
+
}>, state: RuntimeCompilationBuildState, computeHash: (source: string) => string, options?: {
|
|
6
|
+
removedFiles?: Iterable<string> | undefined;
|
|
7
|
+
}): RuntimeCompilationSnapshot;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { getCompilerContext } from '../../../../context/index.js';
|
|
2
|
+
import type { IStyleHandlerOptions } from '../../../../types/index.js';
|
|
3
|
+
export declare function touchMapEntry<Key, Value>(map: Map<Key, Value>, key: Key, value: Value): void;
|
|
4
|
+
export declare function pruneGulpRuntimeSourceCaches(sourcesByFile: Map<string, {
|
|
5
|
+
source: string;
|
|
6
|
+
type: 'html' | 'js';
|
|
7
|
+
}>): string[];
|
|
8
|
+
export declare function rememberGulpProcessCacheKey(cacheKeys: Set<string>, key: string): void;
|
|
9
|
+
export declare function pruneGulpProcessCache(cache: ReturnType<typeof getCompilerContext>['cache'], cacheKeys: Set<string>): void;
|
|
10
|
+
export declare function resolveGulpMemoryDebugStats(context: {
|
|
11
|
+
cache: ReturnType<typeof getCompilerContext>['cache'];
|
|
12
|
+
defaultStyleHandlerOptionsCache: Map<number | 'unknown', Partial<IStyleHandlerOptions>>;
|
|
13
|
+
gulpProcessCacheKeys: Set<string>;
|
|
14
|
+
phase: string;
|
|
15
|
+
runtimeSet: Set<string>;
|
|
16
|
+
runtimeSourceHashByFile: Map<string, string>;
|
|
17
|
+
runtimeSourcesByFile: Map<string, {
|
|
18
|
+
source: string;
|
|
19
|
+
type: 'html' | 'js';
|
|
20
|
+
}>;
|
|
21
|
+
}): {
|
|
22
|
+
phase: string;
|
|
23
|
+
process: {
|
|
24
|
+
rssMb: number;
|
|
25
|
+
heapTotalMb: number;
|
|
26
|
+
heapUsedMb: number;
|
|
27
|
+
externalMb: number;
|
|
28
|
+
arrayBuffersMb: number;
|
|
29
|
+
};
|
|
30
|
+
runtime: {
|
|
31
|
+
runtimeSet: number;
|
|
32
|
+
runtimeSourceHashByFile: number;
|
|
33
|
+
runtimeSourcesByFile: number;
|
|
34
|
+
maxRuntimeSources: number;
|
|
35
|
+
};
|
|
36
|
+
processCache: {
|
|
37
|
+
instance: number;
|
|
38
|
+
hashMap: number;
|
|
39
|
+
activeCacheKeys: number;
|
|
40
|
+
maxCacheKeys: number;
|
|
41
|
+
};
|
|
42
|
+
gulpOptions: {
|
|
43
|
+
defaultStyleHandlerOptions: number;
|
|
44
|
+
};
|
|
45
|
+
tailwind: {
|
|
46
|
+
v4: {
|
|
47
|
+
max: number;
|
|
48
|
+
entryCandidatesMax: number;
|
|
49
|
+
entryCssBytesMax: number;
|
|
50
|
+
size: number;
|
|
51
|
+
taskMax: number;
|
|
52
|
+
taskSize: number;
|
|
53
|
+
entries: {
|
|
54
|
+
candidates: number;
|
|
55
|
+
classSet: number;
|
|
56
|
+
cssBytes: number;
|
|
57
|
+
rawCssBytes: number;
|
|
58
|
+
keyHash: string;
|
|
59
|
+
keyBytes: number;
|
|
60
|
+
}[];
|
|
61
|
+
keys: {
|
|
62
|
+
keyHash: string;
|
|
63
|
+
keyBytes: number;
|
|
64
|
+
}[];
|
|
65
|
+
taskKeys: {
|
|
66
|
+
keyHash: string;
|
|
67
|
+
keyBytes: number;
|
|
68
|
+
}[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
} | undefined;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type File from 'vinyl';
|
|
2
|
+
import type { getCompilerContext } from '../../../../context/index.js';
|
|
3
|
+
import type { TailwindRuntimeState } from '../../../../tailwindcss/runtime.js';
|
|
4
|
+
import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, JsModuleGraphOptions } from '../../../../types/index.js';
|
|
5
|
+
type DebugFunction = (formatter: unknown, ...args: unknown[]) => void;
|
|
6
|
+
type RuntimeRefreshOptions = boolean | {
|
|
7
|
+
forceRefresh?: boolean;
|
|
8
|
+
forceCollect?: boolean;
|
|
9
|
+
clearCache?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export interface GulpFileTransformContext {
|
|
12
|
+
cache: ReturnType<typeof getCompilerContext>['cache'];
|
|
13
|
+
createRuntimeSetHash: (rawSource: string, nextRuntimeSet: Set<string>, sourceTraceSignature?: string, sourceCandidateSignature?: string, outputSignature?: string) => string;
|
|
14
|
+
debug: DebugFunction;
|
|
15
|
+
generatedCssPreflightModeByFile: Map<string, {
|
|
16
|
+
inject: boolean;
|
|
17
|
+
preserve: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
getCompilationDependencyRevision: (scopeId: string) => number;
|
|
20
|
+
getSourceCandidateGetter: () => ((entries?: unknown) => Set<string>) | undefined;
|
|
21
|
+
getSourceCandidateSourceGetter: () => ((entries?: unknown) => Map<string, Set<string>>) | undefined;
|
|
22
|
+
getRuntimeSet: () => Set<string>;
|
|
23
|
+
gulpProcessCacheKeys: Set<string>;
|
|
24
|
+
opts: ReturnType<typeof getCompilerContext>;
|
|
25
|
+
refreshGulpV4SourceCandidates: (forceRefresh?: boolean) => Promise<((entries?: unknown) => Set<string>) | undefined>;
|
|
26
|
+
refreshRuntimeSet: (options?: RuntimeRefreshOptions) => Promise<Set<string>>;
|
|
27
|
+
refreshRuntimeSetForSource: (file: File, rawSource: string, type: 'html' | 'js') => Promise<Set<string>>;
|
|
28
|
+
registerAutoCssSource: (file: File, rawSource: string) => Promise<boolean>;
|
|
29
|
+
rememberCompilationScope: (sourceFile: string, scopeId: string) => void;
|
|
30
|
+
resolveGulpStyleOutputExtension: (file: File) => string | undefined;
|
|
31
|
+
resolveGulpTransformTimingDetails: (phase: string) => unknown;
|
|
32
|
+
resolveModuleGraphOptions: (moduleGraph?: JsModuleGraphOptions) => JsModuleGraphOptions;
|
|
33
|
+
resolveWxmlHandlerOptions: (options?: Partial<ITemplateHandlerOptions>) => Partial<ITemplateHandlerOptions>;
|
|
34
|
+
resolveWxssFileHandlerOptions: (file: File, rawSource: string, options?: Partial<IStyleHandlerOptions>) => Partial<IStyleHandlerOptions>;
|
|
35
|
+
resolveWxssUserHandlerOptions: (options?: Partial<IStyleHandlerOptions>) => Partial<IStyleHandlerOptions>;
|
|
36
|
+
runtimeState: TailwindRuntimeState;
|
|
37
|
+
}
|
|
38
|
+
export declare function createGulpFileTransforms(context: GulpFileTransformContext): {
|
|
39
|
+
adaptWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
40
|
+
generateWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
41
|
+
transformWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
42
|
+
transformWxml: (options?: Partial<ITemplateHandlerOptions>) => import("node:stream").Transform;
|
|
43
|
+
transformJs: (options?: Partial<CreateJsHandlerOptions>) => import("node:stream").Transform;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from '../../../types/index.js';
|
|
2
2
|
export declare function createNativeGulpPlugins(options?: UserDefinedOptions): {
|
|
3
|
+
beginCompilerShadowRun: () => number;
|
|
4
|
+
completeCompilerShadowRun: (revision?: number) => import("../../../compiler/index.js").CompilerShadowGateResult | undefined;
|
|
5
|
+
dispose(): Promise<void>;
|
|
6
|
+
getCompilerShadowRunSnapshot: () => import("../../../compiler/index.js").CompilerShadowRunSnapshot;
|
|
7
|
+
watchChange: (id: string, change?: {
|
|
8
|
+
event: "update" | "delete";
|
|
9
|
+
}) => Promise<Set<string>>;
|
|
3
10
|
adaptWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
4
11
|
generateWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
5
12
|
transformWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
|
|
6
13
|
transformWxml: (options?: Partial<ITemplateHandlerOptions>) => import("node:stream").Transform;
|
|
7
|
-
transformJs: (options?: Partial<CreateJsHandlerOptions>) => import("node:stream").Transform;
|
|
14
|
+
transformJs: (options?: Partial<import("../../../types/index.js").CreateJsHandlerOptions>) => import("node:stream").Transform;
|
|
8
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WebpackCssImportRewriteLoaderOptions } from '../webpack/loaders/runtime-registry';
|
|
2
|
-
import { WeappTailwindcss, weappTailwindcssPackageDir } from '../webpack';
|
|
1
|
+
import type { WebpackCssImportRewriteLoaderOptions } from '../webpack/loaders/runtime-registry.js';
|
|
2
|
+
import { WeappTailwindcss, weappTailwindcssPackageDir } from '../webpack/index.js';
|
|
3
3
|
export { WeappTailwindcss, weappTailwindcss, weappTailwindcssPackageDir };
|
|
4
4
|
declare const weappTailwindcss: typeof WeappTailwindcss;
|
|
5
5
|
export interface PatchRspackCssImportRewriteLoaderOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CacheValue, HashMapKey, ICreateCacheReturnType } from '../../cache';
|
|
1
|
+
import type { CacheValue, HashMapKey, ICreateCacheReturnType } from '../../cache/index.js';
|
|
2
2
|
export interface ProcessCachedTaskOptions<TValue extends CacheValue> {
|
|
3
3
|
cache: ICreateCacheReturnType;
|
|
4
4
|
cacheKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TailwindSourceEntry } from '../../tailwindcss/source-scan';
|
|
2
|
-
import type { InternalUserDefinedOptions } from '../../types';
|
|
1
|
+
import type { TailwindSourceEntry } from '../../tailwindcss/source-scan.js';
|
|
2
|
+
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
3
3
|
export interface CssTokenSource {
|
|
4
4
|
token: string;
|
|
5
5
|
sources: string[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IStyleHandlerOptions, LoadedPostcssOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
+
import type { GenerateCssByGeneratorResult } from './generator-css.js';
|
|
3
|
+
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
4
|
+
export declare function resolveFrameworkPostcssOptions(value: unknown): LoadedPostcssOptions | undefined;
|
|
5
|
+
export declare function collectFrameworkPostcssOptionsFromLoaderEntries(entries: unknown[], loaderContext?: unknown): LoadedPostcssOptions | undefined;
|
|
6
|
+
export declare function captureFrameworkPostcssOptions(owner: InternalUserDefinedOptions, options: unknown): LoadedPostcssOptions | undefined;
|
|
7
|
+
export declare function captureResolvedFrameworkPostcssOptions(owner: InternalUserDefinedOptions, options: LoadedPostcssOptions | undefined): LoadedPostcssOptions | undefined;
|
|
8
|
+
export declare function hasFrameworkPostcssOptions(owner: InternalUserDefinedOptions): boolean;
|
|
9
|
+
export declare function adaptGeneratedCssWithFrameworkPipeline(owner: InternalUserDefinedOptions, generated: GenerateCssByGeneratorResult, options: {
|
|
10
|
+
cssHandlerOptions: IStyleHandlerOptions;
|
|
11
|
+
file: string;
|
|
12
|
+
majorVersion: number;
|
|
13
|
+
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
14
|
+
}): Promise<string>;
|
|
15
|
+
export declare function adaptGeneratedCssWithFrameworkRootPipeline(owner: InternalUserDefinedOptions, generated: GenerateCssByGeneratorResult, options: {
|
|
16
|
+
cssHandlerOptions: IStyleHandlerOptions;
|
|
17
|
+
file: string;
|
|
18
|
+
majorVersion: number;
|
|
19
|
+
rawCandidates: Iterable<string>;
|
|
20
|
+
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
21
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
+
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
3
|
+
export declare function hasMiniProgramTailwindV4PreflightReset(css: string): boolean;
|
|
4
|
+
export declare function finalizeMiniProgramGeneratorCss(css: string, target: string, _majorVersion: number | undefined, cssPreflight: InternalUserDefinedOptions['cssPreflight'], options?: {
|
|
5
|
+
injectPreflight?: boolean | undefined;
|
|
6
|
+
preservePreflight?: boolean | undefined;
|
|
7
|
+
removeEmptyAtRuleAncestors?: boolean | undefined;
|
|
8
|
+
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function resolveMiniProgramPreflightModeForGeneratorCss(opts: InternalUserDefinedOptions, options: {
|
|
11
|
+
cssHandlerOptions: IStyleHandlerOptions;
|
|
12
|
+
isolateCurrentCssCandidates: boolean;
|
|
13
|
+
localImports?: string | undefined;
|
|
14
|
+
primaryCssSource?: boolean | undefined;
|
|
15
|
+
explicitCssSource?: boolean | undefined;
|
|
16
|
+
}): {
|
|
17
|
+
inject: boolean;
|
|
18
|
+
preserve: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
+
import type { createWeappTailwindcssGenerator } from '../../../../generator/index.js';
|
|
3
|
+
export declare function shouldFinalizeMarkedUserLayerComponentsCss(file: string): boolean;
|
|
4
|
+
export declare function splitRawSourceByGeneratedCssOrder(rawSource: string, rawTailwindCss: string): {
|
|
5
|
+
before: string;
|
|
6
|
+
after: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
export declare function shouldUseGeneratorForCurrentCss(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
|
|
9
|
+
forceGenerator?: boolean | undefined;
|
|
10
|
+
hasGeneratedCss: boolean;
|
|
11
|
+
hasGeneratedMarkers: boolean;
|
|
12
|
+
hasSourceDirectives: boolean;
|
|
13
|
+
rawSource: string;
|
|
14
|
+
runtimeCandidateCount?: number | undefined;
|
|
15
|
+
target?: string | undefined;
|
|
16
|
+
configuredCssSourceCount?: number | undefined;
|
|
17
|
+
}): boolean | undefined;
|
|
18
|
+
export declare function hasGeneratorSourceDirectives(source: string, importFallback: boolean): boolean;
|
|
19
|
+
export declare function createRuntimeWithCurrentCssCandidates(runtime: Set<string>, currentCssCandidates: string[], isolateCurrentCssCandidates: boolean): Set<string>;
|
|
20
|
+
export declare function mergeGeneratorResults(generatedResults: GeneratorResult[]): (import("../../../../generator/index.js").TailwindV4GenerateResult & {
|
|
21
|
+
target: import("../../../../generator/index.js").WeappTailwindcssGeneratorTarget;
|
|
22
|
+
rawCss: string;
|
|
23
|
+
}) | undefined;
|
|
24
|
+
type GeneratorResult = Awaited<ReturnType<ReturnType<typeof createWeappTailwindcssGenerator>['generate']>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
+
import type { GeneratorSourceRecord } from '../source-resolver.js';
|
|
3
|
+
import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
|
|
4
|
+
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
5
|
+
export declare function mergeScopedRuntimeWithCurrentRuntime(scopedRuntime: Set<string>, runtime: Set<string>, options: {
|
|
6
|
+
currentCssCandidates?: string[] | undefined;
|
|
7
|
+
cssHandlerOptions: IStyleHandlerOptions;
|
|
8
|
+
isolateCssSource: boolean;
|
|
9
|
+
majorVersion?: number | undefined;
|
|
10
|
+
matchedCssSourceFile: boolean;
|
|
11
|
+
}): Set<string>;
|
|
12
|
+
export declare function shouldIsolateScopedCssSource(_majorVersion: number | undefined, record: GeneratorSourceRecord, sourceEntries: TailwindSourceEntry[] | undefined, options: {
|
|
13
|
+
cssHandlerOptions?: IStyleHandlerOptions | undefined;
|
|
14
|
+
target: string;
|
|
15
|
+
}): boolean;
|
|
16
|
+
export declare function shouldIsolateCurrentTailwindV4CssCandidates(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
|
|
17
|
+
hasGeneratedCss: boolean;
|
|
18
|
+
hasGeneratedMarkers: boolean;
|
|
19
|
+
rawSource: string;
|
|
20
|
+
}): boolean;
|
|
21
|
+
export declare function shouldScanTailwindV4Sources(majorVersion: number | undefined, target: string, generatorRuntime: Set<string>, isolateCssSource: boolean): boolean;
|
|
22
|
+
export declare function shouldAppendWebBundleCssFallback(target: string, _options: {
|
|
23
|
+
hasSourceDirectives: boolean;
|
|
24
|
+
hasMatchedCssSourceFile: boolean;
|
|
25
|
+
}): target is "web";
|
|
26
|
+
export declare function isEmptyCssSourceOrderParts(parts: {
|
|
27
|
+
before: string;
|
|
28
|
+
after: string;
|
|
29
|
+
}): boolean;
|
|
30
|
+
export declare function resolveGeneratorStyleOptions(opts: InternalUserDefinedOptions, cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined): Partial<IStyleHandlerOptions>;
|
|
@@ -1,72 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { InternalUserDefinedOptions } from '../../../types';
|
|
6
|
-
export declare function hasMiniProgramTailwindV4PreflightReset(css: string): boolean;
|
|
7
|
-
export declare function finalizeMiniProgramGeneratorCss(css: string, target: string, _majorVersion: number | undefined, cssPreflight: InternalUserDefinedOptions['cssPreflight'], options?: {
|
|
8
|
-
injectPreflight?: boolean;
|
|
9
|
-
preservePreflight?: boolean;
|
|
10
|
-
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
11
|
-
}): string;
|
|
12
|
-
export declare function resolveMiniProgramPreflightModeForGeneratorCss(opts: InternalUserDefinedOptions, options: {
|
|
13
|
-
cssHandlerOptions: IStyleHandlerOptions;
|
|
14
|
-
isolateCurrentCssCandidates: boolean;
|
|
15
|
-
localImports?: string | undefined;
|
|
16
|
-
primaryCssSource?: boolean | undefined;
|
|
17
|
-
explicitCssSource?: boolean | undefined;
|
|
18
|
-
}): {
|
|
19
|
-
inject: boolean;
|
|
20
|
-
preserve: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare function mergeScopedRuntimeWithCurrentRuntime(scopedRuntime: Set<string>, runtime: Set<string>, options: {
|
|
23
|
-
currentCssCandidates?: string[] | undefined;
|
|
24
|
-
cssHandlerOptions: IStyleHandlerOptions;
|
|
25
|
-
isolateCssSource: boolean;
|
|
26
|
-
majorVersion?: number | undefined;
|
|
27
|
-
matchedCssSourceFile: boolean;
|
|
28
|
-
}): Set<string>;
|
|
29
|
-
export declare function shouldIsolateScopedCssSource(_majorVersion: number | undefined, source: GeneratorResolvedSource, sourceEntries: TailwindSourceEntry[] | undefined, options: {
|
|
30
|
-
cssHandlerOptions?: IStyleHandlerOptions | undefined;
|
|
31
|
-
target: string;
|
|
32
|
-
}): boolean;
|
|
33
|
-
export declare function shouldIsolateCurrentTailwindV4CssCandidates(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
|
|
34
|
-
hasGeneratedCss: boolean;
|
|
35
|
-
hasGeneratedMarkers: boolean;
|
|
36
|
-
rawSource: string;
|
|
37
|
-
}): boolean;
|
|
38
|
-
export declare function shouldScanTailwindV4Sources(majorVersion: number | undefined, target: string, generatorRuntime: Set<string>, isolateCssSource: boolean): boolean;
|
|
39
|
-
export declare function shouldAppendWebBundleCssFallback(target: string, _options: {
|
|
40
|
-
hasSourceDirectives: boolean;
|
|
41
|
-
hasMatchedCssSourceFile: boolean;
|
|
42
|
-
}): target is "web";
|
|
43
|
-
export declare function isEmptyCssSourceOrderParts(parts: {
|
|
44
|
-
before: string;
|
|
45
|
-
after: string;
|
|
46
|
-
}): boolean;
|
|
47
|
-
export declare function resolveGeneratorStyleOptions(opts: InternalUserDefinedOptions, cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined): Partial<IStyleHandlerOptions>;
|
|
48
|
-
export declare function createCssSourceOrderAppend(base: string, extra: string): string;
|
|
49
|
-
export declare function deduplicateGeneratedCssRules(css: string): string;
|
|
50
|
-
export declare function shouldFinalizeMarkedUserLayerComponentsCss(file: string): boolean;
|
|
51
|
-
export declare function splitRawSourceByGeneratedCssOrder(rawSource: string, rawTailwindCss: string): {
|
|
52
|
-
before: string;
|
|
53
|
-
after: string;
|
|
54
|
-
} | undefined;
|
|
55
|
-
export declare function shouldUseGeneratorForCurrentCss(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
|
|
56
|
-
forceGenerator?: boolean | undefined;
|
|
57
|
-
hasGeneratedCss: boolean;
|
|
58
|
-
hasGeneratedMarkers: boolean;
|
|
59
|
-
hasSourceDirectives: boolean;
|
|
60
|
-
rawSource: string;
|
|
61
|
-
runtimeCandidateCount?: number | undefined;
|
|
62
|
-
target?: string | undefined;
|
|
63
|
-
configuredCssSourceCount?: number | undefined;
|
|
64
|
-
}): boolean | undefined;
|
|
65
|
-
export declare function hasGeneratorSourceDirectives(source: string, importFallback: boolean): boolean;
|
|
66
|
-
export declare function createRuntimeWithCurrentCssCandidates(runtime: Set<string>, currentCssCandidates: string[], isolateCurrentCssCandidates: boolean): Set<string>;
|
|
67
|
-
export declare function mergeGeneratorResults(generatedResults: GeneratorResult[]): (import("@/generator").TailwindV4GenerateResult & {
|
|
68
|
-
target: import("@/generator").WeappTailwindcssGeneratorTarget;
|
|
69
|
-
rawCss: string;
|
|
70
|
-
}) | undefined;
|
|
71
|
-
type GeneratorResult = Awaited<ReturnType<ReturnType<typeof createWeappTailwindcssGenerator>['generate']>>;
|
|
72
|
-
export {};
|
|
1
|
+
export { finalizeMiniProgramGeneratorCss, hasMiniProgramTailwindV4PreflightReset, resolveMiniProgramPreflightModeForGeneratorCss } from './generation-helpers/preflight.js';
|
|
2
|
+
export { createRuntimeWithCurrentCssCandidates, hasGeneratorSourceDirectives, mergeGeneratorResults, shouldFinalizeMarkedUserLayerComponentsCss, shouldUseGeneratorForCurrentCss, splitRawSourceByGeneratedCssOrder } from './generation-helpers/results.js';
|
|
3
|
+
export { isEmptyCssSourceOrderParts, mergeScopedRuntimeWithCurrentRuntime, resolveGeneratorStyleOptions, shouldAppendWebBundleCssFallback, shouldIsolateCurrentTailwindV4CssCandidates, shouldIsolateScopedCssSource, shouldScanTailwindV4Sources } from './generation-helpers/runtime-isolation.js';
|
|
4
|
+
export { createCssSourceOrderAppend, deduplicateGeneratedCssRules } from './generation-helpers/source-order.js';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { TailwindResolvedSource } from '../../../generator';
|
|
3
|
-
import type { InternalUserDefinedOptions } from '../../../types';
|
|
2
|
+
import type { TailwindResolvedSource } from '../../../generator/index.js';
|
|
3
|
+
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
4
4
|
export declare function removeTailwindApplyRules(rawSource: string): string;
|
|
5
5
|
export declare function hasConfiguredContainerCompatSources(sources: TailwindResolvedSource[]): boolean;
|
|
6
|
-
export declare function appendLegacyCompatCss(css: string, rawSource: string, generatorTarget: string, styleHandler: InternalUserDefinedOptions['styleHandler'], cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined
|
|
6
|
+
export declare function appendLegacyCompatCss(css: string, rawSource: string, generatorTarget: string, styleHandler: InternalUserDefinedOptions['styleHandler'], cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined, options?: {
|
|
7
|
+
preserveSelectorOverrides?: boolean | undefined;
|
|
8
|
+
}): Promise<string>;
|
|
7
9
|
export declare function appendLegacyContainerCompatCss(css: string, rawSource: string, file: string, runtime: Set<string>, configuredContainerCompat: boolean, generatorTarget: string, styleHandler: InternalUserDefinedOptions['styleHandler'], cssHandlerOptions: IStyleHandlerOptions, generatorStyleOptions: Partial<IStyleHandlerOptions> | undefined): Promise<string>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
+
import type { TailwindV4CssSource } from '../source-resolver/types.js';
|
|
3
|
+
import type { GenerateCssByGeneratorOptions } from '../types.js';
|
|
4
|
+
import type { NormalizedWeappTailwindcssGeneratorOptions, TailwindResolvedSource, WeappTailwindcssGenerateResult } from '../../../../generator/index.js';
|
|
5
|
+
import type { RuntimeBranch } from '../../../../runtime-branch.js';
|
|
6
|
+
export interface GeneratorPipelineExecutionContext {
|
|
7
|
+
cssHandlerOptions: GenerateCssByGeneratorOptions['cssHandlerOptions'];
|
|
8
|
+
cssUserHandlerOptions: GenerateCssByGeneratorOptions['cssUserHandlerOptions'];
|
|
9
|
+
debug: GenerateCssByGeneratorOptions['debug'];
|
|
10
|
+
file: string;
|
|
11
|
+
finalizeGeneratorCss: (css: string, target: string, options?: {
|
|
12
|
+
injectPreflight?: boolean | undefined;
|
|
13
|
+
preservePreflight?: boolean | undefined;
|
|
14
|
+
removeEmptyAtRuleAncestors?: boolean | undefined;
|
|
15
|
+
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
16
|
+
}) => string;
|
|
17
|
+
generatedUserCssRawSource: string;
|
|
18
|
+
generatorBranch: RuntimeBranch;
|
|
19
|
+
generatorOptions: NormalizedWeappTailwindcssGeneratorOptions;
|
|
20
|
+
generatorRawSource: string;
|
|
21
|
+
getSourceCandidatesForEntries: GenerateCssByGeneratorOptions['getSourceCandidatesForEntries'];
|
|
22
|
+
hasDistinctUserRawSource: boolean;
|
|
23
|
+
hasGeneratedCss: boolean;
|
|
24
|
+
hasGeneratedMarkers: boolean;
|
|
25
|
+
hasSourceDirectives: boolean;
|
|
26
|
+
hasWebUserCssFallbackSource: boolean;
|
|
27
|
+
legacyCompatUserCssRawSource: string;
|
|
28
|
+
localImports: string | undefined;
|
|
29
|
+
majorVersion: number;
|
|
30
|
+
normalizeGeneratorSource: (source: TailwindResolvedSource) => TailwindResolvedSource;
|
|
31
|
+
normalizedCssSources: TailwindV4CssSource[] | undefined;
|
|
32
|
+
options: GenerateCssByGeneratorOptions;
|
|
33
|
+
opts: GenerateCssByGeneratorOptions['opts'];
|
|
34
|
+
prepareFinalGeneratorCss: (css: string) => string;
|
|
35
|
+
runtime: Set<string>;
|
|
36
|
+
runtimeState: GenerateCssByGeneratorOptions['runtimeState'];
|
|
37
|
+
shouldPreserveLegacyCompatSelectorOverrides: boolean;
|
|
38
|
+
styleHandler: GenerateCssByGeneratorOptions['styleHandler'];
|
|
39
|
+
userCssOrderSource: string;
|
|
40
|
+
userCssRawSource: string;
|
|
41
|
+
userRawSourceProcessed: boolean | undefined;
|
|
42
|
+
useMiniProgramCssBranch: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface GeneratorPipelineOutputContext extends GeneratorPipelineExecutionContext {
|
|
45
|
+
configuredContainerCompat: boolean;
|
|
46
|
+
filterGeneratedApplyOnlyCss: (css: string) => string;
|
|
47
|
+
generated: WeappTailwindcssGenerateResult;
|
|
48
|
+
generatedCss: string;
|
|
49
|
+
generatorStyleOptions: Partial<IStyleHandlerOptions>;
|
|
50
|
+
hasMatchedCssSourceFile: boolean;
|
|
51
|
+
isolateCurrentCssCandidates: boolean;
|
|
52
|
+
preflightMode: {
|
|
53
|
+
inject: boolean;
|
|
54
|
+
preserve: boolean;
|
|
55
|
+
};
|
|
56
|
+
runtimeWithCurrentCss: Set<string>;
|
|
57
|
+
shouldFilterApplyOnlyCss: boolean;
|
|
58
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { GenerateCssByGeneratorResult } from '../types.js';
|
|
2
|
+
import type { GeneratorPipelineOutputContext } from './context.js';
|
|
3
|
+
export declare function finalizeDeferredGeneratorCss(context: GeneratorPipelineOutputContext): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { GenerateCssByGeneratorResult } from '../types.js';
|
|
2
|
+
import type { GeneratorPipelineExecutionContext } from './context.js';
|
|
3
|
+
export declare function executeGeneratorPipeline(context: GeneratorPipelineExecutionContext): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { GenerateCssByGeneratorResult } from '../types.js';
|
|
2
|
+
import type { GeneratorPipelineOutputContext } from './context.js';
|
|
3
|
+
export declare function finalizeOrderedGeneratorCss(context: GeneratorPipelineOutputContext): Promise<GenerateCssByGeneratorResult | undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { normalizeWeappTailwindcssGeneratorOptions } from '../../../generator/index.js';
|
|
2
|
+
import { finalizeMiniProgramGeneratorCss } from './generation-helpers.js';
|
|
3
|
+
export declare function isCssAlreadyRepresentedByMarkers(css: string, source: string): boolean;
|
|
4
|
+
export declare function resolveGeneratedCssClassSet(target: string, classSet: Set<string>, candidates: Iterable<string>, css: string, escapeMap: Record<string, string> | undefined, previousClassSet?: Set<string> | undefined): Set<string>;
|
|
5
|
+
export declare function finalizeWebGeneratorCss(css: string, target: string, webCompat: ReturnType<typeof normalizeWeappTailwindcssGeneratorOptions>['webCompat']): string;
|
|
6
|
+
export declare function finalizeIncrementalGeneratorCss(previousCss: string, incrementalCss: string, target: string, majorVersion: number | undefined, cssPreflight: Parameters<typeof finalizeMiniProgramGeneratorCss>[3], options: Parameters<typeof finalizeMiniProgramGeneratorCss>[4], webCompat: ReturnType<typeof normalizeWeappTailwindcssGeneratorOptions>['webCompat']): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function preferScopedGeneratedCssRules(css: string): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
+
import type { GeneratorSourceRuntimeState, SourceStyleMatchOptions, TailwindV4CssSource, TailwindV4SourceOptions } from './types.js';
|
|
3
|
+
import type { TailwindResolvedSource } from '../../../../generator/index.js';
|
|
4
|
+
export declare function createCssEntrySources(cssEntries: string[] | undefined): {
|
|
5
|
+
file: string;
|
|
6
|
+
}[] | undefined;
|
|
7
|
+
export declare function mergeCssSources(cssSources: TailwindV4CssSource[] | undefined, cssEntrySources: TailwindV4CssSource[] | undefined): import("@tailwindcss-mangle/engine").TailwindV4CssSource[] | undefined;
|
|
8
|
+
export declare function createSingleTailwindV4SourceOptions(sourceOptions: TailwindV4SourceOptions, options: {
|
|
9
|
+
base: string;
|
|
10
|
+
css: string;
|
|
11
|
+
cssEntries?: string[] | undefined;
|
|
12
|
+
}): Partial<{
|
|
13
|
+
projectRoot: string;
|
|
14
|
+
baseFallbacks: string[];
|
|
15
|
+
packageName: string;
|
|
16
|
+
base: string;
|
|
17
|
+
css: string;
|
|
18
|
+
cssEntries: string[];
|
|
19
|
+
}>;
|
|
20
|
+
export declare function resolveTailwindV4CssEntrySource(cssEntry: string, sourceOptions: TailwindV4SourceOptions, options?: {
|
|
21
|
+
candidateMatched?: boolean | undefined;
|
|
22
|
+
includesPreflight?: boolean | undefined;
|
|
23
|
+
index?: number | undefined;
|
|
24
|
+
}): Promise<import("./metadata.js").GeneratorResolvedSource>;
|
|
25
|
+
export declare function canResolveSourceSideCssEntry(file: string, cssHandlerOptions: IStyleHandlerOptions, sourceOptions?: Pick<SourceStyleMatchOptions, 'sourceFile' | 'cssSources' | 'outputRoot'>): boolean;
|
|
26
|
+
export declare function shouldResolveSourceSideCssEntry(rawSource: string): boolean;
|
|
27
|
+
export declare function normalizeTailwindV4CssSourceConfig(cssSource: TailwindV4CssSource, sourceBase: string): import("@tailwindcss-mangle/engine").TailwindV4CssSource;
|
|
28
|
+
export declare function normalizeResolvedTailwindV4SourceConfig<T extends TailwindResolvedSource>(source: T, file: string | undefined, sourceOptions: TailwindV4SourceOptions | undefined): T;
|
|
29
|
+
export declare function normalizeTailwindV4CssSourceConfigs(sourceOptions: TailwindV4SourceOptions): TailwindV4SourceOptions;
|
|
30
|
+
export declare function tryResolveTailwindV4SourceOptions(runtimeState: GeneratorSourceRuntimeState): TailwindV4SourceOptions | undefined;
|
|
31
|
+
export declare function hasConfiguredTailwindV4CssSource(sourceOptions: TailwindV4SourceOptions | undefined): boolean;
|
|
32
|
+
export declare function isSameTailwindV4CssSource(a: TailwindV4CssSource | undefined, b: TailwindV4CssSource | undefined): boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SourceStyleMatchOptions } from './types';
|
|
1
|
+
import type { SourceStyleMatchOptions } from './types.js';
|
|
2
2
|
export declare function normalizeCssSourceForCompare(css: string): string;
|
|
3
3
|
export declare function scoreTailwindV4CssSourceFileMatch(file: string, cssSourceFile: string, sourceOptions: SourceStyleMatchOptions): number;
|