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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
|
|
2
|
+
let _weapp_tailwindcss_postcss_html_transform = require("@weapp-tailwindcss/postcss/html-transform");
|
|
3
|
+
_weapp_tailwindcss_postcss_html_transform = require_rolldown_runtime.__toESM(_weapp_tailwindcss_postcss_html_transform, 1);
|
|
4
|
+
//#region src/postcss-html-transform.ts
|
|
5
|
+
var postcss_html_transform_default = _weapp_tailwindcss_postcss_html_transform.default;
|
|
6
|
+
//#endregion
|
|
7
|
+
module.exports = postcss_html_transform_default;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
let _weapp_tailwindcss_postcss_html_transform = require("@weapp-tailwindcss/postcss/html-transform");
|
|
3
|
-
_weapp_tailwindcss_postcss_html_transform = require_rolldown_runtime.__toESM(_weapp_tailwindcss_postcss_html_transform);
|
|
1
|
+
import postcssHtmlTransform from "@weapp-tailwindcss/postcss/html-transform";
|
|
4
2
|
//#region src/postcss-html-transform.ts
|
|
5
|
-
var postcss_html_transform_default =
|
|
3
|
+
var postcss_html_transform_default = postcssHtmlTransform;
|
|
6
4
|
//#endregion
|
|
7
|
-
|
|
5
|
+
export { postcss_html_transform_default as default };
|
package/dist/postcss.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_generator = require("./generator-BE34PYSC.cjs");
|
|
6
|
+
const weappTailwindcssPostcssPlugin = (0, require("@weapp-tailwindcss/postcss").createWeappTailwindcssPostcssPlugin)({
|
|
7
|
+
createGenerator: (source) => {
|
|
8
|
+
return require_generator.createWeappTailwindcssGenerator(source);
|
|
9
|
+
},
|
|
10
|
+
normalizeGeneratorOptions: (options) => require_generator.normalizeWeappTailwindcssGeneratorOptions(options),
|
|
11
|
+
resolveTailwindV4Source: (options) => require_generator.resolveTailwindV4Source(options)
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.default = weappTailwindcssPostcssPlugin;
|
|
15
|
+
exports.weappTailwindcssPostcssPlugin = weappTailwindcssPostcssPlugin;
|
package/dist/postcss.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
});
|
|
5
|
-
const require_generator = require("./generator-B91GhUJQ.js");
|
|
6
|
-
const weappTailwindcssPostcssPlugin = (0, require("@weapp-tailwindcss/postcss").createWeappTailwindcssPostcssPlugin)({
|
|
1
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-DYeAa2-5.js";
|
|
2
|
+
import { createWeappTailwindcssPostcssPlugin } from "@weapp-tailwindcss/postcss";
|
|
3
|
+
const weappTailwindcssPostcssPlugin = createWeappTailwindcssPostcssPlugin({
|
|
7
4
|
createGenerator: (source) => {
|
|
8
|
-
return
|
|
5
|
+
return createWeappTailwindcssGenerator(source);
|
|
9
6
|
},
|
|
10
|
-
normalizeGeneratorOptions: (options) =>
|
|
11
|
-
resolveTailwindV4Source: (options) =>
|
|
7
|
+
normalizeGeneratorOptions: (options) => normalizeWeappTailwindcssGeneratorOptions(options),
|
|
8
|
+
resolveTailwindV4Source: (options) => resolveTailwindV4Source(options)
|
|
12
9
|
});
|
|
13
10
|
//#endregion
|
|
14
|
-
|
|
15
|
-
exports.weappTailwindcssPostcssPlugin = weappTailwindcssPostcssPlugin;
|
|
11
|
+
export { weappTailwindcssPostcssPlugin as default, weappTailwindcssPostcssPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasePresetOptions } from './shared';
|
|
1
|
+
import type { BasePresetOptions } from './shared.js';
|
|
2
2
|
export interface HBuilderXOptions extends BasePresetOptions {
|
|
3
3
|
}
|
|
4
|
-
export declare function hbuilderx(options?: HBuilderXOptions): Partial<import("
|
|
4
|
+
export declare function hbuilderx(options?: HBuilderXOptions): Partial<import("../index.js").UserDefinedOptions>;
|
package/dist/presets/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './hbuilderx';
|
|
2
|
-
export * from './shared';
|
|
3
|
-
export * from './uni-app';
|
|
4
|
-
export * from './uni-app-x';
|
|
1
|
+
export * from './hbuilderx.js';
|
|
2
|
+
export * from './shared.js';
|
|
3
|
+
export * from './uni-app.js';
|
|
4
|
+
export * from './uni-app-x.js';
|
package/dist/presets/shared.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PackageResolvingOptions } from 'local-pkg';
|
|
2
|
-
import type { UserDefinedOptions } from '../types';
|
|
2
|
+
import type { UserDefinedOptions } from '../types/index.js';
|
|
3
3
|
export interface BasePresetOptions extends Omit<Partial<UserDefinedOptions>, 'cssEntries'> {
|
|
4
4
|
base?: string;
|
|
5
5
|
cssEntries?: string | string[];
|
package/dist/presets/taro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasePresetOptions } from './shared';
|
|
1
|
+
import type { BasePresetOptions } from './shared.js';
|
|
2
2
|
export interface TaroPresetOptions extends BasePresetOptions {
|
|
3
3
|
}
|
|
4
|
-
export declare function taro(options?: TaroPresetOptions): Partial<import("
|
|
4
|
+
export declare function taro(options?: TaroPresetOptions): Partial<import("../index.js").UserDefinedOptions>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PackageResolvingOptions } from 'local-pkg';
|
|
2
|
-
import type { UniAppXComponentLocalStylesOptions, UserDefinedOptions } from '../types';
|
|
2
|
+
import type { UniAppXComponentLocalStylesOptions, UserDefinedOptions } from '../types/index.js';
|
|
3
3
|
export interface UniAppXOptions {
|
|
4
4
|
base: string;
|
|
5
5
|
cssEntries?: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasePresetOptions } from './shared';
|
|
1
|
+
import type { BasePresetOptions } from './shared.js';
|
|
2
2
|
export interface UniAppPresetOptions extends BasePresetOptions {
|
|
3
3
|
}
|
|
4
|
-
export declare function uniApp(options?: UniAppPresetOptions): Partial<import("
|
|
4
|
+
export declare function uniApp(options?: UniAppPresetOptions): Partial<import("../index.js").UserDefinedOptions>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
|
|
3
|
+
const require_framework = require("./framework.cjs");
|
|
4
|
+
const require_object = require("./object-C_Vr6_S5.cjs");
|
|
5
|
+
const require_options = require("./options-hVsoTfwL.cjs");
|
|
6
|
+
require("./utils-CuKLf1Zv.cjs");
|
|
7
|
+
const require_tailwindcss = require("./tailwindcss-DcpiKvmJ.cjs");
|
|
8
|
+
require("./logger-TlKT3xmR.cjs");
|
|
9
|
+
let node_path = require("node:path");
|
|
10
|
+
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
11
|
+
let node_process = require("node:process");
|
|
12
|
+
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
13
|
+
let local_pkg = require("local-pkg");
|
|
14
|
+
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
15
|
+
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
9
16
|
//#region src/presets/shared.ts
|
|
10
17
|
function normalizeCssEntries(entries) {
|
|
11
18
|
if (!entries) return;
|
|
@@ -13,15 +20,15 @@ function normalizeCssEntries(entries) {
|
|
|
13
20
|
return normalized.length > 0 ? normalized : void 0;
|
|
14
21
|
}
|
|
15
22
|
function shouldEnableWebCompatFromEnv() {
|
|
16
|
-
const { uniPlatform, uniUtsPlatform } = resolveUniPlatformsFromEnv();
|
|
17
|
-
return uniPlatform.isWeb || uniUtsPlatform.isWeb || resolveTaroPlatform().isWeb;
|
|
23
|
+
const { uniPlatform, uniUtsPlatform } = require_framework.resolveUniPlatformsFromEnv();
|
|
24
|
+
return uniPlatform.isWeb || uniUtsPlatform.isWeb || require_framework.resolveTaroPlatform().isWeb;
|
|
18
25
|
}
|
|
19
26
|
function withWebCompatGeneratorDefaults(options, enabled = shouldEnableWebCompatFromEnv()) {
|
|
20
27
|
if (!enabled || options.generator === false) return options;
|
|
21
28
|
const generatorOptions = options.generator ?? {};
|
|
22
29
|
return {
|
|
23
30
|
...options,
|
|
24
|
-
generator: defuOverrideArray(generatorOptions, {
|
|
31
|
+
generator: (0, _weapp_tailwindcss_shared.defuOverrideArray)(generatorOptions, {
|
|
25
32
|
target: "web",
|
|
26
33
|
webCompat: true
|
|
27
34
|
})
|
|
@@ -29,9 +36,9 @@ function withWebCompatGeneratorDefaults(options, enabled = shouldEnableWebCompat
|
|
|
29
36
|
}
|
|
30
37
|
function createBasePreset(options = {}) {
|
|
31
38
|
const { base, cssEntries, resolve, rawOptions, ...userOptions } = options;
|
|
32
|
-
const baseDir = resolveTailwindcssBasedir(base);
|
|
39
|
+
const baseDir = require_tailwindcss.resolveTailwindcssBasedir(base);
|
|
33
40
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
34
|
-
const tailwindConfig = { v4: omitUndefined({
|
|
41
|
+
const tailwindConfig = { v4: require_object.omitUndefined({
|
|
35
42
|
base: baseDir,
|
|
36
43
|
cssEntries: normalizedCssEntries
|
|
37
44
|
}) };
|
|
@@ -47,7 +54,7 @@ function createBasePreset(options = {}) {
|
|
|
47
54
|
} : tailwindConfig
|
|
48
55
|
}
|
|
49
56
|
};
|
|
50
|
-
return defuOverrideArray(defuOverrideArray(userOptions, rawOptions ?? {}), preset);
|
|
57
|
+
return (0, _weapp_tailwindcss_shared.defuOverrideArray)((0, _weapp_tailwindcss_shared.defuOverrideArray)(userOptions, rawOptions ?? {}), preset);
|
|
51
58
|
}
|
|
52
59
|
//#endregion
|
|
53
60
|
//#region src/presets/hbuilderx.ts
|
|
@@ -60,7 +67,7 @@ function hbuilderx(options = {}) {
|
|
|
60
67
|
//#endregion
|
|
61
68
|
//#region src/presets/uni-app.ts
|
|
62
69
|
function uniApp(options = {}) {
|
|
63
|
-
const uniPlatform =
|
|
70
|
+
const uniPlatform = node_process.default.env["UNI_PLATFORM"];
|
|
64
71
|
return createBasePreset(withWebCompatGeneratorDefaults({
|
|
65
72
|
disabled: uniPlatform === "app" || uniPlatform === "app-plus" ? true : void 0,
|
|
66
73
|
...options
|
|
@@ -69,7 +76,7 @@ function uniApp(options = {}) {
|
|
|
69
76
|
//#endregion
|
|
70
77
|
//#region src/tailwindcss/index.ts
|
|
71
78
|
function getTailwindcssPackageInfo(options) {
|
|
72
|
-
return getPackageInfoSync("tailwindcss", options);
|
|
79
|
+
return (0, local_pkg.getPackageInfoSync)("tailwindcss", options);
|
|
73
80
|
}
|
|
74
81
|
//#endregion
|
|
75
82
|
//#region src/presets/uni-app-x.ts
|
|
@@ -78,7 +85,7 @@ function resolveTailwindResolveOptions(base, resolve) {
|
|
|
78
85
|
return {
|
|
79
86
|
...resolve ?? {},
|
|
80
87
|
paths: [.../* @__PURE__ */ new Set([
|
|
81
|
-
|
|
88
|
+
node_path.default.join(base, "node_modules"),
|
|
82
89
|
base,
|
|
83
90
|
...currentPaths
|
|
84
91
|
])]
|
|
@@ -96,21 +103,21 @@ function resolveInstalledTailwindDefaults(resolve) {
|
|
|
96
103
|
};
|
|
97
104
|
}
|
|
98
105
|
function uniAppX(options) {
|
|
99
|
-
logger.info(`UNI_PLATFORM: ${
|
|
100
|
-
const { uniPlatform, uniUtsPlatform } = resolveUniPlatformsFromEnv();
|
|
101
|
-
logger.info(`UNI_UTS_PLATFORM: ${uniUtsPlatform.raw ?? "undefined"}`);
|
|
106
|
+
_weapp_tailwindcss_logger.logger.info(`UNI_PLATFORM: ${node_process.default.env["UNI_PLATFORM"]}`);
|
|
107
|
+
const { uniPlatform, uniUtsPlatform } = require_framework.resolveUniPlatformsFromEnv();
|
|
108
|
+
_weapp_tailwindcss_logger.logger.info(`UNI_UTS_PLATFORM: ${uniUtsPlatform.raw ?? "undefined"}`);
|
|
102
109
|
const isApp = uniUtsPlatform.isApp || uniPlatform.isApp;
|
|
103
110
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
104
111
|
const resolvedResolve = resolveTailwindResolveOptions(options.base, options.resolve);
|
|
105
112
|
const installedTailwindDefaults = resolveInstalledTailwindDefaults(resolvedResolve);
|
|
106
|
-
const resolvedUniAppX = resolveUniAppXOptions({
|
|
113
|
+
const resolvedUniAppX = require_options.resolveUniAppXOptions({
|
|
107
114
|
enabled: isApp,
|
|
108
115
|
componentLocalStyles: options.componentLocalStyles ?? true,
|
|
109
116
|
uvueUnsupported: options.uvueUnsupported,
|
|
110
117
|
...typeof options.uniAppX === "object" ? options.uniAppX : {}
|
|
111
118
|
});
|
|
112
119
|
if (typeof options.uniAppX === "boolean") resolvedUniAppX.enabled = options.uniAppX;
|
|
113
|
-
return defuOverrideArray(options.rawOptions ?? {}, {
|
|
120
|
+
return (0, _weapp_tailwindcss_shared.defuOverrideArray)(options.rawOptions ?? {}, {
|
|
114
121
|
uniAppX: resolvedUniAppX,
|
|
115
122
|
...withWebCompatGeneratorDefaults(options.generator !== void 0 ? { generator: options.generator } : {}),
|
|
116
123
|
rem2rpx: options.rem2rpx,
|
|
@@ -124,7 +131,7 @@ function uniAppX(options) {
|
|
|
124
131
|
...installedTailwindDefaults ?? {},
|
|
125
132
|
cwd: options.base,
|
|
126
133
|
resolve: resolvedResolve,
|
|
127
|
-
v4: omitUndefined({
|
|
134
|
+
v4: require_object.omitUndefined({
|
|
128
135
|
base: options.base,
|
|
129
136
|
cssEntries
|
|
130
137
|
})
|
|
@@ -144,4 +151,10 @@ function uniAppX(options) {
|
|
|
144
151
|
});
|
|
145
152
|
}
|
|
146
153
|
//#endregion
|
|
147
|
-
|
|
154
|
+
exports.createBasePreset = createBasePreset;
|
|
155
|
+
exports.hbuilderx = hbuilderx;
|
|
156
|
+
exports.normalizeCssEntries = normalizeCssEntries;
|
|
157
|
+
exports.shouldEnableWebCompatFromEnv = shouldEnableWebCompatFromEnv;
|
|
158
|
+
exports.uniApp = uniApp;
|
|
159
|
+
exports.uniAppX = uniAppX;
|
|
160
|
+
exports.withWebCompatGeneratorDefaults = withWebCompatGeneratorDefaults;
|
package/dist/presets.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './presets/index';
|
|
1
|
+
export * from './presets/index.js';
|
package/dist/presets.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
10
|
-
let node_process = require("node:process");
|
|
11
|
-
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
12
|
-
let local_pkg = require("local-pkg");
|
|
13
|
-
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
14
|
-
let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
1
|
+
import { resolveTaroPlatform, resolveUniPlatformsFromEnv } from "./framework.js";
|
|
2
|
+
import { t as omitUndefined } from "./object-Bvy6-w9r.js";
|
|
3
|
+
import { i as resolveUniAppXOptions, n as resolveTailwindcssBasedir } from "./tailwindcss-CTpCc_nd.js";
|
|
4
|
+
import { n as defuOverrideArray } from "./utils-MVwpU07P.js";
|
|
5
|
+
import { t as logger } from "./logger-BNzxZbZj.js";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import process from "node:process";
|
|
8
|
+
import { getPackageInfoSync } from "local-pkg";
|
|
15
9
|
//#region src/presets/shared.ts
|
|
16
10
|
function normalizeCssEntries(entries) {
|
|
17
11
|
if (!entries) return;
|
|
@@ -19,15 +13,15 @@ function normalizeCssEntries(entries) {
|
|
|
19
13
|
return normalized.length > 0 ? normalized : void 0;
|
|
20
14
|
}
|
|
21
15
|
function shouldEnableWebCompatFromEnv() {
|
|
22
|
-
const { uniPlatform, uniUtsPlatform } =
|
|
23
|
-
return uniPlatform.isWeb || uniUtsPlatform.isWeb ||
|
|
16
|
+
const { uniPlatform, uniUtsPlatform } = resolveUniPlatformsFromEnv();
|
|
17
|
+
return uniPlatform.isWeb || uniUtsPlatform.isWeb || resolveTaroPlatform().isWeb;
|
|
24
18
|
}
|
|
25
19
|
function withWebCompatGeneratorDefaults(options, enabled = shouldEnableWebCompatFromEnv()) {
|
|
26
20
|
if (!enabled || options.generator === false) return options;
|
|
27
21
|
const generatorOptions = options.generator ?? {};
|
|
28
22
|
return {
|
|
29
23
|
...options,
|
|
30
|
-
generator:
|
|
24
|
+
generator: defuOverrideArray(generatorOptions, {
|
|
31
25
|
target: "web",
|
|
32
26
|
webCompat: true
|
|
33
27
|
})
|
|
@@ -35,9 +29,9 @@ function withWebCompatGeneratorDefaults(options, enabled = shouldEnableWebCompat
|
|
|
35
29
|
}
|
|
36
30
|
function createBasePreset(options = {}) {
|
|
37
31
|
const { base, cssEntries, resolve, rawOptions, ...userOptions } = options;
|
|
38
|
-
const baseDir =
|
|
32
|
+
const baseDir = resolveTailwindcssBasedir(base);
|
|
39
33
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
40
|
-
const tailwindConfig = { v4:
|
|
34
|
+
const tailwindConfig = { v4: omitUndefined({
|
|
41
35
|
base: baseDir,
|
|
42
36
|
cssEntries: normalizedCssEntries
|
|
43
37
|
}) };
|
|
@@ -53,7 +47,7 @@ function createBasePreset(options = {}) {
|
|
|
53
47
|
} : tailwindConfig
|
|
54
48
|
}
|
|
55
49
|
};
|
|
56
|
-
return
|
|
50
|
+
return defuOverrideArray(defuOverrideArray(userOptions, rawOptions ?? {}), preset);
|
|
57
51
|
}
|
|
58
52
|
//#endregion
|
|
59
53
|
//#region src/presets/hbuilderx.ts
|
|
@@ -66,7 +60,7 @@ function hbuilderx(options = {}) {
|
|
|
66
60
|
//#endregion
|
|
67
61
|
//#region src/presets/uni-app.ts
|
|
68
62
|
function uniApp(options = {}) {
|
|
69
|
-
const uniPlatform =
|
|
63
|
+
const uniPlatform = process.env["UNI_PLATFORM"];
|
|
70
64
|
return createBasePreset(withWebCompatGeneratorDefaults({
|
|
71
65
|
disabled: uniPlatform === "app" || uniPlatform === "app-plus" ? true : void 0,
|
|
72
66
|
...options
|
|
@@ -75,7 +69,7 @@ function uniApp(options = {}) {
|
|
|
75
69
|
//#endregion
|
|
76
70
|
//#region src/tailwindcss/index.ts
|
|
77
71
|
function getTailwindcssPackageInfo(options) {
|
|
78
|
-
return
|
|
72
|
+
return getPackageInfoSync("tailwindcss", options);
|
|
79
73
|
}
|
|
80
74
|
//#endregion
|
|
81
75
|
//#region src/presets/uni-app-x.ts
|
|
@@ -84,7 +78,7 @@ function resolveTailwindResolveOptions(base, resolve) {
|
|
|
84
78
|
return {
|
|
85
79
|
...resolve ?? {},
|
|
86
80
|
paths: [.../* @__PURE__ */ new Set([
|
|
87
|
-
|
|
81
|
+
path.join(base, "node_modules"),
|
|
88
82
|
base,
|
|
89
83
|
...currentPaths
|
|
90
84
|
])]
|
|
@@ -102,21 +96,21 @@ function resolveInstalledTailwindDefaults(resolve) {
|
|
|
102
96
|
};
|
|
103
97
|
}
|
|
104
98
|
function uniAppX(options) {
|
|
105
|
-
|
|
106
|
-
const { uniPlatform, uniUtsPlatform } =
|
|
107
|
-
|
|
99
|
+
logger.info(`UNI_PLATFORM: ${process.env["UNI_PLATFORM"]}`);
|
|
100
|
+
const { uniPlatform, uniUtsPlatform } = resolveUniPlatformsFromEnv();
|
|
101
|
+
logger.info(`UNI_UTS_PLATFORM: ${uniUtsPlatform.raw ?? "undefined"}`);
|
|
108
102
|
const isApp = uniUtsPlatform.isApp || uniPlatform.isApp;
|
|
109
103
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
110
104
|
const resolvedResolve = resolveTailwindResolveOptions(options.base, options.resolve);
|
|
111
105
|
const installedTailwindDefaults = resolveInstalledTailwindDefaults(resolvedResolve);
|
|
112
|
-
const resolvedUniAppX =
|
|
106
|
+
const resolvedUniAppX = resolveUniAppXOptions({
|
|
113
107
|
enabled: isApp,
|
|
114
108
|
componentLocalStyles: options.componentLocalStyles ?? true,
|
|
115
109
|
uvueUnsupported: options.uvueUnsupported,
|
|
116
110
|
...typeof options.uniAppX === "object" ? options.uniAppX : {}
|
|
117
111
|
});
|
|
118
112
|
if (typeof options.uniAppX === "boolean") resolvedUniAppX.enabled = options.uniAppX;
|
|
119
|
-
return
|
|
113
|
+
return defuOverrideArray(options.rawOptions ?? {}, {
|
|
120
114
|
uniAppX: resolvedUniAppX,
|
|
121
115
|
...withWebCompatGeneratorDefaults(options.generator !== void 0 ? { generator: options.generator } : {}),
|
|
122
116
|
rem2rpx: options.rem2rpx,
|
|
@@ -130,7 +124,7 @@ function uniAppX(options) {
|
|
|
130
124
|
...installedTailwindDefaults ?? {},
|
|
131
125
|
cwd: options.base,
|
|
132
126
|
resolve: resolvedResolve,
|
|
133
|
-
v4:
|
|
127
|
+
v4: omitUndefined({
|
|
134
128
|
base: options.base,
|
|
135
129
|
cssEntries
|
|
136
130
|
})
|
|
@@ -150,10 +144,4 @@ function uniAppX(options) {
|
|
|
150
144
|
});
|
|
151
145
|
}
|
|
152
146
|
//#endregion
|
|
153
|
-
|
|
154
|
-
exports.hbuilderx = hbuilderx;
|
|
155
|
-
exports.normalizeCssEntries = normalizeCssEntries;
|
|
156
|
-
exports.shouldEnableWebCompatFromEnv = shouldEnableWebCompatFromEnv;
|
|
157
|
-
exports.uniApp = uniApp;
|
|
158
|
-
exports.uniAppX = uniAppX;
|
|
159
|
-
exports.withWebCompatGeneratorDefaults = withWebCompatGeneratorDefaults;
|
|
147
|
+
export { createBasePreset, hbuilderx, normalizeCssEntries, shouldEnableWebCompatFromEnv, uniApp, uniAppX, withWebCompatGeneratorDefaults };
|
package/dist/reset.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
|
|
6
|
+
let _weapp_tailwindcss_reset = require("@weapp-tailwindcss/reset");
|
|
7
|
+
_weapp_tailwindcss_reset = require_rolldown_runtime.__toESM(_weapp_tailwindcss_reset, 1);
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return _weapp_tailwindcss_reset.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "reset", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return _weapp_tailwindcss_reset.reset;
|
|
18
|
+
}
|
|
19
|
+
});
|
package/dist/reset.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './reset/index'
|
|
2
|
-
export * from './reset/index'
|
|
1
|
+
export { default } from './reset/index.js'
|
|
2
|
+
export * from './reset/index.js'
|
package/dist/reset.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
6
|
-
let _weapp_tailwindcss_reset = require("@weapp-tailwindcss/reset");
|
|
7
|
-
_weapp_tailwindcss_reset = require_rolldown_runtime.__toESM(_weapp_tailwindcss_reset);
|
|
8
|
-
Object.defineProperty(exports, "default", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return _weapp_tailwindcss_reset.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "reset", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return _weapp_tailwindcss_reset.reset;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
1
|
+
import reset_default, { reset } from "@weapp-tailwindcss/reset";
|
|
2
|
+
export { reset_default as default, reset };
|
|
@@ -6,6 +6,15 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
9
18
|
var __copyProps = (to, from, except, desc) => {
|
|
10
19
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
20
|
key = keys[i];
|
|
@@ -27,6 +36,12 @@ Object.defineProperty(exports, "__commonJSMin", {
|
|
|
27
36
|
return __commonJSMin;
|
|
28
37
|
}
|
|
29
38
|
});
|
|
39
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function() {
|
|
42
|
+
return __exportAll;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
30
45
|
Object.defineProperty(exports, "__toESM", {
|
|
31
46
|
enumerable: true,
|
|
32
47
|
get: function() {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
|
|
3
|
+
const require_webpack = require("./webpack-CiI-1n9L.cjs");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
3
6
|
//#region src/bundlers/rspack/index.ts
|
|
4
7
|
const CSS_IMPORT_REWRITE_LOADER_NAME = "weapp-tw-css-import-rewrite-loader";
|
|
5
8
|
const LIGHTNING_CSS_LOADER_NAME = "builtin:lightningcss-loader";
|
|
@@ -22,7 +25,7 @@ function includesLoaderName(item, name) {
|
|
|
22
25
|
}
|
|
23
26
|
function createCssImportRewriteLoaderEntry(options) {
|
|
24
27
|
return {
|
|
25
|
-
loader: options.loader ??
|
|
28
|
+
loader: options.loader ?? node_path.default.resolve(__dirname, `./${CSS_IMPORT_REWRITE_LOADER_NAME}.cjs`),
|
|
26
29
|
...options.options === void 0 ? {} : { options: options.options }
|
|
27
30
|
};
|
|
28
31
|
}
|
|
@@ -59,4 +62,7 @@ function patchRspackConfig(config, options = {}) {
|
|
|
59
62
|
return config;
|
|
60
63
|
}
|
|
61
64
|
//#endregion
|
|
62
|
-
|
|
65
|
+
exports.WeappTailwindcss = require_webpack.WeappTailwindcss;
|
|
66
|
+
exports.patchRspackConfig = patchRspackConfig;
|
|
67
|
+
exports.weappTailwindcss = require_webpack.WeappTailwindcss;
|
|
68
|
+
exports.weappTailwindcssPackageDir = require_webpack.weappTailwindcssPackageDir;
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { patchRspackConfig, WeappTailwindcss, WeappTailwindcss as weappTailwindcss, weappTailwindcssPackageDir, } from './bundlers/rspack';
|
|
2
|
-
export type { PatchRspackConfigOptions, PatchRspackCssImportRewriteLoaderOptions, RspackConfigLike, } from './bundlers/rspack';
|
|
3
|
-
export type { UserDefinedOptions } from './types';
|
|
1
|
+
export { patchRspackConfig, WeappTailwindcss, WeappTailwindcss as weappTailwindcss, weappTailwindcssPackageDir, } from './bundlers/rspack/index.js';
|
|
2
|
+
export type { PatchRspackConfigOptions, PatchRspackCssImportRewriteLoaderOptions, RspackConfigLike, } from './bundlers/rspack/index.js';
|
|
3
|
+
export type { UserDefinedOptions } from './types/index.js';
|
package/dist/rspack.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const require_webpack = require("./webpack-kh78iMSS.js");
|
|
4
|
-
let node_path = require("node:path");
|
|
5
|
-
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
1
|
+
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-Dnh2KQbg.js";
|
|
2
|
+
import path from "node:path";
|
|
6
3
|
//#region src/bundlers/rspack/index.ts
|
|
7
4
|
const CSS_IMPORT_REWRITE_LOADER_NAME = "weapp-tw-css-import-rewrite-loader";
|
|
8
5
|
const LIGHTNING_CSS_LOADER_NAME = "builtin:lightningcss-loader";
|
|
@@ -25,7 +22,7 @@ function includesLoaderName(item, name) {
|
|
|
25
22
|
}
|
|
26
23
|
function createCssImportRewriteLoaderEntry(options) {
|
|
27
24
|
return {
|
|
28
|
-
loader: options.loader ??
|
|
25
|
+
loader: options.loader ?? path.resolve(__dirname, `./${CSS_IMPORT_REWRITE_LOADER_NAME}.cjs`),
|
|
29
26
|
...options.options === void 0 ? {} : { options: options.options }
|
|
30
27
|
};
|
|
31
28
|
}
|
|
@@ -62,7 +59,4 @@ function patchRspackConfig(config, options = {}) {
|
|
|
62
59
|
return config;
|
|
63
60
|
}
|
|
64
61
|
//#endregion
|
|
65
|
-
|
|
66
|
-
exports.patchRspackConfig = patchRspackConfig;
|
|
67
|
-
exports.weappTailwindcss = require_webpack.WeappTailwindcss;
|
|
68
|
-
exports.weappTailwindcssPackageDir = require_webpack.weappTailwindcssPackageDir;
|
|
62
|
+
export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss, patchRspackConfig, weappTailwindcssPackageDir };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RuntimeBranch, RuntimeBranchBaseContext, RuntimePlatformFamily } from './types';
|
|
1
|
+
import type { RuntimeBranch, RuntimeBranchBaseContext, RuntimePlatformFamily } from './types.js';
|
|
2
2
|
export declare function createRuntimeBranch(base: RuntimeBranchBaseContext, platformFamily: RuntimePlatformFamily, options: Pick<RuntimeBranch, 'platform'> & Partial<Pick<RuntimeBranch, 'nativeAppPlatform'>>): RuntimeBranch;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { WeappTailwindcssGeneratorTarget } from './types';
|
|
1
|
+
import type { WeappTailwindcssGeneratorTarget } from './types.js';
|
|
2
2
|
export declare const generatorTargetEnvKeys: readonly ["UNI_PLATFORM", "UNI_UTS_PLATFORM", "MPX_CLI_MODE", "MPX_CURRENT_TARGET_MODE", "TARO_ENV", "WEAPP_TW_TARGET", "WEAPP_TAILWINDCSS_TARGET"];
|
|
3
3
|
export declare function shouldUseWebGeneratorTargetFromEnv(): boolean;
|
|
4
|
+
export declare function shouldUseUniAppWebRpxCompatibility(appType: string | undefined): boolean;
|
|
4
5
|
export declare function shouldUseUniAppViteWebViewGeneratorTarget(appType: string | undefined, platform?: string | undefined): boolean;
|
|
5
6
|
export declare function inferGeneratorTargetFromEnv(): WeappTailwindcssGeneratorTarget;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RuntimeBranch, RuntimeBranchContext, RuntimeBranchGeneratorOptions } from './types';
|
|
1
|
+
import type { RuntimeBranch, RuntimeBranchContext, RuntimeBranchGeneratorOptions } from './types.js';
|
|
2
2
|
export declare function resolveRuntimeBranch(context: RuntimeBranchContext): RuntimeBranch;
|
|
3
3
|
export declare function resolveGeneratorRuntimeBranch(options: RuntimeBranchGeneratorOptions, context?: Omit<RuntimeBranchContext, 'generatorTarget'>): RuntimeBranch;
|
|
4
4
|
export declare function shouldUseMiniProgramCssBranch(branch: RuntimeBranch): boolean;
|
|
5
5
|
export declare function shouldUseNativeAppCssBranch(branch: RuntimeBranch): boolean;
|
|
6
|
-
export type { NativeAppPlatform, RuntimeBranch, RuntimeBranchContext, RuntimeBranchGeneratorOptions, RuntimePlatformFamily, TailwindcssBranchVersion, } from './types';
|
|
6
|
+
export type { NativeAppPlatform, RuntimeBranch, RuntimeBranchContext, RuntimeBranchGeneratorOptions, RuntimePlatformFamily, TailwindcssBranchVersion, } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RuntimeBranch, RuntimeBranchBaseContext } from './types';
|
|
1
|
+
import type { RuntimeBranch, RuntimeBranchBaseContext } from './types.js';
|
|
2
2
|
export declare function createMiniProgramRuntimeBranch(base: RuntimeBranchBaseContext): RuntimeBranch;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RuntimeBranch, RuntimeBranchBaseContext } from './types';
|
|
1
|
+
import type { RuntimeBranch, RuntimeBranchBaseContext } from './types.js';
|
|
2
2
|
export declare function createNativeAppRuntimeBranch(base: RuntimeBranchBaseContext): RuntimeBranch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NativeAppPlatform, RuntimeBranchContext } from './types';
|
|
2
|
-
import type { UniUtsPlatformInfo } from '../utils';
|
|
1
|
+
import type { NativeAppPlatform, RuntimeBranchContext } from './types.js';
|
|
2
|
+
import type { UniUtsPlatformInfo } from '../utils/index.js';
|
|
3
3
|
export declare function isRuntimeUniAppXEnabled(value: RuntimeBranchContext['uniAppX']): boolean;
|
|
4
4
|
export declare function normalizeRuntimeUniUtsPlatform(value: RuntimeBranchContext['uniUtsPlatform']): UniUtsPlatformInfo;
|
|
5
5
|
export declare function resolveNativeAppPlatform(platform: UniUtsPlatformInfo): NativeAppPlatform;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TailwindcssBranchVersion } from './types';
|
|
1
|
+
import type { TailwindcssBranchVersion } from './types.js';
|
|
2
2
|
export declare function resolveTailwindcssBranchVersion(_majorVersion: number | undefined): TailwindcssBranchVersion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { AppType } from '../types/shared';
|
|
3
|
-
import type { UniUtsPlatformInfo } from '../utils';
|
|
2
|
+
import type { AppType } from '../types/shared.js';
|
|
3
|
+
import type { UniUtsPlatformInfo } from '../utils/index.js';
|
|
4
4
|
export type TailwindcssBranchVersion = 4;
|
|
5
5
|
export type RuntimePlatformFamily = 'web' | 'mini-program' | 'native-app';
|
|
6
6
|
export type NativeAppPlatform = 'android' | 'ios' | 'harmony' | 'unknown';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RuntimeBranch, RuntimeBranchBaseContext } from './types';
|
|
1
|
+
import type { RuntimeBranch, RuntimeBranchBaseContext } from './types.js';
|
|
2
2
|
export declare function createWebRuntimeBranch(base: RuntimeBranchBaseContext): RuntimeBranch;
|
package/dist/runtime-branch.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './runtime-branch/index';
|
|
1
|
+
export * from './runtime-branch/index.js';
|