weapp-tailwindcss 5.1.16 → 5.2.1
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 +4 -4
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +5 -3
- 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 +9 -2
- package/dist/bundlers/shared/generator-css/candidates.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +4 -3
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +3 -3
- package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +4 -4
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +4 -4
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +2 -2
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +58 -0
- package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +3 -14
- package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +3 -12
- package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +3 -12
- package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +3 -25
- package/dist/bundlers/shared/generator-css/pipeline.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +2 -2
- package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +3 -4
- 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 +3 -3
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +4 -3
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +9 -9
- package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +3 -3
- package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +4 -4
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +4 -4
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +7 -6
- package/dist/bundlers/shared/generator-css/types.d.ts +12 -3
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -5
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -1
- package/dist/bundlers/shared/generator-css.d.ts +9 -9
- 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/{vite → shared}/source-candidates/collector.d.ts +1 -1
- 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/{vite → shared}/source-candidates/store.d.ts +1 -1
- package/dist/bundlers/{vite → shared}/source-candidates/types-and-cache.d.ts +3 -3
- 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 +8 -3
- 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 +3 -3
- package/dist/bundlers/vite/css-finalizer/plugin.d.ts +1 -1
- package/dist/bundlers/vite/css-finalizer.d.ts +1 -1
- 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 +2 -2
- package/dist/bundlers/vite/generate-bundle/finalize/bundle.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +5 -5
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -2
- 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 → generate-bundle/runtime.d.ts} +4 -4
- 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 +6 -6
- 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 +2 -1
- package/dist/bundlers/vite/processed-css-assets/collector.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +1 -1
- 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 +4 -4
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +5 -5
- package/dist/bundlers/vite/processed-css-assets.d.ts +4 -4
- package/dist/bundlers/vite/resolve-app-type.d.ts +1 -1
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +3 -2
- 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 -1
- 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.d.ts +7 -7
- 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 -4
- 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 +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-task.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -41
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/html-js-tasks.d.ts +1 -1
- 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 +4 -4
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +6 -6
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/resources.d.ts +2 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +4 -4
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +9 -9
- 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 +4 -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 +2 -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 +4 -4
- package/dist/bundlers/webpack/shared/create-framework-plugin.d.ts +3 -3
- 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 +141 -168
- 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-BtLIID4m.js → context-OqD_eBxQ.cjs} +31 -93
- package/dist/{context-JzwzSX36.mjs → context-YAvTyPV2.js} +25 -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-B91GhUJQ.js → generator-BE34PYSC.cjs} +175 -38
- package/dist/{generator-Bv7myuhY.mjs → generator-DYeAa2-5.js} +160 -35
- package/dist/generator.cjs +12 -0
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +2 -12
- package/dist/{gulp-CKSklPlH.mjs → gulp-CxIXGmft.js} +141 -90
- package/dist/{gulp-Q1wITegn.js → gulp-DCRItId9.cjs} +157 -103
- package/dist/gulp.cjs +5 -0
- package/dist/gulp.d.ts +4 -4
- package/dist/gulp.js +2 -5
- package/dist/hmr-timing-BeJU2tmK.cjs +555 -0
- package/dist/{hmr-timing-BXg7nI8N.mjs → hmr-timing-Doqs3Z6q.js} +3824 -1988
- 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-hVsoTfwL.cjs +775 -0
- package/dist/pipeline-helpers-DbwUW5Er.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 +2 -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.d.ts +1 -1
- package/dist/source-candidate-scan-signature-BMBzTdhD.js +421 -0
- package/dist/source-candidate-scan-signature-CzrG7nGp.cjs +555 -0
- package/dist/style-injector/internal.d.ts +6 -6
- package/dist/style-options-B_ppaVIg.cjs +77 -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/css-compat.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/engine.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +4 -5
- 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 -2
- 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-BTcXX8Ka.mjs → tailwindcss-CTpCc_nd.js} +22 -22
- package/dist/{tailwindcss-B4phC0kB.js → tailwindcss-DcpiKvmJ.cjs} +9 -769
- 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-CMPaWn9P.js → v4-generation-core-BrCR6ic8.cjs} +3468 -2059
- package/dist/{vite-DhVnXvAQ.js → vite-Bu6MB9Zo.cjs} +6156 -4670
- package/dist/{vite-BwQWl9ft.mjs → vite-TMGwWcx9.js} +5967 -4456
- 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} +9 -11
- package/dist/{webpack-kh78iMSS.js → webpack-CiI-1n9L.cjs} +208 -954
- package/dist/{webpack-Bo1QrFPf.mjs → webpack-Dnh2KQbg.js} +105 -101
- 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 -714
- package/package.json +56 -53
- 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/source-candidate-scan-signature-BKZZk_e6.js +0 -1078
- package/dist/source-candidate-scan-signature-CtK-mB_C.mjs +0 -854
- 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-B0tVkJLH.js +0 -10524
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { GeneratorSourceSelectionOptions, TailwindV4SourceOptions } from './types';
|
|
3
|
-
import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator';
|
|
4
|
-
export declare function resolveMatchingTailwindV4CssEntry(rawSource: string, file: string, sourceOptions: ReturnType<typeof resolveTailwindV4SourceOptionsFromRuntime>): Promise<import("./metadata").GeneratorResolvedSource | undefined>;
|
|
5
|
-
export declare function resolveMatchingTailwindV4CssSource(rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, sourceOptions: TailwindV4SourceOptions, selectionOptions?: GeneratorSourceSelectionOptions | undefined): Promise<import("./metadata").GeneratorResolvedSource | undefined>;
|
|
2
|
+
import type { GeneratorSourceSelectionOptions, TailwindV4SourceOptions } from './types.js';
|
|
3
|
+
import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator/index.js';
|
|
4
|
+
export declare function resolveMatchingTailwindV4CssEntry(rawSource: string, file: string, sourceOptions: ReturnType<typeof resolveTailwindV4SourceOptionsFromRuntime>): Promise<import("./metadata.js").GeneratorResolvedSource | undefined>;
|
|
5
|
+
export declare function resolveMatchingTailwindV4CssSource(rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, sourceOptions: TailwindV4SourceOptions, selectionOptions?: GeneratorSourceSelectionOptions | undefined): Promise<import("./metadata.js").GeneratorResolvedSource | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { SourceSideCssEntryOptions } from '../source-files';
|
|
2
|
-
import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator';
|
|
3
|
-
import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan';
|
|
4
|
-
import type { InternalUserDefinedOptions } from '../../../../types';
|
|
1
|
+
import type { SourceSideCssEntryOptions } from '../source-files.js';
|
|
2
|
+
import type { resolveTailwindV4SourceOptionsFromRuntime } from '../../../../generator/index.js';
|
|
3
|
+
import type { TailwindSourceEntry } from '../../../../tailwindcss/source-scan.js';
|
|
4
|
+
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
5
5
|
export interface GeneratorSourceRuntimeState {
|
|
6
6
|
tailwindRuntime: InternalUserDefinedOptions['tailwindRuntime'];
|
|
7
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export type { GeneratorResolvedSource, GeneratorSourceMetadata } from './source-resolver/metadata';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export
|
|
1
|
+
export type { GeneratorResolvedSource, GeneratorSourceMetadata, GeneratorSourceRecord } from './source-resolver/metadata.js';
|
|
2
|
+
export { createGeneratorSourceRecord, getGeneratorSourceMetadata } from './source-resolver/metadata.js';
|
|
3
|
+
export { resolveCssSourceBase } from './source-resolver/postcss-source.js';
|
|
4
|
+
export { resolveGeneratorSource } from './source-resolver/resolve-source.js';
|
|
5
|
+
export { resolveGeneratorSources } from './source-resolver/resolve-sources.js';
|
|
6
|
+
export { resolveGeneratorSourceEntries } from './source-resolver/source-entries.js';
|
|
7
|
+
export type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './source-resolver/types.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { TailwindV4CssSource } from './source-resolver/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { TailwindV4CssSource } from './source-resolver/types.js';
|
|
3
|
+
import type { CompilationDependencyChange, SourceScope } from '../../../compiler/index.js';
|
|
4
|
+
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
5
|
+
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
5
6
|
export interface GenerateCssByGeneratorOptions {
|
|
6
7
|
opts: InternalUserDefinedOptions;
|
|
7
8
|
runtimeState: {
|
|
@@ -16,6 +17,13 @@ export interface GenerateCssByGeneratorOptions {
|
|
|
16
17
|
cssSources?: TailwindV4CssSource[] | undefined;
|
|
17
18
|
getSourceCandidatesForEntries?: ((entries: TailwindSourceEntry[] | undefined) => Set<string>) | undefined;
|
|
18
19
|
sourceCandidates?: Set<string> | undefined;
|
|
20
|
+
compilation?: {
|
|
21
|
+
changes?: CompilationDependencyChange[] | undefined;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
preserveDeletedCss: boolean;
|
|
24
|
+
scope: SourceScope;
|
|
25
|
+
} | undefined;
|
|
26
|
+
outputFile?: string | undefined;
|
|
19
27
|
styleHandler: InternalUserDefinedOptions['styleHandler'];
|
|
20
28
|
debug: (format: string, ...args: unknown[]) => void;
|
|
21
29
|
generatorPlatform?: string | undefined;
|
|
@@ -45,5 +53,6 @@ export interface GenerateCssByGeneratorResult {
|
|
|
45
53
|
preserve: boolean;
|
|
46
54
|
} | undefined;
|
|
47
55
|
rawCss?: string | undefined;
|
|
56
|
+
revision?: number | undefined;
|
|
48
57
|
} | undefined;
|
|
49
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { InternalUserDefinedOptions } from '../../../../types';
|
|
2
|
+
import type { InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
3
3
|
export declare function transformGeneratorUserCss(source: string, options: {
|
|
4
4
|
generatorTarget: string;
|
|
5
5
|
generatorStyleOptions: Partial<IStyleHandlerOptions>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { filterApplyOnlyGeneratedCss, normalizeEmptyTailwindCustomVariants, shouldFilterApplyOnlyGeneratedCss } from './user-css/apply-only';
|
|
2
|
-
export { removeTailwindV4GeneratedUserCssArtifacts } from './user-css/generated-cleanup';
|
|
3
|
-
export { isCommentOnlyCss, removeMiniProgramHoverSelectors, removeTailwindV4GeneratorAtRules, stripTailwindSourceMediaFragments, stripUnmatchedTailwindSourceMediaCloseFragments } from './user-css/source-fragments';
|
|
4
|
-
export { transformGeneratorUserCss } from './user-css/transform';
|
|
5
|
-
export { extractGeneratedCssForUserLayerSelectors, hasUserCssLayerBlocks, splitUserCssLayerBlocks } from './user-css/user-layers';
|
|
1
|
+
export { filterApplyOnlyGeneratedCss, normalizeEmptyTailwindCustomVariants, shouldFilterApplyOnlyGeneratedCss } from './user-css/apply-only.js';
|
|
2
|
+
export { removeTailwindV4GeneratedUserCssArtifacts } from './user-css/generated-cleanup.js';
|
|
3
|
+
export { isCommentOnlyCss, removeMiniProgramHoverSelectors, removeTailwindV4GeneratorAtRules, stripTailwindSourceMediaFragments, stripUnmatchedTailwindSourceMediaCloseFragments } from './user-css/source-fragments.js';
|
|
4
|
+
export { transformGeneratorUserCss } from './user-css/transform.js';
|
|
5
|
+
export { extractGeneratedCssForUserLayerSelectors, hasUserCssLayerBlocks, splitUserCssLayerBlocks } from './user-css/user-layers.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenerateCssByGeneratorOptions } from './types';
|
|
1
|
+
import type { GenerateCssByGeneratorOptions } from './types.js';
|
|
2
2
|
export interface ValidateCandidatesByGeneratorOptions extends Omit<GenerateCssByGeneratorOptions, 'runtime'> {
|
|
3
3
|
candidates: Set<string>;
|
|
4
4
|
generatedCssSources?: Iterable<string> | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { hasTailwindSourceDirectives, normalizeTailwindSourceForGenerator, removeTailwindSourceDirectives, resolveCssEntrySource, } from './generator-css/directives';
|
|
2
|
-
export { removeTailwindApplyRules, } from './generator-css/legacy-compat';
|
|
3
|
-
export { inheritLegacyUnitConvertedDeclarations, } from './generator-css/legacy-units';
|
|
4
|
-
export { isPureLocalCssImportWrapper, } from './generator-css/local-imports';
|
|
5
|
-
export { createCssAppend, hasTailwindGeneratedCss, hasTailwindGeneratedCssMarkers, removeTailwindGeneratedCssByBanner, splitGeneratorPlaceholderCssBySourceOrder, splitTailwindGeneratedCssByBanner, splitTailwindV4GeneratedCss, splitTailwindV4GeneratedCssBySourceOrder, stripGeneratorPlaceholderMarkers, stripTailwindBanner, stripTailwindBanners, } from './generator-css/markers';
|
|
6
|
-
export { generateCssByGenerator } from './generator-css/pipeline';
|
|
7
|
-
export { resolveGeneratorSource, } from './generator-css/source-resolver';
|
|
8
|
-
export type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult, } from './generator-css/types';
|
|
9
|
-
export { validateCandidatesByGenerator, } from './generator-css/validate';
|
|
1
|
+
export { hasTailwindSourceDirectives, normalizeTailwindSourceForGenerator, removeTailwindSourceDirectives, resolveCssEntrySource, } from './generator-css/directives.js';
|
|
2
|
+
export { removeTailwindApplyRules, } from './generator-css/legacy-compat.js';
|
|
3
|
+
export { inheritLegacyUnitConvertedDeclarations, } from './generator-css/legacy-units.js';
|
|
4
|
+
export { isPureLocalCssImportWrapper, } from './generator-css/local-imports.js';
|
|
5
|
+
export { createCssAppend, hasTailwindGeneratedCss, hasTailwindGeneratedCssMarkers, removeTailwindGeneratedCssByBanner, splitGeneratorPlaceholderCssBySourceOrder, splitTailwindGeneratedCssByBanner, splitTailwindV4GeneratedCss, splitTailwindV4GeneratedCssBySourceOrder, stripGeneratorPlaceholderMarkers, stripTailwindBanner, stripTailwindBanners, } from './generator-css/markers.js';
|
|
6
|
+
export { generateCssByGenerator } from './generator-css/pipeline.js';
|
|
7
|
+
export { resolveGeneratorSource, } from './generator-css/source-resolver.js';
|
|
8
|
+
export type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult, } from './generator-css/types.js';
|
|
9
|
+
export { validateCandidatesByGenerator, } from './generator-css/validate.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RuntimeCompilationSnapshot, RuntimeSnapshotEntry } from '../../../compiler/index.js';
|
|
2
|
+
export declare function createRuntimeEntries(snapshot: RuntimeCompilationSnapshot): RuntimeSnapshotEntry[];
|
|
3
|
+
export declare function collectChangedRuntimeFiles(snapshot: RuntimeCompilationSnapshot): Set<string>;
|
|
4
|
+
export declare function resolveEntryExtension(entry: RuntimeSnapshotEntry): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const MAX_RESTORED_CANDIDATE_CACHE_ENTRIES = 8192;
|
|
2
|
+
export declare const MAX_RESTORED_CANDIDATE_CACHE_CODE_UNITS = 1048576;
|
|
3
|
+
export declare function getRestoredCandidateCacheStats(escapeFragments: string[]): {
|
|
4
|
+
codeUnitCount: number;
|
|
5
|
+
entryCount: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function createEscapeFragments(escapeMap: Record<string, string>): string[];
|
|
8
|
+
export declare function collectEscapedRuntimeCandidates(source: string, escapeMap: Record<string, string>, escapeFragments: string[]): Set<string>;
|
|
9
|
+
export declare function collectStrictEscapedRuntimeCandidates(source: string, escapeMap: Record<string, string>, escapeFragments: string[]): Set<string>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RuntimeCompilationSnapshot } from '../../compiler/index.js';
|
|
2
|
+
import type { TailwindcssRuntimeLike } from '../../types/index.js';
|
|
3
|
+
import type { IArbitraryValues } from '../../types/shared.js';
|
|
4
|
+
import { extractRawCandidatesWithPositions, extractValidCandidates } from '@tailwindcss-mangle/engine';
|
|
5
|
+
type ExtractValidCandidatesOptions = Parameters<typeof extractValidCandidates>[0];
|
|
6
|
+
type MemoryExtractValidCandidatesOptions = ExtractValidCandidatesOptions & {
|
|
7
|
+
content?: string;
|
|
8
|
+
extension?: string;
|
|
9
|
+
};
|
|
10
|
+
type ExtractValidCandidatesFn = (options?: MemoryExtractValidCandidatesOptions) => Promise<string[]>;
|
|
11
|
+
type ExtractRawCandidateResult = Awaited<ReturnType<typeof extractRawCandidatesWithPositions>>;
|
|
12
|
+
type ExtractRawCandidatesFn = (content: string, extension?: string, options?: {
|
|
13
|
+
bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
|
|
14
|
+
}) => Promise<ExtractRawCandidateResult>;
|
|
15
|
+
export interface RuntimeClassSetManager {
|
|
16
|
+
sync: (runtime: TailwindcssRuntimeLike, snapshot: RuntimeCompilationSnapshot, options?: RuntimeClassSetSyncOptions) => Promise<Set<string>>;
|
|
17
|
+
reset: () => Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface RuntimeClassSetSyncOptions {
|
|
20
|
+
baseClassSet?: Set<string> | undefined;
|
|
21
|
+
skipInitialFullScanWithBase?: boolean | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface CreateRuntimeClassSetManagerOptions {
|
|
24
|
+
bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
|
|
25
|
+
escapeMap?: Record<string, string> | undefined;
|
|
26
|
+
extractCandidates?: ExtractValidCandidatesFn;
|
|
27
|
+
extractRawCandidates?: ExtractRawCandidatesFn;
|
|
28
|
+
}
|
|
29
|
+
export declare function createRuntimeClassSetManager(options?: CreateRuntimeClassSetManagerOptions): RuntimeClassSetManager;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeEntryType } from '../../compiler/index.js';
|
|
2
|
+
export interface RuntimeEntryMatchers {
|
|
3
|
+
cssMatcher: (file: string) => boolean;
|
|
4
|
+
htmlMatcher: (file: string) => boolean;
|
|
5
|
+
jsMatcher: (file: string) => boolean;
|
|
6
|
+
wxsMatcher: (file: string) => boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function classifyRuntimeEntry(file: string, matchers: RuntimeEntryMatchers): RuntimeEntryType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeEntryType } from '../../compiler/index.js';
|
|
2
|
+
export declare function summarizeStringDiff(previous: string, next: string): string;
|
|
3
|
+
export declare function createLinkedImpactSignature(entry: string, linkedImpactsByEntry: Map<string, Set<string>>, sourceHashByFile: Map<string, string>): string | undefined;
|
|
4
|
+
export declare function createJsHashSalt(runtimeSignature: string, linkedImpactSignature?: string): string;
|
|
5
|
+
export declare function createStableTextSignature(input: string): string;
|
|
6
|
+
export declare function createCandidateSignature(candidates: Set<string>): string;
|
|
7
|
+
export declare function getSnapshotHash(snapshotMap: Map<string, string>, file: string, fallback: string): string;
|
|
8
|
+
export declare function hasRuntimeAffectingSourceChanges(changedByType: Record<RuntimeEntryType, Set<string>>): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../tailwindcss/source-scan.js';
|
|
2
|
+
export interface SourceCandidateScanRoot {
|
|
3
|
+
root: string;
|
|
4
|
+
entries?: TailwindSourceEntry[] | undefined;
|
|
5
|
+
explicit?: boolean | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface SourceCandidateScanSignatureInput {
|
|
8
|
+
inlineCandidates?: TailwindInlineSourceCandidates | undefined;
|
|
9
|
+
outDir?: string | undefined;
|
|
10
|
+
roots: SourceCandidateScanRoot[];
|
|
11
|
+
scanAllSources?: boolean | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare function createSourceCandidateScanSignature(input: SourceCandidateScanSignatureInput): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceCandidateCollector, SourceCandidateCollectorOptions } from './types-and-cache';
|
|
1
|
+
import type { SourceCandidateCollector, SourceCandidateCollectorOptions } from './types-and-cache.js';
|
|
2
2
|
export declare function createSourceCandidateCollector(options?: SourceCandidateCollectorOptions): SourceCandidateCollector;
|
|
3
3
|
export declare function getSourceCandidateContentCacheStatsForTest(): {
|
|
4
4
|
max: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
2
|
+
interface ResolveSourceCandidateScanFilesOptions {
|
|
3
|
+
entries?: TailwindSourceEntry[] | undefined;
|
|
4
|
+
explicit?: boolean | undefined;
|
|
5
|
+
filter: (id: string) => boolean;
|
|
6
|
+
outDir?: string | undefined;
|
|
7
|
+
root: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function resolveSourceCandidateScanFiles(options: ResolveSourceCandidateScanFilesOptions): Promise<string[]>;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { extractScriptStringCandidates } from '../../../tailwindcss/candidates';
|
|
1
|
+
export { extractScriptStringCandidates } from '../../../tailwindcss/candidates.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SourceCandidateCollectorOptions, SourceCandidateStore } from './types-and-cache';
|
|
1
|
+
import type { SourceCandidateCollectorOptions, SourceCandidateStore } from './types-and-cache.js';
|
|
2
2
|
export declare function createSourceCandidateStore(options?: SourceCandidateCollectorOptions): SourceCandidateStore;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../../tailwindcss/source-scan';
|
|
2
|
-
import type { ICustomAttributesEntities } from '../../../types';
|
|
3
|
-
import type { IArbitraryValues } from '../../../types/shared';
|
|
1
|
+
import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
2
|
+
import type { ICustomAttributesEntities } from '../../../types/index.js';
|
|
3
|
+
import type { IArbitraryValues } from '../../../types/shared.js';
|
|
4
4
|
import { LRUCache } from 'lru-cache';
|
|
5
5
|
export interface SourceCandidateStore {
|
|
6
6
|
syncSource: (id: string, source: string) => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { clearSourceCandidateContentCacheForTest, createSourceCandidateCollector, getSourceCandidateContentCacheStatsForTest } from './source-candidates/collector.js';
|
|
2
|
+
export { createSourceCandidateStore } from './source-candidates/store.js';
|
|
3
|
+
export { isSourceCandidateRequest } from './source-candidates/types-and-cache.js';
|
|
4
|
+
export type { SourceCandidateChange, SourceCandidateCollector, SourceCandidateCollectorOptions, SourceCandidateCollectorSnapshot, SourceCandidateFilterOptions, SourceCandidateStore } from './source-candidates/types-and-cache.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
|
|
2
|
+
import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
3
|
+
import type { UserDefinedOptions } from '../../../types/index.js';
|
|
4
|
+
export interface ResolvedTailwindV4CssEntries {
|
|
5
|
+
entries: TailwindSourceEntry[];
|
|
6
|
+
explicit: boolean;
|
|
7
|
+
includesPreflight: boolean;
|
|
8
|
+
inlineCandidates: TailwindInlineSourceCandidates;
|
|
9
|
+
dependencies: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare function mergeTailwindInlineSourceCandidates(allInlineCandidates: Array<TailwindInlineSourceCandidates | undefined>): TailwindInlineSourceCandidates | undefined;
|
|
12
|
+
export declare function resolveTailwindV4EntriesFromCss(css: string, base: string): Promise<ResolvedTailwindV4CssEntries | undefined>;
|
|
13
|
+
export declare function resolveTailwindV4CssDependencies(css: string, base: string): Promise<string[]>;
|
|
14
|
+
export declare function collectExistingCssEntries(options: UserDefinedOptions): string[];
|
|
15
|
+
export declare function resolveTailwindV4EntriesFromCssCached(css: string, base: string): Promise<ResolvedTailwindV4CssEntries | undefined>;
|
|
16
|
+
export declare function resolveTailwindConfigEntriesFromCssCached(css: string, base: string): Promise<ResolvedTailwindV4CssEntries | undefined>;
|
|
17
|
+
export declare function discoverTailwindV4CssEntries(root: string, outDir: string | undefined): Promise<string[]>;
|
|
18
|
+
export declare function collectConfiguredCssSources(options: UserDefinedOptions): TailwindV4CssSource[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TailwindInlineSourceCandidates, TailwindSourceEntry } from '../../tailwindcss/source-scan.js';
|
|
2
|
+
import type { TailwindcssRuntimeLike, UserDefinedOptions } from '../../types/index.js';
|
|
3
|
+
export { discoverTailwindV4CssEntries, resolveTailwindConfigEntriesFromCssCached, resolveTailwindV4CssDependencies, resolveTailwindV4EntriesFromCss, resolveTailwindV4EntriesFromCssCached, } from './source-scan/css-entries.js';
|
|
4
|
+
export type { ResolvedTailwindV4CssEntries } from './source-scan/css-entries.js';
|
|
5
|
+
export interface ResolvedSourceScan {
|
|
6
|
+
dependencies?: string[] | undefined;
|
|
7
|
+
entries?: TailwindSourceEntry[] | undefined;
|
|
8
|
+
explicit?: boolean | undefined;
|
|
9
|
+
inlineCandidates?: TailwindInlineSourceCandidates | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface ResolveSourceScanOptions {
|
|
12
|
+
root?: string | undefined;
|
|
13
|
+
outDir?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function resolveSourceScanEntries(options: UserDefinedOptions, runtime: TailwindcssRuntimeLike, scanOptions?: ResolveSourceScanOptions): Promise<ResolvedSourceScan | undefined>;
|
|
16
|
+
export declare function createSourceScanMatcher(entries: TailwindSourceEntry[] | undefined): ((file: string) => boolean) | undefined;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult } from './generator-css';
|
|
2
|
-
import type {
|
|
1
|
+
import type { GenerateCssByGeneratorOptions, GenerateCssByGeneratorResult } from './generator-css.js';
|
|
2
|
+
import type { CompilationDependencyChange, CompilerShadowReport, CssStage, GenerationArtifact, SourceScope } from '../../compiler/index.js';
|
|
3
|
+
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
3
4
|
export interface TailwindV4GenerationCoreInput extends GenerateCssByGeneratorOptions {
|
|
5
|
+
compilationChanges?: CompilationDependencyChange[] | undefined;
|
|
4
6
|
frameworkPostcssOwner?: InternalUserDefinedOptions | undefined;
|
|
5
|
-
|
|
7
|
+
cssStage?: CssStage | undefined;
|
|
6
8
|
outputFile?: string | undefined;
|
|
9
|
+
onCompilerShadowReport?: ((report: CompilerShadowReport) => void) | undefined;
|
|
10
|
+
scope?: SourceScope | undefined;
|
|
7
11
|
sourceCandidates?: Set<string> | undefined;
|
|
8
12
|
}
|
|
9
13
|
export interface TailwindV4GenerationCoreResult extends GenerateCssByGeneratorResult {
|
|
14
|
+
artifact?: GenerationArtifact | undefined;
|
|
10
15
|
classSet: Set<string>;
|
|
11
16
|
dependencies: string[];
|
|
12
17
|
metadata: NonNullable<GenerateCssByGeneratorResult['metadata']>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OutputAsset, OutputChunk } from 'rollup';
|
|
2
|
-
import type { LinkedJsModuleResult } from '../../types';
|
|
2
|
+
import type { LinkedJsModuleResult } from '../../types/index.js';
|
|
3
3
|
export interface OutputEntry {
|
|
4
4
|
fileName: string;
|
|
5
5
|
output: OutputAsset | OutputChunk;
|
|
@@ -1,49 +1,22 @@
|
|
|
1
1
|
import type { OutputAsset, OutputChunk } from 'rollup';
|
|
2
|
-
import type { OutputEntry } from './bundle-entries';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
2
|
+
import type { OutputEntry } from './bundle-entries.js';
|
|
3
|
+
import type { RuntimeCompilationBuildState, RuntimeCompilationSnapshot, RuntimeEntryType, RuntimeSnapshotEntry, UpdateRuntimeCompilationBuildStateOptions } from '../../compiler/index.js';
|
|
4
|
+
import type { InternalUserDefinedOptions } from '../../types/index.js';
|
|
5
|
+
export type EntryType = RuntimeEntryType;
|
|
6
|
+
export interface BundleStateEntry extends RuntimeSnapshotEntry {
|
|
7
7
|
output: OutputAsset | OutputChunk;
|
|
8
|
-
source: string;
|
|
9
|
-
type: EntryType;
|
|
10
8
|
}
|
|
11
|
-
export interface
|
|
12
|
-
html: Set<string>;
|
|
13
|
-
js: Set<string>;
|
|
14
|
-
css: Set<string>;
|
|
15
|
-
}
|
|
16
|
-
export interface BundleSnapshot {
|
|
17
|
-
entries: BundleStateEntry[];
|
|
9
|
+
export interface BundleSnapshot extends RuntimeCompilationSnapshot<BundleStateEntry> {
|
|
18
10
|
jsEntries: Map<string, OutputEntry>;
|
|
19
|
-
sourceHashByFile: Map<string, string>;
|
|
20
|
-
runtimeAffectingSignatureByFile: Map<string, string>;
|
|
21
|
-
runtimeAffectingHashByFile: Map<string, string>;
|
|
22
|
-
hasOmittedKnownFiles: boolean;
|
|
23
|
-
changedByType: Record<EntryType, Set<string>>;
|
|
24
|
-
runtimeAffectingChangedByType: Record<EntryType, Set<string>>;
|
|
25
|
-
processFiles: ProcessFileSets;
|
|
26
|
-
linkedImpactsByEntry: Map<string, Set<string>>;
|
|
27
|
-
}
|
|
28
|
-
export interface BundleBuildState {
|
|
29
|
-
iteration: number;
|
|
30
|
-
sourceHashByFile: Map<string, string>;
|
|
31
|
-
runtimeAffectingSignatureByFile: Map<string, string>;
|
|
32
|
-
runtimeAffectingHashByFile: Map<string, string>;
|
|
33
|
-
linkedByEntry: Map<string, Set<string>>;
|
|
34
|
-
dependentsByLinkedFile: Map<string, Set<string>>;
|
|
35
|
-
bundleMarkupCandidatesByFile: Map<string, Set<string>>;
|
|
36
|
-
generatorCandidateSignature?: string | undefined;
|
|
37
|
-
}
|
|
38
|
-
interface UpdateBundleBuildStateOptions {
|
|
39
|
-
incremental?: boolean;
|
|
40
11
|
}
|
|
41
|
-
|
|
12
|
+
export type BundleBuildState = RuntimeCompilationBuildState;
|
|
13
|
+
export interface BuildBundleSnapshotOptions {
|
|
42
14
|
hasOmittedKnownFiles?: boolean | undefined;
|
|
15
|
+
removedFiles?: Iterable<string> | undefined;
|
|
43
16
|
}
|
|
17
|
+
export declare function runWithRemovedBundleFiles<T>(removedFiles: Iterable<string>, run: () => Promise<T>): Promise<T>;
|
|
44
18
|
export declare function createBundleBuildState(): BundleBuildState;
|
|
45
19
|
export declare function classifyBundleEntry(file: string, opts: InternalUserDefinedOptions): EntryType;
|
|
46
20
|
export declare function buildBundleSnapshot(bundle: Record<string, OutputAsset | OutputChunk>, opts: InternalUserDefinedOptions, outDir: string, state: BundleBuildState, forceAll?: boolean, options?: BuildBundleSnapshotOptions): BundleSnapshot;
|
|
47
21
|
export declare function buildBundleSnapshotForBuild(bundle: Record<string, OutputAsset | OutputChunk>, opts: InternalUserDefinedOptions, outDir: string): BundleSnapshot;
|
|
48
|
-
export declare function updateBundleBuildState(state: BundleBuildState, snapshot: BundleSnapshot, linkedByEntry: Map<string, Set<string>>, options?:
|
|
49
|
-
export {};
|
|
22
|
+
export declare function updateBundleBuildState(state: BundleBuildState, snapshot: BundleSnapshot, linkedByEntry: Map<string, Set<string>>, options?: UpdateRuntimeCompilationBuildStateOptions): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OutputAsset } from 'rollup';
|
|
2
|
+
export type ViteCssAssetIdentityKind = 'user' | 'generator-placeholder' | 'bundler-generated';
|
|
3
|
+
export interface ViteCssAssetIdentity {
|
|
4
|
+
kind: ViteCssAssetIdentityKind;
|
|
5
|
+
sourceFile?: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateViteCssAssetIdentityResolverOptions {
|
|
8
|
+
generatorPlaceholderFile: string;
|
|
9
|
+
isKnownProcessedSource: (file: string) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function createViteCssAssetIdentityResolver(options: CreateViteCssAssetIdentityResolverOptions): (asset: OutputAsset, file?: string) => ViteCssAssetIdentity;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
2
|
import type { OutputAsset } from 'rollup';
|
|
3
3
|
import type { ResolvedConfig } from 'vite';
|
|
4
|
-
import type { ViteFrameworkCssPipelineContext, ViteFrameworkCssPipelineStrategy } from '../shared/framework-strategy';
|
|
5
|
-
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan';
|
|
6
|
-
import type { InternalUserDefinedOptions } from '../../../types';
|
|
4
|
+
import type { ViteFrameworkCssPipelineContext, ViteFrameworkCssPipelineStrategy } from '../shared/framework-strategy.js';
|
|
5
|
+
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
6
|
+
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
7
7
|
interface RememberedMainCssSource {
|
|
8
8
|
rawSource: string;
|
|
9
9
|
sourceFile: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createViteCssFinalizerOutputPlugin } from './css-finalizer/plugin';
|
|
1
|
+
export { createViteCssFinalizerOutputPlugin } from './css-finalizer/plugin.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RememberedCssSource } from './generate-bundle';
|
|
1
|
+
import type { RememberedCssSource } from './generate-bundle.js';
|
|
2
2
|
export declare function normalizeCssSourceIdentity(sourceFile: string): string;
|
|
3
3
|
export declare function shouldCollectTransformedSourceCandidates(id: string): boolean;
|
|
4
4
|
export declare function createViteCssMemory(options: {
|
|
@@ -33,7 +33,6 @@ export declare function createViteCssMemory(options: {
|
|
|
33
33
|
};
|
|
34
34
|
rememberCssSource: (entry: RememberedCssSource, cssRuntimeSignature?: string) => void;
|
|
35
35
|
rememberKnownSfcSource: (id: string, code: string) => void;
|
|
36
|
-
refreshRememberedCssSource: (remembered: RememberedCssSource) => Promise<RememberedCssSource | undefined>;
|
|
37
36
|
refreshRememberedCssSourceByCurrentFile: (sourceFile: string) => Promise<void>;
|
|
38
37
|
refreshRememberedCssSourceBySourceFile: (sourceFile: string, rawSource: string) => void;
|
|
39
38
|
setRememberedCssSignature: (file: string, cssRuntimeSignature: string) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
export declare function createGenericVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
export declare function createGenericVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("../../index.js").WeappTailwindcssVitePlugin[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViteFrameworkCssPipelineStrategy } from '../../shared/framework-strategy';
|
|
2
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
1
|
+
import type { ViteFrameworkCssPipelineStrategy } from '../../shared/framework-strategy.js';
|
|
2
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
3
3
|
export declare const taroCssPipelineStrategy: ViteFrameworkCssPipelineStrategy;
|
|
4
4
|
export declare function createTaroVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): any[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViteFrameworkCssPipelineStrategy } from '../../shared/framework-strategy';
|
|
2
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
1
|
+
import type { ViteFrameworkCssPipelineStrategy } from '../../shared/framework-strategy.js';
|
|
2
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
3
3
|
export declare const uniAppCssPipelineStrategy: ViteFrameworkCssPipelineStrategy;
|
|
4
|
-
export declare function createUniAppVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("
|
|
4
|
+
export declare function createUniAppVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("../../index.js").WeappTailwindcssVitePlugin[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViteFrameworkCssPipelineStrategy } from '../../shared/framework-strategy';
|
|
2
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
1
|
+
import type { ViteFrameworkCssPipelineStrategy } from '../../shared/framework-strategy.js';
|
|
2
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
3
3
|
export declare const uniAppXCssPipelineStrategy: ViteFrameworkCssPipelineStrategy;
|
|
4
|
-
export declare function createUniAppXVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("
|
|
4
|
+
export declare function createUniAppXVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("../../index.js").WeappTailwindcssVitePlugin[] | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
export declare function createWeappVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
export declare function createWeappVitePlugins(options?: UserDefinedOptions | InternalUserDefinedOptions): import("../../index.js").WeappTailwindcssVitePlugin[] | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OutputAsset, OutputChunk } from 'rollup';
|
|
2
|
+
import type { AssetEmissionPlan } from '../../../compiler/index.js';
|
|
3
|
+
export interface ApplyViteAssetEmissionPlanOptions {
|
|
4
|
+
bundle: Record<string, OutputAsset | OutputChunk>;
|
|
5
|
+
emitOrReplayAsset?: ((file: string, source: string) => OutputAsset | undefined) | undefined;
|
|
6
|
+
writeTargets?: ReadonlyMap<string, OutputAsset> | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare function applyViteAssetEmissionPlan(plan: AssetEmissionPlan, options: ApplyViteAssetEmissionPlanOptions): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BundleSnapshot } from '../bundle-state';
|
|
2
|
-
import type { SourceCandidateFilterOptions } from '../source-candidates';
|
|
3
|
-
import type { createTransformFilter } from './transform-filter';
|
|
4
|
-
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan';
|
|
1
|
+
import type { BundleSnapshot } from '../bundle-state.js';
|
|
2
|
+
import type { SourceCandidateFilterOptions } from '../source-candidates.js';
|
|
3
|
+
import type { createTransformFilter } from './transform-filter.js';
|
|
4
|
+
import type { TailwindSourceEntry } from '../../../tailwindcss/source-scan.js';
|
|
5
5
|
interface CollectBundleMarkupCandidatesOptions {
|
|
6
6
|
extractSourceCandidates?: ((file: string, source: string) => Promise<Set<string>>) | undefined;
|
|
7
7
|
previousCandidatesByFile?: ReadonlyMap<string, Set<string>> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
|
|
2
|
-
import type { InternalUserDefinedOptions } from '../../../types';
|
|
2
|
+
import type { InternalUserDefinedOptions } from '../../../types/index.js';
|
|
3
3
|
export interface ConfiguredCssSourceEntry {
|
|
4
4
|
file: string;
|
|
5
5
|
source: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { OutputAsset } from 'rollup';
|
|
2
|
-
import type { GenerateBundleThis } from './types';
|
|
2
|
+
import type { GenerateBundleThis } from './types.js';
|
|
3
3
|
export declare function createCssAssetEmitter(context: Pick<GenerateBundleThis, 'emitFile'>, bundle?: Record<string, OutputAsset | unknown> | undefined): (fileName: string, source: string) => OutputAsset | undefined;
|
|
4
4
|
export declare function resolveAssetSourceFile(asset: OutputAsset, fallbackFile: string): string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { OutputAsset } from 'rollup';
|
|
2
|
+
import type { RememberedCssSource } from './types.js';
|
|
3
|
+
import type { ICreateCacheReturnType } from '../../../cache/index.js';
|
|
4
|
+
export interface ApplyViteCssCacheResultOptions {
|
|
5
|
+
applyCssResult: (source: string) => void;
|
|
6
|
+
cssRuntimeAffectingHash: string;
|
|
7
|
+
generatorRawSource: string;
|
|
8
|
+
generatorSourceFile: string;
|
|
9
|
+
lastCssResultByFile: Map<string, string>;
|
|
10
|
+
lastCssSourceHashByFile: Map<string, string>;
|
|
11
|
+
markCssAssetProcessed?: ((asset: OutputAsset, file?: string) => void) | undefined;
|
|
12
|
+
originalSource: OutputAsset;
|
|
13
|
+
outputFile: string;
|
|
14
|
+
rememberedCssRuntimeSignature: string;
|
|
15
|
+
rememberedSourcesCount: number;
|
|
16
|
+
rememberCssSource?: ((entry: RememberedCssSource, cssRuntimeSignature?: string) => void) | undefined;
|
|
17
|
+
vitePipelineCssInjectionOutputFile: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function applyViteCssCacheResult(options: ApplyViteCssCacheResultOptions, source: string): void;
|
|
20
|
+
export interface ProcessViteCssCacheTaskOptions {
|
|
21
|
+
applyResult: (source: string) => void | Promise<void>;
|
|
22
|
+
cache: ICreateCacheReturnType;
|
|
23
|
+
cacheKey: string;
|
|
24
|
+
hashKey: string;
|
|
25
|
+
onCacheHit: () => void;
|
|
26
|
+
onSharedCacheHit: () => void;
|
|
27
|
+
onSharedResult: (source: string) => void;
|
|
28
|
+
onTransformResult: (source: string) => void;
|
|
29
|
+
sharedCacheKey?: string | undefined;
|
|
30
|
+
sharedResultCache: Map<string, Promise<string>>;
|
|
31
|
+
taskHash: string;
|
|
32
|
+
transform: () => Promise<string>;
|
|
33
|
+
}
|
|
34
|
+
export declare function processViteCssCacheTask(options: ProcessViteCssCacheTaskOptions): Promise<void>;
|