weapp-tailwindcss 5.1.16 → 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 +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 +3 -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-PZXBqrAJ.cjs} +31 -93
- package/dist/{context-JzwzSX36.mjs → context-oTkxC5aZ.js} +22 -11
- 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-C8D5cnbe.cjs} +164 -33
- package/dist/{generator-Bv7myuhY.mjs → generator-CDdzqf1S.js} +155 -30
- package/dist/generator.cjs +12 -0
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +2 -12
- package/dist/{gulp-Q1wITegn.js → gulp-Cjcss8T_.cjs} +157 -103
- package/dist/{gulp-CKSklPlH.mjs → gulp-DNXQvDUw.js} +141 -90
- package/dist/gulp.cjs +5 -0
- package/dist/gulp.d.ts +4 -4
- package/dist/gulp.js +2 -5
- package/dist/{hmr-timing-BXg7nI8N.mjs → hmr-timing-CuJwQzDc.js} +3824 -1988
- 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.d.ts +1 -1
- package/dist/source-candidate-scan-signature-B0S7f5P7.js +421 -0
- package/dist/source-candidate-scan-signature-BmSuoxR9.cjs +555 -0
- 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/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-B4phC0kB.js → tailwindcss-Cs94gJgf.cjs} +9 -769
- package/dist/{tailwindcss-BTcXX8Ka.mjs → tailwindcss-D7TGiZR2.js} +22 -22
- 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-D7MuR5ZF.cjs} +3468 -2059
- package/dist/{vite-BwQWl9ft.mjs → vite-BI1TeUPO.js} +5968 -4456
- package/dist/{vite-DhVnXvAQ.js → vite-CBzmUTu-.cjs} +6159 -4672
- 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-Dao6bWEj.cjs} +208 -954
- package/dist/{webpack-Bo1QrFPf.mjs → webpack-dAY9h8r8.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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { OutputAsset, OutputChunk } from 'rollup';
|
|
2
|
+
export interface ViteSourceOutputRemovalConsumer {
|
|
3
|
+
consume: (currentBundleFiles: Iterable<string>) => string[];
|
|
4
|
+
}
|
|
5
|
+
export interface ViteSourceOutputRelationOwner {
|
|
6
|
+
createRemovalConsumer: () => ViteSourceOutputRemovalConsumer;
|
|
7
|
+
dispose: () => void;
|
|
8
|
+
getStats: () => {
|
|
9
|
+
consumers: number;
|
|
10
|
+
dirtySources: number;
|
|
11
|
+
outputs: number;
|
|
12
|
+
pendingOutputs: number;
|
|
13
|
+
sources: number;
|
|
14
|
+
};
|
|
15
|
+
getOutputSources: (outputFile: string) => Set<string>;
|
|
16
|
+
getOwnedOutputs: (sourceFile: string) => Set<string>;
|
|
17
|
+
observeSource: (sourceFile: string) => void;
|
|
18
|
+
recordBundle: (bundle: Record<string, OutputAsset | OutputChunk>) => void;
|
|
19
|
+
recordOwnedOutput: (sourceFile: string, outputFile: string) => void;
|
|
20
|
+
removeSource: (sourceFile: string) => Set<string>;
|
|
21
|
+
}
|
|
22
|
+
export declare function createViteSourceOutputRelationOwner(): ViteSourceOutputRelationOwner;
|
|
23
|
+
export declare function getActiveViteSourceOutputRelationOwner(): ViteSourceOutputRelationOwner | undefined;
|
|
24
|
+
export declare function withViteSourceOutputRelationOwner<T>(owner: ViteSourceOutputRelationOwner, run: () => T): T;
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { UserDefinedOptions } from '../../../types';
|
|
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 resolveViteTailwindV4CssDependencies(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[];
|
|
1
|
+
export { collectConfiguredCssSources, collectExistingCssEntries, discoverTailwindV4CssEntries, mergeTailwindInlineSourceCandidates, resolveTailwindConfigEntriesFromCssCached, resolveTailwindV4EntriesFromCss, resolveTailwindV4EntriesFromCssCached, resolveTailwindV4CssDependencies as resolveViteTailwindV4CssDependencies, } from '../../shared/source-scan/css-entries.js';
|
|
2
|
+
export type { ResolvedTailwindV4CssEntries } from '../../shared/source-scan/css-entries.js';
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { discoverTailwindV4CssEntries, resolveTailwindConfigEntriesFromCssCached, resolveTailwindV4EntriesFromCss, resolveTailwindV4EntriesFromCssCached, resolveViteTailwindV4CssDependencies, } from './source-scan/css-entries';
|
|
4
|
-
export type { ResolvedTailwindV4CssEntries } from './source-scan/css-entries';
|
|
5
|
-
export interface ResolvedViteSourceScan {
|
|
6
|
-
dependencies?: string[] | undefined;
|
|
7
|
-
entries?: TailwindSourceEntry[] | undefined;
|
|
8
|
-
explicit?: boolean | undefined;
|
|
9
|
-
inlineCandidates?: TailwindInlineSourceCandidates | undefined;
|
|
10
|
-
}
|
|
11
|
-
interface ResolveViteSourceScanOptions {
|
|
12
|
-
root?: string | undefined;
|
|
13
|
-
outDir?: string | undefined;
|
|
14
|
-
}
|
|
15
|
-
export declare function resolveViteSourceScanEntries(options: UserDefinedOptions, runtime: TailwindcssRuntimeLike, scanOptions?: ResolveViteSourceScanOptions): Promise<ResolvedViteSourceScan | undefined>;
|
|
16
|
-
export declare function createViteSourceScanMatcher(entries: TailwindSourceEntry[] | undefined): ((file: string) => boolean) | undefined;
|
|
1
|
+
export { createSourceScanMatcher as createViteSourceScanMatcher, discoverTailwindV4CssEntries, resolveTailwindConfigEntriesFromCssCached, resolveTailwindV4EntriesFromCss, resolveTailwindV4EntriesFromCssCached, resolveSourceScanEntries as resolveViteSourceScanEntries, resolveTailwindV4CssDependencies as resolveViteTailwindV4CssDependencies, } from '../shared/source-scan.js';
|
|
2
|
+
export type { ResolvedTailwindV4CssEntries, ResolvedSourceScan as ResolvedViteSourceScan, } from '../shared/source-scan.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
files: StaticContentValue;
|
|
3
|
-
};
|
|
4
|
-
export declare function readStaticConfigContent(configPath: string): StaticContentValue | undefined;
|
|
5
|
-
export {};
|
|
1
|
+
export { readStaticConfigContent } from '../shared/static-config-content.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, IStyleHandlerOptions } from '../../types';
|
|
1
|
+
import type { InternalUserDefinedOptions, IStyleHandlerOptions } from '../../types/index.js';
|
|
2
2
|
export declare function resolveUniAppXNativeCssHandlerOptions(opts: Pick<InternalUserDefinedOptions, 'appType' | 'generator' | 'platform' | 'cssOptions' | 'uniAppX'>): Partial<IStyleHandlerOptions>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ViteFrameworkCssPipelineContext, ViteFrameworkCssPipelineStrategy } from './shared/framework-strategy';
|
|
1
|
+
import type { ViteFrameworkCssPipelineContext, ViteFrameworkCssPipelineStrategy } from './shared/framework-strategy.js';
|
|
2
2
|
export declare function shouldApplyViteWebCssCompat(context: ViteFrameworkCssPipelineContext, strategy: ViteFrameworkCssPipelineStrategy | undefined): boolean;
|
|
3
3
|
export declare function resolveViteWebCssCompatOptions(context: ViteFrameworkCssPipelineContext): import("@weapp-tailwindcss/postcss").WebCssCompatUserOptions | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { sources as WebpackSources } from 'webpack';
|
|
2
|
+
import type { AssetEmissionPlan } from '../../../../compiler/index.js';
|
|
3
|
+
export type WebpackSourceLike = string | WebpackSources.Source;
|
|
4
|
+
export interface WebpackAssetCompilationLike {
|
|
5
|
+
deleteAsset?: ((file: string) => void) | undefined;
|
|
6
|
+
emitAsset?: ((file: string, source: WebpackSources.Source) => void) | undefined;
|
|
7
|
+
getAsset: (file: string) => {
|
|
8
|
+
source: {
|
|
9
|
+
source: () => unknown;
|
|
10
|
+
};
|
|
11
|
+
} | undefined;
|
|
12
|
+
updateAsset: (file: string, source: WebpackSources.Source) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function applyWebpackAssetEmissionPlan(plan: AssetEmissionPlan<WebpackSourceLike>, options: {
|
|
15
|
+
compilation: WebpackAssetCompilationLike;
|
|
16
|
+
ConcatSource: new (source: string) => WebpackSources.Source;
|
|
17
|
+
writeMode?: 'update' | 'upsert' | undefined;
|
|
18
|
+
}): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers';
|
|
2
|
-
import type { WebpackCssHandlerOptions } from './pipeline-helpers';
|
|
1
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers.js';
|
|
2
|
+
import type { WebpackCssHandlerOptions } from './pipeline-helpers.js';
|
|
3
3
|
export declare function createWebpackCssSourceResolvers(options: {
|
|
4
4
|
activeWebpackAssetResourceFiles: ReadonlySet<string>;
|
|
5
5
|
appType: SetupWebpackV5ProcessAssetsHookOptions['appType'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './pipeline-helpers';
|
|
1
|
+
export * from './pipeline-helpers.js';
|
|
2
2
|
export declare function finalizeWebpackProcessAssets(context: any): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { WebpackCssAssetTaskContext } from './processed-css-task';
|
|
1
|
+
import type { WebpackCssAssetTaskContext } from './processed-css-task.js';
|
|
2
2
|
export declare function processWebpackGeneratedCssAsset(element: any, context: WebpackCssAssetTaskContext): Promise<void>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Compiler, sources as WebpackSources } from 'webpack';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
2
|
+
import type { RuntimeClassSetManager } from '../../../shared/runtime-class-set.js';
|
|
3
|
+
import type { WebpackGeneratedCssRegistration } from '../../loaders/runtime-registry.js';
|
|
4
|
+
import type { WebpackAssetCompilationLike, WebpackSourceLike } from './asset-emission-plan.js';
|
|
5
|
+
import type { RuntimeCompilationBuildState, RuntimeCompilationSnapshot, RuntimeSnapshotEntry } from '../../../../compiler/index.js';
|
|
6
|
+
import type { AppType, InternalUserDefinedOptions } from '../../../../types/index.js';
|
|
7
|
+
export type { WebpackAssetCompilationLike, WebpackSourceLike } from './asset-emission-plan.js';
|
|
6
8
|
export interface SetupWebpackV5ProcessAssetsHookOptions {
|
|
7
9
|
compiler: Compiler;
|
|
8
10
|
options: InternalUserDefinedOptions;
|
|
@@ -22,7 +24,7 @@ export interface SetupWebpackV5ProcessAssetsHookOptions {
|
|
|
22
24
|
consumeRuntimeRefreshRequirement: () => void;
|
|
23
25
|
isWatchMode?: (() => boolean) | undefined;
|
|
24
26
|
getWatchChangedFiles?: (() => Iterable<string>) | undefined;
|
|
25
|
-
runtimeClassSetManager?:
|
|
27
|
+
runtimeClassSetManager?: RuntimeClassSetManager | undefined;
|
|
26
28
|
getWebpackCssSources?: (() => Iterable<[string, {
|
|
27
29
|
css: string | undefined;
|
|
28
30
|
processed?: boolean | undefined;
|
|
@@ -34,44 +36,13 @@ export interface SetupWebpackV5ProcessAssetsHookOptions {
|
|
|
34
36
|
prepareWebpackCssSources?: ((activeAssetResources?: ReadonlySet<string>) => ReadonlySet<string>) | undefined;
|
|
35
37
|
debug: (format: string, ...args: unknown[]) => void;
|
|
36
38
|
}
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
getAsset: (file: string) => {
|
|
40
|
-
source: {
|
|
41
|
-
source: () => unknown;
|
|
42
|
-
};
|
|
43
|
-
} | undefined;
|
|
44
|
-
updateAsset: Compiler['webpack']['Compilation']['prototype']['updateAsset'];
|
|
39
|
+
export interface BuildWebpackBundleSnapshotOptions {
|
|
40
|
+
removedFiles?: Iterable<string> | undefined;
|
|
45
41
|
}
|
|
46
42
|
export declare function buildWebpackBundleSnapshot(assets: Record<string, {
|
|
47
43
|
source: () => unknown;
|
|
48
|
-
}>, opts: InternalUserDefinedOptions, state:
|
|
49
|
-
|
|
50
|
-
jsEntries: Map<any, any>;
|
|
51
|
-
sourceHashByFile: Map<string, string>;
|
|
52
|
-
runtimeAffectingSignatureByFile: Map<string, string>;
|
|
53
|
-
runtimeAffectingHashByFile: Map<string, string>;
|
|
54
|
-
hasOmittedKnownFiles: false;
|
|
55
|
-
changedByType: {
|
|
56
|
-
html: Set<string>;
|
|
57
|
-
js: Set<string>;
|
|
58
|
-
css: Set<string>;
|
|
59
|
-
other: Set<string>;
|
|
60
|
-
};
|
|
61
|
-
runtimeAffectingChangedByType: {
|
|
62
|
-
html: Set<string>;
|
|
63
|
-
js: Set<string>;
|
|
64
|
-
css: Set<string>;
|
|
65
|
-
other: Set<string>;
|
|
66
|
-
};
|
|
67
|
-
processFiles: {
|
|
68
|
-
html: Set<string>;
|
|
69
|
-
js: Set<string>;
|
|
70
|
-
css: Set<string>;
|
|
71
|
-
};
|
|
72
|
-
linkedImpactsByEntry: Map<any, any>;
|
|
73
|
-
};
|
|
74
|
-
export declare function releaseWebpackBundleSnapshotSources(snapshot: BundleSnapshot): void;
|
|
44
|
+
}>, opts: InternalUserDefinedOptions, state: RuntimeCompilationBuildState, compilation?: WebpackAssetCompilationLike | undefined, options?: BuildWebpackBundleSnapshotOptions): RuntimeCompilationSnapshot<RuntimeSnapshotEntry>;
|
|
45
|
+
export declare function releaseWebpackBundleSnapshotSources(snapshot: RuntimeCompilationSnapshot): void;
|
|
75
46
|
export declare function stringifyWebpackSource(source: unknown): string;
|
|
76
47
|
export declare function createWebpackAssetUpdater(options: {
|
|
77
48
|
compilation: WebpackAssetCompilationLike;
|
|
@@ -85,4 +56,3 @@ export declare function createWebpackAssetUpdater(options: {
|
|
|
85
56
|
notifyUpdate?: boolean | undefined;
|
|
86
57
|
}) => boolean;
|
|
87
58
|
};
|
|
88
|
-
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { sources as WebpackSources } from 'webpack';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { WebpackAssetCompilationLike } from './asset-emission-plan.js';
|
|
3
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers.js';
|
|
4
|
+
import type { LinkedJsModuleResult } from '../../../../types/index.js';
|
|
4
5
|
export declare function createWebpackJsAssetModuleGraph(options: {
|
|
5
6
|
compilation: {
|
|
6
7
|
getAsset: (file: string) => {
|
|
@@ -22,14 +23,7 @@ export declare function createWebpackJsAssetModuleGraph(options: {
|
|
|
22
23
|
};
|
|
23
24
|
export declare function applyWebpackLinkedJsResults(options: {
|
|
24
25
|
ConcatSource: new (code: string) => WebpackSources.Source;
|
|
25
|
-
compilation:
|
|
26
|
-
getAsset: (file: string) => {
|
|
27
|
-
source: {
|
|
28
|
-
source: () => unknown;
|
|
29
|
-
};
|
|
30
|
-
} | undefined;
|
|
31
|
-
updateAsset: (file: string, source: WebpackSources.Source) => void;
|
|
32
|
-
};
|
|
26
|
+
compilation: Pick<WebpackAssetCompilationLike, 'getAsset' | 'updateAsset'>;
|
|
33
27
|
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
|
|
34
28
|
debug: SetupWebpackV5ProcessAssetsHookOptions['debug'];
|
|
35
29
|
jsAssets: ReadonlyMap<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { createEscapeFragments } from '../../../../
|
|
2
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions, WebpackSourceLike } from '../helpers';
|
|
3
|
-
import type { WebpackCssHandlerOptions, WebpackSourceCandidateCache } from './preflight-runtime';
|
|
1
|
+
import type { createEscapeFragments } from '../../../../shared/runtime-class-set/escaped-candidates.js';
|
|
2
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions, WebpackSourceLike } from '../helpers.js';
|
|
3
|
+
import type { WebpackCssHandlerOptions, WebpackSourceCandidateCache } from './preflight-runtime.js';
|
|
4
4
|
export declare function finalizeTracedWebpackCssAsset(css: string, cssHandlerOptions: WebpackCssHandlerOptions, options: {
|
|
5
5
|
annotateCss: (css: string) => string;
|
|
6
6
|
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
|
|
@@ -25,6 +25,6 @@ export declare function collectWebpackJsRuntimeTokenSignature(options: {
|
|
|
25
25
|
jsAssets: Iterable<string>;
|
|
26
26
|
}): string;
|
|
27
27
|
export declare function addRuntimeTransformCandidates(target: Set<string>, candidates: ReadonlySet<string> | undefined): void;
|
|
28
|
-
export declare function createWebpackCssSourceTraceTokenSources(compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'], webpackSourceCandidates: WebpackSourceCandidateCache | undefined): import("../../../../shared/css-source-trace").CssTokenSourceMap | undefined;
|
|
28
|
+
export declare function createWebpackCssSourceTraceTokenSources(compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'], webpackSourceCandidates: WebpackSourceCandidateCache | undefined): import("../../../../shared/css-source-trace.js").CssTokenSourceMap | undefined;
|
|
29
29
|
export declare function stringifyOptionalWebpackSourceValue(value: unknown): string;
|
|
30
30
|
export declare function stringifyWebpackSourceLike(source: WebpackSourceLike): string;
|
package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers';
|
|
2
|
-
import type { WebpackSourceCandidateScanMemoryStats } from '../source-candidate-cache';
|
|
3
|
-
import type { WebpackCssHandlerOptions } from './preflight-runtime';
|
|
1
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers.js';
|
|
2
|
+
import type { WebpackSourceCandidateScanMemoryStats } from '../source-candidate-cache.js';
|
|
3
|
+
import type { WebpackCssHandlerOptions } from './preflight-runtime.js';
|
|
4
4
|
export declare function resolveWebpackMemoryDebugStats(context: {
|
|
5
5
|
activeAssetFiles: number;
|
|
6
6
|
activeCssFiles: number;
|
package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TailwindV4CssSource } from '../../../../shared/generator-css/source-resolver/types';
|
|
2
|
-
import type { SourceCandidateStore } from '../../../../
|
|
3
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers';
|
|
4
|
-
import type { resolveStyleOptionsFromContext } from '../../../../../context/style-options';
|
|
5
|
-
import type { TailwindcssRuntimeLike } from '../../../../../types';
|
|
6
|
-
export { isRuntimeTransformCandidate } from './runtime-candidates';
|
|
1
|
+
import type { TailwindV4CssSource } from '../../../../shared/generator-css/source-resolver/types.js';
|
|
2
|
+
import type { SourceCandidateStore } from '../../../../shared/source-candidates.js';
|
|
3
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers.js';
|
|
4
|
+
import type { resolveStyleOptionsFromContext } from '../../../../../context/style-options.js';
|
|
5
|
+
import type { TailwindcssRuntimeLike } from '../../../../../types/index.js';
|
|
6
|
+
export { isRuntimeTransformCandidate } from './runtime-candidates.js';
|
|
7
7
|
export interface WebpackCssHandlerOptions {
|
|
8
8
|
isMainChunk: boolean;
|
|
9
9
|
postcssOptions: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers';
|
|
2
|
-
import type { WebpackGeneratorUserCssSource } from './sources';
|
|
1
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from '../helpers.js';
|
|
2
|
+
import type { WebpackGeneratorUserCssSource } from './sources.js';
|
|
3
3
|
export declare function resolveWebpackCssAssetModuleResource(resource: string, issuer: {
|
|
4
4
|
context?: string;
|
|
5
5
|
resource?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TailwindV4CssSource } from '../../../../shared/generator-css/source-resolver/types';
|
|
2
|
-
import type { WebpackCssHandlerOptions } from './preflight-runtime';
|
|
3
|
-
import type { InternalUserDefinedOptions } from '../../../../../types';
|
|
4
|
-
export { collectWebpackAssetUserCssMarkers } from './user-css-markers';
|
|
1
|
+
import type { TailwindV4CssSource } from '../../../../shared/generator-css/source-resolver/types.js';
|
|
2
|
+
import type { WebpackCssHandlerOptions } from './preflight-runtime.js';
|
|
3
|
+
import type { InternalUserDefinedOptions } from '../../../../../types/index.js';
|
|
4
|
+
export { collectWebpackAssetUserCssMarkers } from './user-css-markers.js';
|
|
5
5
|
export declare function resolveWebpackGeneratorRawSource(rawSource: string, cssHandlerOptions: WebpackCssHandlerOptions): string;
|
|
6
6
|
export declare function shouldConsumeWebpackLoaderGeneratedCss(options: {
|
|
7
7
|
allowMarkerlessRegistryMatch?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WebpackGeneratorUserCssSource } from './sources';
|
|
1
|
+
import type { WebpackGeneratorUserCssSource } from './sources.js';
|
|
2
2
|
export declare function isWebpackTailwindImportRequest(request: string | undefined): boolean | undefined;
|
|
3
3
|
export declare function removeWebpackGeneratorNonTailwindImports(source: string | undefined): string | undefined;
|
|
4
4
|
export declare function removeWebpackUserCssFallbackImports(source: string): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { addRuntimeTransformCandidates, collectWebpackJsRuntimeCandidatesFromAssets, collectWebpackJsRuntimeTokenSignature, createWebpackCssSourceTraceTokenSources, finalizeTracedWebpackCssAsset, finalizeWebpackCssAssetOutputSource, finalizeWebpackCssAssetSource, stringifyOptionalWebpackSourceValue, stringifyWebpackSourceLike } from './pipeline-helpers/finalize';
|
|
2
|
-
export { collectGeneratedCssRuntimeCandidates, collectWebpackCssRuleIdentityMarkers, hasAdditionalWebpackAssetUserCssMarkers, hasWebpackTailwindSourceDirectives, parseWebpackCssLayerNames, removeWebpackTailwindGeneratedAssetCss, unescapeCssIdentifier } from './pipeline-helpers/generated-css';
|
|
3
|
-
export { finalizeMiniProgramUserCssAssetSource, resolveWebpackMemoryDebugStats, shouldFallbackToWebpackUserCssOnGeneratorError, shouldInjectWebpackCssTracePreflight } from './pipeline-helpers/memory-trace';
|
|
4
|
-
export { collectRuntimeTokenSignatureParts, getRuntimeClassSetSync, hasMissingRuntimeCandidates, hasStaleRuntimeCandidates, isRuntimeTransformCandidate, pruneMapToMaxSize, pruneWebpackCssHandlerOptionCaches, removeTailwindV4StandaloneHostPreflightRule, resolveGeneratedCssRuntimeCandidates, stripTrailingLineWhitespace, toMb } from './pipeline-helpers/preflight-runtime';
|
|
5
|
-
export type { WebpackCssHandlerOptions, WebpackSourceCandidateCache } from './pipeline-helpers/preflight-runtime';
|
|
6
|
-
export { createWebpackCurrentAssetUserRawSource, isSameWebpackCssSourceScope, resolveWebpackCssAssetModuleResource, shouldAppendCurrentWebpackAssetUserCss } from './pipeline-helpers/resources';
|
|
7
|
-
export { collectWebpackAssetUserCssMarkers, collectWebpackBareSelectorUserCss, hasDeferredWebpackGeneratedCss, hasProcessedCssAssetUrl, hasUsableWebpackGeneratorCssSources, normalizeWebpackGeneratorCssSources, resolveWebpackGeneratorRawSource, scopeWebpackGeneratorOptionsToCssSource, shouldConsumeWebpackLoaderGeneratedCss, shouldUseWebpackAssetAsGeneratorUserCss } from './pipeline-helpers/sources';
|
|
8
|
-
export type { WebpackGeneratorUserCssSource } from './pipeline-helpers/sources';
|
|
9
|
-
export { createWebpackGeneratorCssSource, createWebpackGeneratorUserCssSourceAppend, createWebpackUserCssSourceAppend, isWebpackCssSourceRepresentedInAsset, isWebpackTailwindImportRequest, normalizeWebpackUserCssFallbackSource, removeWebpackGeneratorNonTailwindImports, removeWebpackUserCssFallbackImports } from './pipeline-helpers/user-css';
|
|
1
|
+
export { addRuntimeTransformCandidates, collectWebpackJsRuntimeCandidatesFromAssets, collectWebpackJsRuntimeTokenSignature, createWebpackCssSourceTraceTokenSources, finalizeTracedWebpackCssAsset, finalizeWebpackCssAssetOutputSource, finalizeWebpackCssAssetSource, stringifyOptionalWebpackSourceValue, stringifyWebpackSourceLike } from './pipeline-helpers/finalize.js';
|
|
2
|
+
export { collectGeneratedCssRuntimeCandidates, collectWebpackCssRuleIdentityMarkers, hasAdditionalWebpackAssetUserCssMarkers, hasWebpackTailwindSourceDirectives, parseWebpackCssLayerNames, removeWebpackTailwindGeneratedAssetCss, unescapeCssIdentifier } from './pipeline-helpers/generated-css.js';
|
|
3
|
+
export { finalizeMiniProgramUserCssAssetSource, resolveWebpackMemoryDebugStats, shouldFallbackToWebpackUserCssOnGeneratorError, shouldInjectWebpackCssTracePreflight } from './pipeline-helpers/memory-trace.js';
|
|
4
|
+
export { collectRuntimeTokenSignatureParts, getRuntimeClassSetSync, hasMissingRuntimeCandidates, hasStaleRuntimeCandidates, isRuntimeTransformCandidate, pruneMapToMaxSize, pruneWebpackCssHandlerOptionCaches, removeTailwindV4StandaloneHostPreflightRule, resolveGeneratedCssRuntimeCandidates, stripTrailingLineWhitespace, toMb } from './pipeline-helpers/preflight-runtime.js';
|
|
5
|
+
export type { WebpackCssHandlerOptions, WebpackSourceCandidateCache } from './pipeline-helpers/preflight-runtime.js';
|
|
6
|
+
export { createWebpackCurrentAssetUserRawSource, isSameWebpackCssSourceScope, resolveWebpackCssAssetModuleResource, shouldAppendCurrentWebpackAssetUserCss } from './pipeline-helpers/resources.js';
|
|
7
|
+
export { collectWebpackAssetUserCssMarkers, collectWebpackBareSelectorUserCss, hasDeferredWebpackGeneratedCss, hasProcessedCssAssetUrl, hasUsableWebpackGeneratorCssSources, normalizeWebpackGeneratorCssSources, resolveWebpackGeneratorRawSource, scopeWebpackGeneratorOptionsToCssSource, shouldConsumeWebpackLoaderGeneratedCss, shouldUseWebpackAssetAsGeneratorUserCss } from './pipeline-helpers/sources.js';
|
|
8
|
+
export type { WebpackGeneratorUserCssSource } from './pipeline-helpers/sources.js';
|
|
9
|
+
export { createWebpackGeneratorCssSource, createWebpackGeneratorUserCssSourceAppend, createWebpackUserCssSourceAppend, isWebpackCssSourceRepresentedInAsset, isWebpackTailwindImportRequest, normalizeWebpackUserCssFallbackSource, removeWebpackGeneratorNonTailwindImports, removeWebpackUserCssFallbackImports } from './pipeline-helpers/user-css.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SourceCandidateStore } from '../../../
|
|
2
|
-
import type {
|
|
1
|
+
import type { SourceCandidateStore } from '../../../shared/source-candidates.js';
|
|
2
|
+
import type { ResolvedSourceScan } from '../../../shared/source-scan.js';
|
|
3
3
|
export interface WebpackSourceCandidateCacheRecord {
|
|
4
4
|
getSourceCandidatesForEntries: SourceCandidateStore['valuesForEntries'];
|
|
5
5
|
signatureHash: string;
|
|
@@ -17,7 +17,7 @@ interface ResolveWebpackSourceCandidateCacheOptions {
|
|
|
17
17
|
collector: SourceCandidateStore;
|
|
18
18
|
outDir: string;
|
|
19
19
|
root: string;
|
|
20
|
-
sourceScan:
|
|
20
|
+
sourceScan: ResolvedSourceScan | undefined;
|
|
21
21
|
watchMode: boolean;
|
|
22
22
|
}
|
|
23
23
|
export declare function createWebpackSourceCandidateScanCache(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers';
|
|
2
|
-
import type { createWebpackSourceCandidateScanCache } from './source-candidate-cache';
|
|
1
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers.js';
|
|
2
|
+
import type { createWebpackSourceCandidateScanCache } from './source-candidate-cache.js';
|
|
3
3
|
export declare function refreshWebpackSourceCandidates(options: {
|
|
4
4
|
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
|
|
5
5
|
debug: SetupWebpackV5ProcessAssetsHookOptions['debug'];
|
|
@@ -8,4 +8,4 @@ export declare function refreshWebpackSourceCandidates(options: {
|
|
|
8
8
|
scanCache: ReturnType<typeof createWebpackSourceCandidateScanCache>;
|
|
9
9
|
watchChangedFiles: ReadonlySet<string>;
|
|
10
10
|
watchMode: boolean;
|
|
11
|
-
}): Promise<import("./source-candidate-cache").WebpackSourceCandidateCacheRecord | undefined>;
|
|
11
|
+
}): Promise<import("./source-candidate-cache.js").WebpackSourceCandidateCacheRecord | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SetupWebpackV5ProcessAssetsHookOptions } from './v5-assets/helpers';
|
|
2
|
-
export * from './v5-assets/pipeline-helpers';
|
|
1
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from './v5-assets/helpers.js';
|
|
2
|
+
export * from './v5-assets/pipeline-helpers.js';
|
|
3
3
|
export declare function setupWebpackV5ProcessAssetsHook(options: SetupWebpackV5ProcessAssetsHookOptions): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
|
|
2
2
|
import type { Compiler } from 'webpack';
|
|
3
|
-
import type { WebpackCssSourceRegistration, WebpackGeneratedCssRegistration } from '../loaders/runtime-registry';
|
|
4
|
-
import type { LoaderAnchorFinders } from '../shared/loader-anchors';
|
|
5
|
-
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime';
|
|
6
|
-
import type { AppType, InternalUserDefinedOptions } from '../../../types';
|
|
3
|
+
import type { WebpackCssSourceRegistration, WebpackGeneratedCssRegistration } from '../loaders/runtime-registry.js';
|
|
4
|
+
import type { LoaderAnchorFinders } from '../shared/loader-anchors.js';
|
|
5
|
+
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime.js';
|
|
6
|
+
import type { AppType, InternalUserDefinedOptions } from '../../../types/index.js';
|
|
7
7
|
interface SetupWebpackV5LoadersOptions {
|
|
8
8
|
compiler: Compiler;
|
|
9
9
|
options: InternalUserDefinedOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Compiler } from 'webpack';
|
|
2
|
-
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from '../../../types';
|
|
3
|
-
export { weappTailwindcssPackageDir } from '../shared/create-framework-plugin';
|
|
2
|
+
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from '../../../types/index.js';
|
|
3
|
+
export { weappTailwindcssPackageDir } from '../shared/create-framework-plugin.js';
|
|
4
4
|
export declare class WeappTailwindcss implements IBaseWebpackPlugin {
|
|
5
5
|
options: InternalUserDefinedOptions;
|
|
6
6
|
appType?: AppType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin';
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin.js';
|
|
3
3
|
export declare class GenericWebpackPlugin extends WebpackFrameworkPlugin {
|
|
4
4
|
constructor(options?: UserDefinedOptions | InternalUserDefinedOptions);
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { WebpackFrameworkName } from '../../framework-selector';
|
|
2
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../types';
|
|
3
|
-
import { GenericWebpackPlugin } from './generic';
|
|
4
|
-
import { MpxWebpackPlugin } from './mpx';
|
|
5
|
-
import { TaroWebpackPlugin } from './taro';
|
|
6
|
-
import { UniAppWebpackPlugin } from './uni-app';
|
|
7
|
-
import { WeappViteWebpackPlugin } from './weapp-vite';
|
|
1
|
+
import type { WebpackFrameworkName } from '../../framework-selector.js';
|
|
2
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../types/index.js';
|
|
3
|
+
import { GenericWebpackPlugin } from './generic/index.js';
|
|
4
|
+
import { MpxWebpackPlugin } from './mpx/index.js';
|
|
5
|
+
import { TaroWebpackPlugin } from './taro/index.js';
|
|
6
|
+
import { UniAppWebpackPlugin } from './uni-app/index.js';
|
|
7
|
+
import { WeappViteWebpackPlugin } from './weapp-vite/index.js';
|
|
8
8
|
export declare function createWebpackFrameworkPlugin(frameworkName: WebpackFrameworkName, options?: UserDefinedOptions | InternalUserDefinedOptions): GenericWebpackPlugin | MpxWebpackPlugin | TaroWebpackPlugin | UniAppWebpackPlugin | WeappViteWebpackPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin';
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin.js';
|
|
3
3
|
export declare class MpxWebpackPlugin extends WebpackFrameworkPlugin {
|
|
4
4
|
constructor(options?: UserDefinedOptions | InternalUserDefinedOptions);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin';
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin.js';
|
|
3
3
|
export declare class TaroWebpackPlugin extends WebpackFrameworkPlugin {
|
|
4
4
|
constructor(options?: UserDefinedOptions | InternalUserDefinedOptions);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin';
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin.js';
|
|
3
3
|
export declare class UniAppWebpackPlugin extends WebpackFrameworkPlugin {
|
|
4
4
|
constructor(options?: UserDefinedOptions | InternalUserDefinedOptions);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
-
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin';
|
|
1
|
+
import type { InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
2
|
+
import { WebpackFrameworkPlugin } from '../../shared/create-framework-plugin.js';
|
|
3
3
|
export declare class WeappViteWebpackPlugin extends WebpackFrameworkPlugin {
|
|
4
4
|
constructor(options?: UserDefinedOptions | InternalUserDefinedOptions);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './BaseUnifiedPlugin/v5';
|
|
1
|
+
export * from './BaseUnifiedPlugin/v5.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TailwindV4CssSource } from '@tailwindcss-mangle/engine';
|
|
2
|
-
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime';
|
|
3
|
-
import type { AppType, InternalUserDefinedOptions } from '../../../types';
|
|
2
|
+
import type { TailwindRuntimeState } from '../../../tailwindcss/runtime.js';
|
|
3
|
+
import type { AppType, InternalUserDefinedOptions } from '../../../types/index.js';
|
|
4
4
|
export interface WebpackRuntimeClassSetLoaderOptions {
|
|
5
5
|
getClassSet?: () => void | Promise<void>;
|
|
6
6
|
getWatchDependencies?: () => RuntimeLoaderWatchDependencies | Promise<RuntimeLoaderWatchDependencies | void> | void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
|
-
import type { WebpackCssImportRewriteLoaderOptions } from './runtime-registry';
|
|
2
|
+
import type { WebpackCssImportRewriteLoaderOptions } from './runtime-registry.js';
|
|
3
3
|
declare const WeappTwCssGenerationLoader: webpack.LoaderDefinitionFunction<WebpackCssImportRewriteLoaderOptions>;
|
|
4
4
|
export default WeappTwCssGenerationLoader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
|
-
import type { WebpackCssImportRewriteLoaderOptions } from './runtime-registry';
|
|
2
|
+
import type { WebpackCssImportRewriteLoaderOptions } from './runtime-registry.js';
|
|
3
3
|
import { Buffer } from 'node:buffer';
|
|
4
4
|
interface CssImportRewriteLoaderOptions extends WebpackCssImportRewriteLoaderOptions {
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
|
-
import type { WebpackRuntimeClassSetLoaderOptions } from './runtime-registry';
|
|
2
|
+
import type { WebpackRuntimeClassSetLoaderOptions } from './runtime-registry.js';
|
|
3
3
|
interface RuntimeClassSetLoaderOptions extends WebpackRuntimeClassSetLoaderOptions {
|
|
4
4
|
weappTailwindcssRuntimeKey?: string;
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Compiler } from 'webpack';
|
|
2
|
-
import type { WebpackFrameworkName } from '../../../framework-selector';
|
|
3
|
-
import type { LoaderAnchorFinders } from '../loader-anchors';
|
|
4
|
-
import type { WebpackStyleInjectorDelegateFactory } from '../../../../style-injector/internal';
|
|
5
|
-
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types';
|
|
2
|
+
import type { WebpackFrameworkName } from '../../../framework-selector.js';
|
|
3
|
+
import type { LoaderAnchorFinders } from '../loader-anchors.js';
|
|
4
|
+
import type { WebpackStyleInjectorDelegateFactory } from '../../../../style-injector/internal.js';
|
|
5
|
+
import type { AppType, IBaseWebpackPlugin, InternalUserDefinedOptions, UserDefinedOptions } from '../../../../types/index.js';
|
|
6
6
|
export interface WebpackFrameworkBranchContext {
|
|
7
7
|
frameworkName: WebpackFrameworkName;
|
|
8
8
|
loaderAnchorFinders: LoaderAnchorFinders;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { WebpackFrameworkPlugin } from './create-framework-plugin/plugin';
|
|
2
|
-
export type { WebpackFrameworkBranchContext } from './create-framework-plugin/plugin';
|
|
3
|
-
export { weappTailwindcssPackageDir } from './create-framework-plugin/watch-output';
|
|
1
|
+
export { WebpackFrameworkPlugin } from './create-framework-plugin/plugin.js';
|
|
2
|
+
export type { WebpackFrameworkBranchContext } from './create-framework-plugin/plugin.js';
|
|
3
|
+
export { weappTailwindcssPackageDir } from './create-framework-plugin/watch-output.js';
|
package/dist/cli/context.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { UserDefinedOptions } from '../types';
|
|
2
|
-
export declare function createCliContext(overrides: Partial<UserDefinedOptions> | undefined, resolvedCwd: string | undefined): import("
|
|
1
|
+
import type { UserDefinedOptions } from '../types/index.js';
|
|
2
|
+
export declare function createCliContext(overrides: Partial<UserDefinedOptions> | undefined, resolvedCwd: string | undefined): import("../types/index.js").InternalUserDefinedOptions;
|
|
3
3
|
export declare function formatOutputPath(target: string, baseDir?: string): string;
|
package/dist/cli/doctor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DoctorOptions, DoctorReport } from './doctor/types';
|
|
1
|
+
import type { DoctorOptions, DoctorReport } from './doctor/types.js';
|
|
2
2
|
export declare function createDoctorReport(options?: DoctorOptions): DoctorReport;
|
|
3
3
|
export declare function hasDoctorFailure(report: DoctorReport, strict?: boolean): boolean;
|
|
4
4
|
export declare function formatDoctorReport(report: DoctorReport): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { normalizeExtractFormat, normalizeTokenFormat } from './options/format';
|
|
2
|
-
export { readStringArrayOption, readStringOption, toBoolean } from './options/parse';
|
|
3
|
-
export { resolveCliCwd } from './options/resolve';
|
|
1
|
+
export { normalizeExtractFormat, normalizeTokenFormat } from './options/format.js';
|
|
2
|
+
export { readStringArrayOption, readStringOption, toBoolean } from './options/parse.js';
|
|
3
|
+
export { resolveCliCwd } from './options/resolve.js';
|
package/dist/cli/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean } from './helpers/options';
|
|
1
|
+
import { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean } from './helpers/options.js';
|
|
2
2
|
export declare function ensureDir(dir: string): Promise<void>;
|
|
3
3
|
export declare function commandAction<T extends unknown[]>(handler: (...args: T) => Promise<void>): (...args: T) => Promise<void>;
|
|
4
4
|
export { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean, };
|