weapp-tailwindcss 5.1.15 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +6 -0
- package/README.md +6 -0
- package/bin/{weapp-tailwindcss.js → weapp-tailwindcss.cjs} +1 -1
- package/dist/bundlers/framework-selector.d.ts +2 -2
- package/dist/bundlers/gulp/asset-emission-plan.d.ts +10 -0
- package/dist/bundlers/gulp/frameworks/native/index.d.ts +10 -3
- package/dist/bundlers/gulp/index.d.ts +10 -3
- package/dist/bundlers/gulp/module-graph.d.ts +1 -1
- package/dist/bundlers/gulp/runtime-snapshot.d.ts +4 -2
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/cache-state.d.ts +71 -0
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +45 -0
- package/dist/bundlers/gulp/shared/create-native-framework-plugins.d.ts +9 -2
- package/dist/bundlers/rspack/index.d.ts +2 -2
- package/dist/bundlers/shared/cache.d.ts +1 -1
- package/dist/bundlers/shared/css-imports.d.ts +1 -1
- package/dist/bundlers/shared/css-source-trace.d.ts +2 -2
- package/dist/bundlers/shared/framework-postcss.d.ts +21 -0
- package/dist/bundlers/shared/generator-css/candidates.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +19 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +25 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +30 -0
- package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +4 -72
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +5 -3
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +58 -0
- package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/pipeline.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +6 -0
- package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -0
- package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +32 -0
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +13 -5
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +4 -0
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +5 -0
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +16 -0
- package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +5 -0
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +4 -4
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +7 -9
- package/dist/bundlers/shared/generator-css/types.d.ts +12 -3
- package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +9 -0
- package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +4 -0
- package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +9 -0
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +10 -0
- package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +15 -0
- package/dist/bundlers/shared/generator-css/user-css.d.ts +5 -33
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -1
- package/dist/bundlers/shared/generator-css.d.ts +9 -10
- package/dist/bundlers/shared/runtime-class-set/entries.d.ts +4 -0
- package/dist/bundlers/shared/runtime-class-set/escaped-candidates.d.ts +9 -0
- package/dist/bundlers/shared/runtime-class-set.d.ts +30 -0
- package/dist/bundlers/shared/runtime-entry-type.d.ts +8 -0
- package/dist/bundlers/shared/runtime-signatures.d.ts +8 -0
- package/dist/bundlers/shared/source-candidate-scan-signature.d.ts +13 -0
- package/dist/bundlers/shared/source-candidates/collector.d.ts +8 -0
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +10 -0
- package/dist/bundlers/{vite → shared}/source-candidates/script.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/store.d.ts +2 -0
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +69 -0
- package/dist/bundlers/shared/source-candidates.d.ts +4 -0
- package/dist/bundlers/shared/source-scan/css-entries.d.ts +18 -0
- package/dist/bundlers/shared/source-scan.d.ts +16 -0
- package/dist/bundlers/shared/static-config-content.d.ts +5 -0
- package/dist/bundlers/shared/v4-generation-core.d.ts +9 -1
- package/dist/bundlers/vite/bundle-entries.d.ts +1 -1
- package/dist/bundlers/vite/bundle-state.d.ts +11 -38
- package/dist/bundlers/vite/css-asset-identity.d.ts +11 -0
- package/dist/bundlers/vite/css-finalizer/options.d.ts +54 -0
- package/dist/bundlers/vite/css-finalizer/plugin.d.ts +3 -0
- package/dist/bundlers/vite/css-finalizer.d.ts +1 -43
- package/dist/bundlers/vite/css-memory.d.ts +1 -2
- package/dist/bundlers/vite/frameworks/generic/index.d.ts +2 -2
- package/dist/bundlers/vite/frameworks/taro/index.d.ts +2 -2
- package/dist/bundlers/vite/frameworks/uni-app/index.d.ts +3 -3
- package/dist/bundlers/vite/frameworks/uni-app-x/index.d.ts +3 -3
- package/dist/bundlers/vite/frameworks/weapp-vite/index.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/asset-emission-plan.d.ts +8 -0
- package/dist/bundlers/vite/generate-bundle/bundle-markup-candidates.d.ts +4 -4
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-cache-task.d.ts +34 -0
- package/dist/bundlers/vite/generate-bundle/css-composition-plan.d.ts +58 -0
- package/dist/bundlers/vite/generate-bundle/css-config-directives.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-entry-processing.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +21 -2
- package/dist/bundlers/vite/generate-bundle/css-output.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-share-scope.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-source-plan.d.ts +19 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-decision-plan.d.ts +61 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-result.d.ts +23 -0
- package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +42 -0
- package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +3 -2
- package/dist/bundlers/vite/generate-bundle/finalize/bundle.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +69 -0
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -70
- package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/js-entries.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/js-handler-options.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/js-linking.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +6 -5
- package/dist/bundlers/vite/generate-bundle/memory-debug.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/process-plan.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/remembered-css-plan.d.ts +35 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +5 -6
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +20 -0
- package/dist/bundlers/vite/generate-bundle/runtime-configured-css.d.ts +54 -0
- package/dist/bundlers/vite/generate-bundle/runtime-linked-css.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +3 -3
- package/dist/bundlers/vite/generate-bundle/runtime.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle/scoped-generator.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/sfc-style-source.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/signatures.d.ts +1 -8
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +3 -3
- package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +5 -0
- package/dist/bundlers/vite/generate-bundle/subpackages.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +14 -1
- package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/transform-scheduling.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +8 -7
- package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +3 -2
- package/dist/bundlers/vite/generate-bundle/validate-runtime-candidates.d.ts +22 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +7 -7
- package/dist/bundlers/vite/incremental-runtime-class-set/entries.d.ts +1 -4
- package/dist/bundlers/vite/incremental-runtime-class-set/escaped-candidates.d.ts +1 -3
- package/dist/bundlers/vite/incremental-runtime-class-set.d.ts +2 -30
- package/dist/bundlers/vite/index.d.ts +3 -3
- package/dist/bundlers/vite/js-precheck.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +13 -0
- package/dist/bundlers/vite/processed-css-assets/collector.d.ts +4 -0
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +34 -0
- package/dist/bundlers/vite/processed-css-assets/empty-at-rule.d.ts +1 -0
- package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +42 -0
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +89 -0
- package/dist/bundlers/vite/processed-css-assets/style-files.d.ts +3 -0
- package/dist/bundlers/vite/processed-css-assets.d.ts +4 -71
- package/dist/bundlers/vite/resolve-app-type.d.ts +1 -1
- package/dist/bundlers/vite/rewrite-css-imports.d.ts +3 -1
- package/dist/bundlers/vite/runtime-affecting-signature.d.ts +1 -2
- package/dist/bundlers/vite/runtime-candidate-entry.d.ts +9 -0
- package/dist/bundlers/vite/runtime-class-set.d.ts +4 -4
- package/dist/bundlers/vite/serve-css-generation.d.ts +2 -0
- package/dist/bundlers/vite/serve-js-transform.d.ts +1 -1
- package/dist/bundlers/vite/serve-root-import-shell.d.ts +1 -1
- package/dist/bundlers/vite/shared/create-framework-plugins-runtime.d.ts +2 -0
- package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -8
- package/dist/bundlers/vite/shared/framework-hmr-candidate-state.d.ts +45 -0
- package/dist/bundlers/vite/shared/framework-post-plugin.d.ts +2 -0
- package/dist/bundlers/vite/shared/framework-processed-css-registry.d.ts +22 -0
- package/dist/bundlers/vite/shared/framework-runtime-options.d.ts +1 -0
- package/dist/bundlers/vite/shared/framework-source-candidates-plugin.d.ts +2 -0
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +38 -0
- package/dist/bundlers/vite/shared/framework-strategy.d.ts +4 -4
- package/dist/bundlers/vite/source-candidate-scan-signature.d.ts +2 -13
- package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -10
- package/dist/bundlers/vite/source-candidates.d.ts +1 -68
- package/dist/bundlers/vite/source-output-relations.d.ts +24 -0
- package/dist/bundlers/vite/source-scan/css-entries.d.ts +2 -18
- package/dist/bundlers/vite/source-scan.d.ts +2 -16
- package/dist/bundlers/vite/static-config-content.d.ts +1 -5
- package/dist/bundlers/vite/uni-app-x-css-options.d.ts +1 -1
- package/dist/bundlers/vite/web-css-compat.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/asset-emission-plan.d.ts +18 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +2 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/finalize-assets.d.ts +2 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-result.d.ts +3 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/generated-css-task.d.ts +2 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/helpers.d.ts +11 -41
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/html-js-tasks.d.ts +5 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +4 -10
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +30 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +8 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/memory-trace.d.ts +78 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +43 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/resources.d.ts +30 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/runtime-candidates.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +28 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +21 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +9 -219
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/processed-css-task.d.ts +4 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +2 -2
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +8 -4
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/generic/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/index.d.ts +7 -7
- package/dist/bundlers/webpack/frameworks/mpx/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/taro/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/uni-app/index.d.ts +2 -2
- package/dist/bundlers/webpack/frameworks/weapp-vite/index.d.ts +2 -2
- package/dist/bundlers/webpack/index.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +7 -2
- package/dist/bundlers/webpack/loaders/weapp-tw-css-generation-loader.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/weapp-tw-css-import-rewrite-loader.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/weapp-tw-runtime-classset-loader.d.ts +1 -1
- package/dist/bundlers/webpack/shared/create-framework-plugin/plugin.d.ts +20 -0
- package/dist/bundlers/webpack/shared/create-framework-plugin/watch-output.d.ts +13 -0
- package/dist/bundlers/webpack/shared/create-framework-plugin.d.ts +3 -21
- package/dist/cli/context.d.ts +2 -2
- package/dist/cli/doctor.d.ts +1 -1
- package/dist/cli/helpers/options.d.ts +3 -3
- package/dist/cli/helpers.d.ts +1 -1
- package/dist/cli.cjs +37012 -0
- package/dist/cli.js +145 -176
- package/dist/compiler/artifact.d.ts +14 -0
- package/dist/compiler/candidate-index.d.ts +10 -0
- package/dist/compiler/compilation-change-coordinator.d.ts +28 -0
- package/dist/compiler/compilation-dependency-state.d.ts +16 -0
- package/dist/compiler/compilation-scope-graph.d.ts +31 -0
- package/dist/compiler/compilation-session-pool.d.ts +54 -0
- package/dist/compiler/compiler-owner-state.d.ts +3 -0
- package/dist/compiler/composition.d.ts +8 -0
- package/dist/compiler/emission-plan.d.ts +26 -0
- package/dist/compiler/index.d.ts +23 -0
- package/dist/compiler/invalidation.d.ts +3 -0
- package/dist/compiler/mode.d.ts +3 -0
- package/dist/compiler/owner-lifecycle.d.ts +1 -0
- package/dist/compiler/platform-adapter.d.ts +9 -0
- package/dist/compiler/runtime-affecting-signature.d.ts +2 -0
- package/dist/compiler/runtime-build-state.d.ts +6 -0
- package/dist/compiler/runtime-snapshot.d.ts +53 -0
- package/dist/compiler/scope-planner.d.ts +6 -0
- package/dist/compiler/semantic-css.d.ts +66 -0
- package/dist/compiler/session.d.ts +13 -0
- package/dist/compiler/shadow-gate.d.ts +26 -0
- package/dist/compiler/shadow-report-session.d.ts +37 -0
- package/dist/compiler/shadow-report.d.ts +15 -0
- package/dist/compiler/source-graph.d.ts +32 -0
- package/dist/compiler/tailwind-generation-session-pool.d.ts +22 -0
- package/dist/compiler/types.d.ts +95 -0
- package/dist/constants.d.ts +2 -2
- package/dist/context/compiler-context-cache.d.ts +1 -1
- package/dist/context/custom-attributes.d.ts +1 -1
- package/dist/context/handlers.d.ts +3 -3
- package/dist/context/index.d.ts +1 -1
- package/dist/context/runtime-package-replacements.d.ts +1 -1
- package/dist/context/style-options.d.ts +1 -1
- package/dist/context/tailwindcss.d.ts +3 -3
- package/dist/{context-VeFq_8vW.js → context-PZXBqrAJ.cjs} +32 -94
- package/dist/{context-BgGWVAmN.mjs → context-oTkxC5aZ.js} +23 -12
- package/dist/{core.mjs → core.cjs} +13 -12
- package/dist/core.d.ts +2 -2
- package/dist/core.js +12 -13
- package/dist/css-imports-DfNC3e6a.cjs +43 -0
- package/dist/css-loader-runtime-CSv0lKqV.cjs +11 -0
- package/dist/css-macro/postcss.cjs +19 -0
- package/dist/css-macro/postcss.js +2 -19
- package/dist/{css-macro.mjs → css-macro.cjs} +11 -8
- package/dist/css-macro.d.ts +2 -2
- package/dist/css-macro.js +8 -11
- package/dist/{defaults.mjs → defaults.cjs} +16 -11
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.js +11 -16
- package/dist/{escape.mjs → escape.cjs} +18 -4
- package/dist/escape.js +4 -18
- package/dist/framework/platform.d.ts +1 -1
- package/dist/{framework.mjs → framework.cjs} +47 -25
- package/dist/framework.d.ts +1 -1
- package/dist/framework.js +25 -47
- package/dist/generator/index.d.ts +6 -6
- package/dist/generator/options.d.ts +3 -3
- package/dist/generator/types.d.ts +2 -2
- package/dist/{generator-CEnUsjed.js → generator-C8D5cnbe.cjs} +730 -468
- package/dist/{generator-CEo920So.mjs → generator-CDdzqf1S.js} +747 -497
- package/dist/generator.cjs +12 -0
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +2 -12
- package/dist/{gulp-3m1dAiig.js → gulp-Cjcss8T_.cjs} +326 -241
- package/dist/{gulp-DP71z1jG.mjs → gulp-DNXQvDUw.js} +316 -234
- package/dist/gulp.cjs +5 -0
- package/dist/gulp.d.ts +4 -4
- package/dist/gulp.js +2 -5
- package/dist/{hmr-timing-1aS6--U7.mjs → hmr-timing-CuJwQzDc.js} +5230 -3259
- package/dist/hmr-timing-DMLfNfGG.cjs +555 -0
- package/dist/index.cjs +45 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -45
- package/dist/js/JsTokenUpdater.d.ts +1 -1
- package/dist/js/ModuleGraph.d.ts +3 -3
- package/dist/js/NodePathWalker.d.ts +2 -2
- package/dist/js/babel/process.d.ts +2 -2
- package/dist/js/babel.d.ts +8 -8
- package/dist/js/evalTransforms.d.ts +2 -2
- package/dist/js/fast-path/oxc.d.ts +1 -1
- package/dist/js/handlers.d.ts +2 -2
- package/dist/js/index.d.ts +3 -3
- package/dist/js/literal-transform.d.ts +1 -1
- package/dist/js/module-graph/ignored-exports.d.ts +4 -4
- package/dist/js/module-graph/types.d.ts +2 -2
- package/dist/js/node-path-walker/export-handlers.d.ts +1 -1
- package/dist/js/precheck.d.ts +1 -1
- package/dist/js/replacement-cache.d.ts +1 -1
- package/dist/js/sourceAnalysis.d.ts +3 -3
- package/dist/js/taggedTemplateIgnore.d.ts +1 -1
- package/dist/object-Bvy6-w9r.js +47 -0
- package/dist/object-C_Vr6_S5.cjs +58 -0
- package/dist/options-DlvhQwWB.cjs +775 -0
- package/dist/pipeline-helpers-XtUmUlci.cjs +955 -0
- package/dist/postcss-html-transform.cjs +7 -0
- package/dist/postcss-html-transform.js +3 -5
- package/dist/postcss.cjs +15 -0
- package/dist/postcss.js +7 -11
- package/dist/presets/hbuilderx.d.ts +2 -2
- package/dist/presets/index.d.ts +4 -4
- package/dist/presets/shared.d.ts +1 -1
- package/dist/presets/taro.d.ts +2 -2
- package/dist/presets/uni-app-x.d.ts +1 -1
- package/dist/presets/uni-app.d.ts +2 -2
- package/dist/{presets.mjs → presets.cjs} +37 -24
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +24 -36
- package/dist/reset.cjs +19 -0
- package/dist/reset.d.ts +2 -2
- package/dist/reset.js +2 -19
- package/dist/{rolldown-runtime-emK7D4bc.js → rolldown-runtime-CVvi-lCc.cjs} +15 -0
- package/dist/{rspack.mjs → rspack.cjs} +10 -4
- package/dist/rspack.d.ts +3 -3
- package/dist/rspack.js +4 -10
- package/dist/runtime-branch/create-branch.d.ts +1 -1
- package/dist/runtime-branch/generator-target-env.d.ts +1 -1
- package/dist/runtime-branch/index.d.ts +2 -2
- package/dist/runtime-branch/mini-program.d.ts +1 -1
- package/dist/runtime-branch/native-app.d.ts +1 -1
- package/dist/runtime-branch/platform.d.ts +2 -2
- package/dist/runtime-branch/tailwind-version.d.ts +1 -1
- package/dist/runtime-branch/types.d.ts +2 -2
- package/dist/runtime-branch/web.d.ts +1 -1
- package/dist/runtime-branch.d.ts +1 -1
- package/dist/runtime-registry-Y7NrD2WH.cjs +31 -0
- package/dist/shared/classname-transform.d.ts +1 -1
- package/dist/shared/mpx-plugin-owner.d.ts +2 -0
- package/dist/shared/mpx.d.ts +1 -1
- package/dist/{source-candidate-scan-signature-Cf7259PR.mjs → source-candidate-scan-signature-B0S7f5P7.js} +26 -336
- package/dist/{source-candidate-scan-signature-BAahhiwb.js → source-candidate-scan-signature-BmSuoxR9.cjs} +31 -414
- package/dist/style-injector/internal.d.ts +6 -6
- package/dist/style-options-CEfXwZzX.cjs +75 -0
- package/dist/tailwindcss/candidates.d.ts +2 -2
- package/dist/tailwindcss/index.d.ts +1 -1
- package/dist/tailwindcss/runtime/cache.d.ts +1 -1
- package/dist/tailwindcss/runtime-factory.d.ts +2 -2
- package/dist/tailwindcss/runtime-options.d.ts +1 -1
- package/dist/tailwindcss/runtime-types.d.ts +2 -2
- package/dist/tailwindcss/runtime.d.ts +2 -2
- package/dist/tailwindcss/source-scan.d.ts +2 -2
- package/dist/tailwindcss/targets.d.ts +1 -1
- package/dist/tailwindcss/v4/config.d.ts +1 -1
- package/dist/tailwindcss/v4/css-sources.d.ts +2 -1
- package/dist/tailwindcss/v4/index.d.ts +2 -2
- package/dist/tailwindcss/v4/multi-runtime.d.ts +1 -1
- package/dist/tailwindcss/v4/runtime-factory.d.ts +5 -5
- package/dist/tailwindcss/v4/runtime-options.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/css-macro-source.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/cache-stats.d.ts +26 -0
- package/dist/tailwindcss/v4-engine/generator/css-compat.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/engine.d.ts +2 -0
- package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +51 -0
- package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +17 -0
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +2 -1
- package/dist/tailwindcss/v4-engine/generator.d.ts +2 -28
- package/dist/tailwindcss/v4-engine/index.d.ts +5 -5
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +2 -2
- package/dist/tailwindcss/v4-engine/source.d.ts +2 -2
- package/dist/tailwindcss/v4-engine/types.d.ts +1 -0
- package/dist/{tailwindcss-KBYPJ2DW.js → tailwindcss-Cs94gJgf.cjs} +10 -770
- package/dist/{tailwindcss-xs704TRw.mjs → tailwindcss-D7TGiZR2.js} +23 -23
- package/dist/transform-BUEyOCT7.cjs +341 -0
- package/dist/transform-BbaPIji9.js +342 -0
- package/dist/typedoc.export.d.ts +4 -4
- package/dist/types/index.d.ts +7 -7
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/typedoc-tailwindcss-runtime.d.ts +3 -3
- package/dist/types/user-defined-options/general.d.ts +5 -5
- package/dist/types/user-defined-options/important.d.ts +2 -2
- package/dist/types/user-defined-options/index.d.ts +9 -9
- package/dist/types/user-defined-options/matcher.d.ts +2 -2
- package/dist/types.cjs +0 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -0
- package/dist/uni-app-x/harmony.d.ts +1 -0
- package/dist/uni-app-x/index.d.ts +2 -2
- package/dist/uni-app-x/options.d.ts +1 -1
- package/dist/uni-app-x/style-asset/harmony-apply.d.ts +1 -0
- package/dist/uni-app-x/style-asset/style-value.d.ts +3 -0
- package/dist/uni-app-x/style-asset.d.ts +5 -4
- package/dist/uni-app-x/transform.d.ts +1 -1
- package/dist/uni-app-x/vite/harmony-apply.d.ts +19 -0
- package/dist/uni-app-x/vite/native-target.d.ts +2 -0
- package/dist/uni-app-x/vite.d.ts +5 -2
- package/dist/unocss/index.d.ts +1 -1
- package/dist/utils/disabled.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/{hmr-timing-B8p4f0ca.js → v4-generation-core-D7MuR5ZF.cjs} +4886 -3330
- package/dist/{vite-nXZEiwG0.mjs → vite-BI1TeUPO.js} +6148 -4522
- package/dist/{vite-DUVjMduj.js → vite-CBzmUTu-.cjs} +6267 -4666
- package/dist/vite.cjs +4 -0
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +2 -4
- package/dist/watch-dependencies-BZGubvuJ.cjs +40 -0
- package/dist/{weapp-tw-css-generation-loader.js → weapp-tw-css-generation-loader.cjs} +3 -2
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +201 -0
- package/dist/{weapp-tw-runtime-classset-loader.js → weapp-tw-runtime-classset-loader.cjs} +19 -15
- package/dist/{webpack-nppysF4B.js → webpack-Dao6bWEj.cjs} +1000 -1473
- package/dist/{webpack-C_UUFRgj.mjs → webpack-dAY9h8r8.js} +1462 -1185
- package/dist/webpack.cjs +5 -0
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +2 -5
- package/dist/wxml/Tokenizer.d.ts +2 -2
- package/dist/wxml/custom-attributes.d.ts +1 -1
- package/dist/wxml/index.d.ts +2 -2
- package/dist/wxml/shared.d.ts +1 -1
- package/dist/wxml/utils/codegen/legacy-rewriter.d.ts +1 -1
- package/dist/wxml/utils/codegen/legacy-visitor.d.ts +2 -2
- package/dist/wxml/utils/codegen.d.ts +1 -1
- package/dist/wxml/utils/custom-template.d.ts +2 -2
- package/dist/wxml/utils/fragment-helpers.d.ts +2 -2
- package/dist/wxml/utils/fragment-updater.d.ts +2 -2
- package/dist/wxml/utils/template-fragments.d.ts +2 -2
- package/dist/wxml/utils.d.ts +5 -5
- package/dist/wxml-DSMNuUaP.cjs +38609 -0
- package/dist/{cli.mjs → wxml-IBzZSaQC.js} +237 -718
- package/package.json +59 -54
- package/dist/css-macro/postcss.mjs +0 -2
- package/dist/generator.mjs +0 -2
- package/dist/gulp.mjs +0 -2
- package/dist/index.mjs +0 -9
- package/dist/object-BJSWl-E5.mjs +0 -9
- package/dist/object-COs_Mw6p.js +0 -14
- package/dist/postcss-html-transform.mjs +0 -5
- package/dist/postcss.mjs +0 -11
- package/dist/reset.mjs +0 -2
- package/dist/transform-B_KM9sLX.mjs +0 -14930
- package/dist/transform-CcYptivi.js +0 -14927
- package/dist/types.mjs +0 -1
- package/dist/vite.mjs +0 -2
- package/dist/watch-dependencies-bpG6kmAf.js +0 -80
- package/dist/weapp-tw-css-import-rewrite-loader-DNk0IxAt.js +0 -10198
- package/dist/weapp-tw-css-import-rewrite-loader.js +0 -10
- package/dist/webpack.mjs +0 -2
- package/dist/wxml-Ce10eREX.js +0 -3979
- package/dist/wxml-DdGdeqaH.mjs +0 -3861
- /package/dist/{auto-2dg_uhEJ.mjs → auto-2dg_uhEJ.js} +0 -0
- /package/dist/{auto-DtU6f3X6.js → auto-DtU6f3X6.cjs} +0 -0
- /package/dist/bundlers/{vite → shared}/source-scan/dependencies.d.ts +0 -0
- /package/dist/{cache-options-DavPxrhC.js → cache-options-DavPxrhC.cjs} +0 -0
- /package/dist/{cache-options-DwBtLwQe.mjs → cache-options-DwBtLwQe.js} +0 -0
- /package/dist/{logger-BNzxZbZj.mjs → logger-BNzxZbZj.js} +0 -0
- /package/dist/{logger-TlKT3xmR.js → logger-TlKT3xmR.cjs} +0 -0
- /package/dist/{utils-CuKLf1Zv.js → utils-CuKLf1Zv.cjs} +0 -0
- /package/dist/{utils-MVwpU07P.mjs → utils-MVwpU07P.js} +0 -0
package/dist/css-macro.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let tailwindcss_plugin = require("tailwindcss/plugin");
|
|
5
|
-
tailwindcss_plugin = require_rolldown_runtime.__toESM(tailwindcss_plugin);
|
|
6
|
-
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
1
|
+
import { a as markCssMacroPlugin } from "./auto-2dg_uhEJ.js";
|
|
2
|
+
import { t as defu } from "./utils-MVwpU07P.js";
|
|
3
|
+
import plugin from "tailwindcss/plugin";
|
|
7
4
|
//#region src/css-macro/constants.ts
|
|
8
5
|
const queryKey = "weapp-tw-platform";
|
|
9
6
|
const ifdefAtRule = "weapp-tw-ifdef";
|
|
@@ -24,8 +21,8 @@ const defaultOptions = {
|
|
|
24
21
|
dynamic: true,
|
|
25
22
|
variantsMap: {}
|
|
26
23
|
};
|
|
27
|
-
const cssMacroFactory =
|
|
28
|
-
const { dynamic, variantsMap } =
|
|
24
|
+
const cssMacroFactory = plugin.withOptions((options) => {
|
|
25
|
+
const { dynamic, variantsMap } = defu(options ?? {}, defaultOptions);
|
|
29
26
|
const staticVariants = Object.entries(variantsMap).map(([name, config]) => {
|
|
30
27
|
if (typeof config === "string") return {
|
|
31
28
|
name,
|
|
@@ -50,8 +47,8 @@ const cssMacroFactory = tailwindcss_plugin.default.withOptions((options) => {
|
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
});
|
|
53
|
-
const cssMacro =
|
|
54
|
-
return
|
|
50
|
+
const cssMacro = markCssMacroPlugin(((options) => {
|
|
51
|
+
return markCssMacroPlugin(cssMacroFactory(options));
|
|
55
52
|
}));
|
|
56
53
|
const cssMacroOptionsFunction = cssMacro;
|
|
57
54
|
const cssMacroFactoryOptionsFunction = cssMacroFactory;
|
|
@@ -59,4 +56,4 @@ cssMacroOptionsFunction.__isOptionsFunction = cssMacroFactoryOptionsFunction.__i
|
|
|
59
56
|
cssMacroOptionsFunction.__pluginFunction = cssMacroFactoryOptionsFunction.__pluginFunction;
|
|
60
57
|
cssMacroOptionsFunction.__configFunction = cssMacroFactoryOptionsFunction.__configFunction;
|
|
61
58
|
//#endregion
|
|
62
|
-
|
|
59
|
+
export { cssMacro as default };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./utils-CuKLf1Zv.cjs");
|
|
3
|
+
const require_cache_options = require("./cache-options-DavPxrhC.cjs");
|
|
4
|
+
let _weapp_core_escape = require("@weapp-core/escape");
|
|
5
|
+
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
4
6
|
//#region src/defaults.ts
|
|
5
7
|
const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty)ss$/;
|
|
6
8
|
const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|ty|xhs)ml|swan)$/;
|
|
@@ -58,12 +60,12 @@ function getDefaultOptions() {
|
|
|
58
60
|
wxsMatcher: alwaysFalse,
|
|
59
61
|
cssPreflight: getDefaultCssPreflight(),
|
|
60
62
|
disabled: false,
|
|
61
|
-
onLoad: noop,
|
|
62
|
-
onStart: noop,
|
|
63
|
-
onEnd: noop,
|
|
64
|
-
onUpdate: noop,
|
|
63
|
+
onLoad: _weapp_tailwindcss_shared.noop,
|
|
64
|
+
onStart: _weapp_tailwindcss_shared.noop,
|
|
65
|
+
onEnd: _weapp_tailwindcss_shared.noop,
|
|
66
|
+
onUpdate: _weapp_tailwindcss_shared.noop,
|
|
65
67
|
customAttributes: {},
|
|
66
|
-
customReplaceDictionary: MappingChars2String,
|
|
68
|
+
customReplaceDictionary: _weapp_core_escape.MappingChars2String,
|
|
67
69
|
appType: void 0,
|
|
68
70
|
arbitraryValues: {
|
|
69
71
|
allowDoubleQuotes: false,
|
|
@@ -94,7 +96,7 @@ function getDefaultOptions() {
|
|
|
94
96
|
cache: true,
|
|
95
97
|
cacheKey: "st:unambiguous",
|
|
96
98
|
cacheMaxEntries: 128,
|
|
97
|
-
cacheMaxSourceLength: DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
|
|
99
|
+
cacheMaxSourceLength: require_cache_options.DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
|
|
98
100
|
},
|
|
99
101
|
postcssOptions: {},
|
|
100
102
|
cssRemoveProperty: true,
|
|
@@ -106,10 +108,13 @@ function getDefaultOptions() {
|
|
|
106
108
|
generator: {},
|
|
107
109
|
cssSourceTrace: false,
|
|
108
110
|
tailwindcssRuntimeOptions: { filter(className) {
|
|
109
|
-
return !isAllowedClassName(className);
|
|
111
|
+
return !(0, _weapp_core_escape.isAllowedClassName)(className);
|
|
110
112
|
} },
|
|
111
113
|
logLevel: "info"
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
116
|
//#endregion
|
|
115
|
-
|
|
117
|
+
exports.TAILWIND_V4_CSS_PREFLIGHT = TAILWIND_V4_CSS_PREFLIGHT;
|
|
118
|
+
exports.getDefaultCssPreflight = getDefaultCssPreflight;
|
|
119
|
+
exports.getDefaultOptions = getDefaultOptions;
|
|
120
|
+
exports.resolveDefaultCssPreflight = resolveDefaultCssPreflight;
|
package/dist/defaults.d.ts
CHANGED
package/dist/defaults.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let _weapp_core_escape = require("@weapp-core/escape");
|
|
5
|
-
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
1
|
+
import { a as noop } from "./utils-MVwpU07P.js";
|
|
2
|
+
import { t as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH } from "./cache-options-DwBtLwQe.js";
|
|
3
|
+
import { MappingChars2String, isAllowedClassName } from "@weapp-core/escape";
|
|
6
4
|
//#region src/defaults.ts
|
|
7
5
|
const CSS_FILE_PATTERN = /.+\.(?:wx|ac|jx|tt|q|c|ty)ss$/;
|
|
8
6
|
const HTML_FILE_PATTERN = /.+\.(?:(?:wx|ax|jx|ks|tt|q|ty|xhs)ml|swan)$/;
|
|
@@ -60,12 +58,12 @@ function getDefaultOptions() {
|
|
|
60
58
|
wxsMatcher: alwaysFalse,
|
|
61
59
|
cssPreflight: getDefaultCssPreflight(),
|
|
62
60
|
disabled: false,
|
|
63
|
-
onLoad:
|
|
64
|
-
onStart:
|
|
65
|
-
onEnd:
|
|
66
|
-
onUpdate:
|
|
61
|
+
onLoad: noop,
|
|
62
|
+
onStart: noop,
|
|
63
|
+
onEnd: noop,
|
|
64
|
+
onUpdate: noop,
|
|
67
65
|
customAttributes: {},
|
|
68
|
-
customReplaceDictionary:
|
|
66
|
+
customReplaceDictionary: MappingChars2String,
|
|
69
67
|
appType: void 0,
|
|
70
68
|
arbitraryValues: {
|
|
71
69
|
allowDoubleQuotes: false,
|
|
@@ -96,7 +94,7 @@ function getDefaultOptions() {
|
|
|
96
94
|
cache: true,
|
|
97
95
|
cacheKey: "st:unambiguous",
|
|
98
96
|
cacheMaxEntries: 128,
|
|
99
|
-
cacheMaxSourceLength:
|
|
97
|
+
cacheMaxSourceLength: DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH
|
|
100
98
|
},
|
|
101
99
|
postcssOptions: {},
|
|
102
100
|
cssRemoveProperty: true,
|
|
@@ -108,13 +106,10 @@ function getDefaultOptions() {
|
|
|
108
106
|
generator: {},
|
|
109
107
|
cssSourceTrace: false,
|
|
110
108
|
tailwindcssRuntimeOptions: { filter(className) {
|
|
111
|
-
return !
|
|
109
|
+
return !isAllowedClassName(className);
|
|
112
110
|
} },
|
|
113
111
|
logLevel: "info"
|
|
114
112
|
};
|
|
115
113
|
}
|
|
116
114
|
//#endregion
|
|
117
|
-
|
|
118
|
-
exports.getDefaultCssPreflight = getDefaultCssPreflight;
|
|
119
|
-
exports.getDefaultOptions = getDefaultOptions;
|
|
120
|
-
exports.resolveDefaultCssPreflight = resolveDefaultCssPreflight;
|
|
115
|
+
export { TAILWIND_V4_CSS_PREFLIGHT, getDefaultCssPreflight, getDefaultOptions, resolveDefaultCssPreflight };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _weapp_core_escape = require("@weapp-core/escape");
|
|
2
3
|
//#region src/utils/object.ts
|
|
3
4
|
function definedEntries(value) {
|
|
4
5
|
return Object.entries(value).filter(([, item]) => item !== void 0);
|
|
@@ -11,12 +12,12 @@ function omitUndefined(value) {
|
|
|
11
12
|
const NEWLINE_RE = /[\n\r]+/g;
|
|
12
13
|
function replaceWxml(original, options = {
|
|
13
14
|
keepEOL: false,
|
|
14
|
-
escapeMap: MappingChars2String
|
|
15
|
+
escapeMap: _weapp_core_escape.MappingChars2String
|
|
15
16
|
}) {
|
|
16
17
|
const { keepEOL, escapeMap, ignoreHead } = options;
|
|
17
18
|
let res = original;
|
|
18
19
|
if (!keepEOL) res = res.replaceAll(NEWLINE_RE, "");
|
|
19
|
-
res = escape(res, omitUndefined({
|
|
20
|
+
res = (0, _weapp_core_escape.escape)(res, omitUndefined({
|
|
20
21
|
map: escapeMap,
|
|
21
22
|
ignoreHead
|
|
22
23
|
}));
|
|
@@ -26,4 +27,17 @@ function replaceWxml(original, options = {
|
|
|
26
27
|
//#region src/escape.ts
|
|
27
28
|
const weappTwIgnore = String.raw;
|
|
28
29
|
//#endregion
|
|
29
|
-
|
|
30
|
+
exports.escape = replaceWxml;
|
|
31
|
+
Object.defineProperty(exports, "isAllowedClassName", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function() {
|
|
34
|
+
return _weapp_core_escape.isAllowedClassName;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "unescape", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function() {
|
|
40
|
+
return _weapp_core_escape.unescape;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
exports.weappTwIgnore = weappTwIgnore;
|
package/dist/escape.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
let _weapp_core_escape = require("@weapp-core/escape");
|
|
1
|
+
import { MappingChars2String, escape, isAllowedClassName, unescape } from "@weapp-core/escape";
|
|
3
2
|
//#region src/utils/object.ts
|
|
4
3
|
function definedEntries(value) {
|
|
5
4
|
return Object.entries(value).filter(([, item]) => item !== void 0);
|
|
@@ -12,12 +11,12 @@ function omitUndefined(value) {
|
|
|
12
11
|
const NEWLINE_RE = /[\n\r]+/g;
|
|
13
12
|
function replaceWxml(original, options = {
|
|
14
13
|
keepEOL: false,
|
|
15
|
-
escapeMap:
|
|
14
|
+
escapeMap: MappingChars2String
|
|
16
15
|
}) {
|
|
17
16
|
const { keepEOL, escapeMap, ignoreHead } = options;
|
|
18
17
|
let res = original;
|
|
19
18
|
if (!keepEOL) res = res.replaceAll(NEWLINE_RE, "");
|
|
20
|
-
res =
|
|
19
|
+
res = escape(res, omitUndefined({
|
|
21
20
|
map: escapeMap,
|
|
22
21
|
ignoreHead
|
|
23
22
|
}));
|
|
@@ -27,17 +26,4 @@ function replaceWxml(original, options = {
|
|
|
27
26
|
//#region src/escape.ts
|
|
28
27
|
const weappTwIgnore = String.raw;
|
|
29
28
|
//#endregion
|
|
30
|
-
|
|
31
|
-
Object.defineProperty(exports, "isAllowedClassName", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function() {
|
|
34
|
-
return _weapp_core_escape.isAllowedClassName;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "unescape", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function() {
|
|
40
|
-
return _weapp_core_escape.unescape;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
exports.weappTwIgnore = weappTwIgnore;
|
|
29
|
+
export { replaceWxml as escape, isAllowedClassName, unescape, weappTwIgnore };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DetectableAppType } from './index';
|
|
1
|
+
import type { DetectableAppType } from './index.js';
|
|
2
2
|
export declare function normalizeFrameworkStylePlatform(platform: string | undefined, appType: DetectableAppType | undefined): string | undefined;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CVvi-lCc.cjs");
|
|
3
|
+
let node_fs = require("node:fs");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
6
|
+
let node_process = require("node:process");
|
|
7
|
+
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
4
8
|
//#region src/framework/index.ts
|
|
5
9
|
const KNOWN_MAC_HBUILDERX_PLUGIN_DIRS = ["/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite", "/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli"];
|
|
6
10
|
const HBUILDERX_PLUGIN_CWD_RE = /[\\/]HBuilderX(?:\.[^\\/]*)?(?:[\\/]Contents[\\/]HBuilderX)?[\\/]plugins[\\/]uniapp-cli(?:-vite)?(?:[\\/]|$)/i;
|
|
@@ -25,14 +29,14 @@ const MINI_PROGRAM_PLATFORMS = /* @__PURE__ */ new Set([
|
|
|
25
29
|
const MPX_MARKERS = [["src/app.mpx", "mpx"], ["app.mpx", "mpx"]];
|
|
26
30
|
function getProcessEnv() {
|
|
27
31
|
return {
|
|
28
|
-
MPX_CLI_MODE:
|
|
29
|
-
MPX_CURRENT_TARGET_MODE:
|
|
30
|
-
NODE_PATH:
|
|
31
|
-
TARO_ENV:
|
|
32
|
-
UNI_PLATFORM:
|
|
33
|
-
UNI_UTS_PLATFORM:
|
|
34
|
-
WEAPP_TAILWINDCSS_TARGET:
|
|
35
|
-
WEAPP_TW_TARGET:
|
|
32
|
+
MPX_CLI_MODE: node_process.default.env["MPX_CLI_MODE"],
|
|
33
|
+
MPX_CURRENT_TARGET_MODE: node_process.default.env["MPX_CURRENT_TARGET_MODE"],
|
|
34
|
+
NODE_PATH: node_process.default.env["NODE_PATH"],
|
|
35
|
+
TARO_ENV: node_process.default.env["TARO_ENV"],
|
|
36
|
+
UNI_PLATFORM: node_process.default.env["UNI_PLATFORM"],
|
|
37
|
+
UNI_UTS_PLATFORM: node_process.default.env["UNI_UTS_PLATFORM"],
|
|
38
|
+
WEAPP_TAILWINDCSS_TARGET: node_process.default.env["WEAPP_TAILWINDCSS_TARGET"],
|
|
39
|
+
WEAPP_TW_TARGET: node_process.default.env["WEAPP_TW_TARGET"]
|
|
36
40
|
};
|
|
37
41
|
}
|
|
38
42
|
function resolveDependencyNames(pkg) {
|
|
@@ -70,13 +74,13 @@ function resolvePlatformInfo(value) {
|
|
|
70
74
|
}
|
|
71
75
|
function hasKnownHBuilderXPluginPrefix(normalizedCwd) {
|
|
72
76
|
for (const dir of KNOWN_MAC_HBUILDERX_PLUGIN_DIRS) {
|
|
73
|
-
const normalizedDir =
|
|
74
|
-
if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${
|
|
77
|
+
const normalizedDir = node_path.default.normalize(dir);
|
|
78
|
+
if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${node_path.default.sep}`)) return true;
|
|
75
79
|
}
|
|
76
80
|
return false;
|
|
77
81
|
}
|
|
78
82
|
function matchesHBuilderXPluginCwd(cwd) {
|
|
79
|
-
const normalized =
|
|
83
|
+
const normalized = node_path.default.normalize(cwd);
|
|
80
84
|
if (hasKnownHBuilderXPluginPrefix(normalized)) return true;
|
|
81
85
|
return HBUILDERX_PLUGIN_CWD_RE.test(normalized);
|
|
82
86
|
}
|
|
@@ -84,7 +88,7 @@ function isRunningInHBuilderX(options = {}) {
|
|
|
84
88
|
const env = options.env ?? getProcessEnv();
|
|
85
89
|
const nodePath = "nodePath" in options ? options.nodePath : env.NODE_PATH;
|
|
86
90
|
if (!(nodePath == null || nodePath.trim().length === 0)) return false;
|
|
87
|
-
return matchesHBuilderXPluginCwd(options.cwd ??
|
|
91
|
+
return matchesHBuilderXPluginCwd(options.cwd ?? node_process.default.cwd());
|
|
88
92
|
}
|
|
89
93
|
function resolvePlatform(value) {
|
|
90
94
|
return resolvePlatformInfo(value);
|
|
@@ -159,29 +163,29 @@ function detectAppTypeFromPackageJson(pkg) {
|
|
|
159
163
|
if (isUniAppPackage(pkg)) return "uni-app";
|
|
160
164
|
}
|
|
161
165
|
function tryReadJson(file) {
|
|
162
|
-
if (!existsSync(file)) return;
|
|
166
|
+
if (!(0, node_fs.existsSync)(file)) return;
|
|
163
167
|
try {
|
|
164
|
-
return JSON.parse(readFileSync(file, "utf8"));
|
|
168
|
+
return JSON.parse((0, node_fs.readFileSync)(file, "utf8"));
|
|
165
169
|
} catch {}
|
|
166
170
|
}
|
|
167
171
|
function detectAppTypeFromMarkers(root) {
|
|
168
|
-
for (const [relativePath, appType] of MPX_MARKERS) if (existsSync(
|
|
172
|
+
for (const [relativePath, appType] of MPX_MARKERS) if ((0, node_fs.existsSync)(node_path.default.join(root, relativePath))) return appType;
|
|
169
173
|
}
|
|
170
174
|
function detectAppTypeFromRoot(root, searchUp = true) {
|
|
171
|
-
const resolvedRoot =
|
|
172
|
-
if (!existsSync(resolvedRoot)) return;
|
|
175
|
+
const resolvedRoot = node_path.default.resolve(root);
|
|
176
|
+
if (!(0, node_fs.existsSync)(resolvedRoot)) return;
|
|
173
177
|
const markerDetected = detectAppTypeFromMarkers(resolvedRoot);
|
|
174
178
|
if (markerDetected) return markerDetected;
|
|
175
179
|
let current = resolvedRoot;
|
|
176
180
|
while (true) {
|
|
177
|
-
if (isUniAppXManifest(tryReadJson(
|
|
178
|
-
const pkg = tryReadJson(
|
|
181
|
+
if (isUniAppXManifest(tryReadJson(node_path.default.join(current, MANIFEST_JSON_FILE)))) return "uni-app-x";
|
|
182
|
+
const pkg = tryReadJson(node_path.default.join(current, PACKAGE_JSON_FILE));
|
|
179
183
|
if (pkg) {
|
|
180
184
|
const detected = detectAppTypeFromPackageJson(pkg);
|
|
181
185
|
if (detected) return detected;
|
|
182
186
|
}
|
|
183
187
|
if (!searchUp) break;
|
|
184
|
-
const parent =
|
|
188
|
+
const parent = node_path.default.dirname(current);
|
|
185
189
|
if (parent === current) break;
|
|
186
190
|
current = parent;
|
|
187
191
|
}
|
|
@@ -198,10 +202,28 @@ function detectAppType(options = {}) {
|
|
|
198
202
|
}
|
|
199
203
|
const env = options.env ?? (options.detectEnv ? getProcessEnv() : void 0);
|
|
200
204
|
if (env) return detectAppTypeFromEnv(env, {
|
|
201
|
-
cwd: options.cwd ?? options.root ?? (options.detectEnv ?
|
|
205
|
+
cwd: options.cwd ?? options.root ?? (options.detectEnv ? node_process.default.cwd() : void 0),
|
|
202
206
|
hbuilderxVite: options.hbuilderxVite
|
|
203
207
|
});
|
|
204
208
|
}
|
|
205
209
|
const resolveImplicitAppTypeFromViteRoot = (root) => detectAppType({ root });
|
|
206
210
|
//#endregion
|
|
207
|
-
|
|
211
|
+
exports.detectAppType = detectAppType;
|
|
212
|
+
exports.detectAppTypeFromEnv = detectAppTypeFromEnv;
|
|
213
|
+
exports.detectAppTypeFromPackageJson = detectAppTypeFromPackageJson;
|
|
214
|
+
exports.isMpxPackage = isMpxPackage;
|
|
215
|
+
exports.isRunningInHBuilderX = isRunningInHBuilderX;
|
|
216
|
+
exports.isTaroPackage = isTaroPackage;
|
|
217
|
+
exports.isUniAppPackage = isUniAppPackage;
|
|
218
|
+
exports.isUniAppVitePackage = isUniAppVitePackage;
|
|
219
|
+
exports.isUniAppXManifest = isUniAppXManifest;
|
|
220
|
+
exports.isUniAppXPackage = isUniAppXPackage;
|
|
221
|
+
exports.isWeappVitePackage = isWeappVitePackage;
|
|
222
|
+
exports.resolveImplicitAppTypeFromViteRoot = resolveImplicitAppTypeFromViteRoot;
|
|
223
|
+
exports.resolveMpxPlatform = resolveMpxPlatform;
|
|
224
|
+
exports.resolvePlatform = resolvePlatform;
|
|
225
|
+
exports.resolveTaroPlatform = resolveTaroPlatform;
|
|
226
|
+
exports.resolveUniAppXPlatform = resolveUniAppXPlatform;
|
|
227
|
+
exports.resolveUniPlatform = resolveUniPlatform;
|
|
228
|
+
exports.resolveUniPlatformsFromEnv = resolveUniPlatformsFromEnv;
|
|
229
|
+
exports.resolveUniUtsPlatform = resolveUniUtsPlatform;
|
package/dist/framework.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './framework/index'
|
|
1
|
+
export * from './framework/index.js'
|
package/dist/framework.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let node_path = require("node:path");
|
|
5
|
-
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
6
|
-
let node_process = require("node:process");
|
|
7
|
-
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import process from "node:process";
|
|
8
4
|
//#region src/framework/index.ts
|
|
9
5
|
const KNOWN_MAC_HBUILDERX_PLUGIN_DIRS = ["/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite", "/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli"];
|
|
10
6
|
const HBUILDERX_PLUGIN_CWD_RE = /[\\/]HBuilderX(?:\.[^\\/]*)?(?:[\\/]Contents[\\/]HBuilderX)?[\\/]plugins[\\/]uniapp-cli(?:-vite)?(?:[\\/]|$)/i;
|
|
@@ -29,14 +25,14 @@ const MINI_PROGRAM_PLATFORMS = /* @__PURE__ */ new Set([
|
|
|
29
25
|
const MPX_MARKERS = [["src/app.mpx", "mpx"], ["app.mpx", "mpx"]];
|
|
30
26
|
function getProcessEnv() {
|
|
31
27
|
return {
|
|
32
|
-
MPX_CLI_MODE:
|
|
33
|
-
MPX_CURRENT_TARGET_MODE:
|
|
34
|
-
NODE_PATH:
|
|
35
|
-
TARO_ENV:
|
|
36
|
-
UNI_PLATFORM:
|
|
37
|
-
UNI_UTS_PLATFORM:
|
|
38
|
-
WEAPP_TAILWINDCSS_TARGET:
|
|
39
|
-
WEAPP_TW_TARGET:
|
|
28
|
+
MPX_CLI_MODE: process.env["MPX_CLI_MODE"],
|
|
29
|
+
MPX_CURRENT_TARGET_MODE: process.env["MPX_CURRENT_TARGET_MODE"],
|
|
30
|
+
NODE_PATH: process.env["NODE_PATH"],
|
|
31
|
+
TARO_ENV: process.env["TARO_ENV"],
|
|
32
|
+
UNI_PLATFORM: process.env["UNI_PLATFORM"],
|
|
33
|
+
UNI_UTS_PLATFORM: process.env["UNI_UTS_PLATFORM"],
|
|
34
|
+
WEAPP_TAILWINDCSS_TARGET: process.env["WEAPP_TAILWINDCSS_TARGET"],
|
|
35
|
+
WEAPP_TW_TARGET: process.env["WEAPP_TW_TARGET"]
|
|
40
36
|
};
|
|
41
37
|
}
|
|
42
38
|
function resolveDependencyNames(pkg) {
|
|
@@ -74,13 +70,13 @@ function resolvePlatformInfo(value) {
|
|
|
74
70
|
}
|
|
75
71
|
function hasKnownHBuilderXPluginPrefix(normalizedCwd) {
|
|
76
72
|
for (const dir of KNOWN_MAC_HBUILDERX_PLUGIN_DIRS) {
|
|
77
|
-
const normalizedDir =
|
|
78
|
-
if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${
|
|
73
|
+
const normalizedDir = path.normalize(dir);
|
|
74
|
+
if (normalizedCwd === normalizedDir || normalizedCwd.startsWith(`${normalizedDir}${path.sep}`)) return true;
|
|
79
75
|
}
|
|
80
76
|
return false;
|
|
81
77
|
}
|
|
82
78
|
function matchesHBuilderXPluginCwd(cwd) {
|
|
83
|
-
const normalized =
|
|
79
|
+
const normalized = path.normalize(cwd);
|
|
84
80
|
if (hasKnownHBuilderXPluginPrefix(normalized)) return true;
|
|
85
81
|
return HBUILDERX_PLUGIN_CWD_RE.test(normalized);
|
|
86
82
|
}
|
|
@@ -88,7 +84,7 @@ function isRunningInHBuilderX(options = {}) {
|
|
|
88
84
|
const env = options.env ?? getProcessEnv();
|
|
89
85
|
const nodePath = "nodePath" in options ? options.nodePath : env.NODE_PATH;
|
|
90
86
|
if (!(nodePath == null || nodePath.trim().length === 0)) return false;
|
|
91
|
-
return matchesHBuilderXPluginCwd(options.cwd ??
|
|
87
|
+
return matchesHBuilderXPluginCwd(options.cwd ?? process.cwd());
|
|
92
88
|
}
|
|
93
89
|
function resolvePlatform(value) {
|
|
94
90
|
return resolvePlatformInfo(value);
|
|
@@ -163,29 +159,29 @@ function detectAppTypeFromPackageJson(pkg) {
|
|
|
163
159
|
if (isUniAppPackage(pkg)) return "uni-app";
|
|
164
160
|
}
|
|
165
161
|
function tryReadJson(file) {
|
|
166
|
-
if (!
|
|
162
|
+
if (!existsSync(file)) return;
|
|
167
163
|
try {
|
|
168
|
-
return JSON.parse(
|
|
164
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
169
165
|
} catch {}
|
|
170
166
|
}
|
|
171
167
|
function detectAppTypeFromMarkers(root) {
|
|
172
|
-
for (const [relativePath, appType] of MPX_MARKERS) if (
|
|
168
|
+
for (const [relativePath, appType] of MPX_MARKERS) if (existsSync(path.join(root, relativePath))) return appType;
|
|
173
169
|
}
|
|
174
170
|
function detectAppTypeFromRoot(root, searchUp = true) {
|
|
175
|
-
const resolvedRoot =
|
|
176
|
-
if (!
|
|
171
|
+
const resolvedRoot = path.resolve(root);
|
|
172
|
+
if (!existsSync(resolvedRoot)) return;
|
|
177
173
|
const markerDetected = detectAppTypeFromMarkers(resolvedRoot);
|
|
178
174
|
if (markerDetected) return markerDetected;
|
|
179
175
|
let current = resolvedRoot;
|
|
180
176
|
while (true) {
|
|
181
|
-
if (isUniAppXManifest(tryReadJson(
|
|
182
|
-
const pkg = tryReadJson(
|
|
177
|
+
if (isUniAppXManifest(tryReadJson(path.join(current, MANIFEST_JSON_FILE)))) return "uni-app-x";
|
|
178
|
+
const pkg = tryReadJson(path.join(current, PACKAGE_JSON_FILE));
|
|
183
179
|
if (pkg) {
|
|
184
180
|
const detected = detectAppTypeFromPackageJson(pkg);
|
|
185
181
|
if (detected) return detected;
|
|
186
182
|
}
|
|
187
183
|
if (!searchUp) break;
|
|
188
|
-
const parent =
|
|
184
|
+
const parent = path.dirname(current);
|
|
189
185
|
if (parent === current) break;
|
|
190
186
|
current = parent;
|
|
191
187
|
}
|
|
@@ -202,28 +198,10 @@ function detectAppType(options = {}) {
|
|
|
202
198
|
}
|
|
203
199
|
const env = options.env ?? (options.detectEnv ? getProcessEnv() : void 0);
|
|
204
200
|
if (env) return detectAppTypeFromEnv(env, {
|
|
205
|
-
cwd: options.cwd ?? options.root ?? (options.detectEnv ?
|
|
201
|
+
cwd: options.cwd ?? options.root ?? (options.detectEnv ? process.cwd() : void 0),
|
|
206
202
|
hbuilderxVite: options.hbuilderxVite
|
|
207
203
|
});
|
|
208
204
|
}
|
|
209
205
|
const resolveImplicitAppTypeFromViteRoot = (root) => detectAppType({ root });
|
|
210
206
|
//#endregion
|
|
211
|
-
|
|
212
|
-
exports.detectAppTypeFromEnv = detectAppTypeFromEnv;
|
|
213
|
-
exports.detectAppTypeFromPackageJson = detectAppTypeFromPackageJson;
|
|
214
|
-
exports.isMpxPackage = isMpxPackage;
|
|
215
|
-
exports.isRunningInHBuilderX = isRunningInHBuilderX;
|
|
216
|
-
exports.isTaroPackage = isTaroPackage;
|
|
217
|
-
exports.isUniAppPackage = isUniAppPackage;
|
|
218
|
-
exports.isUniAppVitePackage = isUniAppVitePackage;
|
|
219
|
-
exports.isUniAppXManifest = isUniAppXManifest;
|
|
220
|
-
exports.isUniAppXPackage = isUniAppXPackage;
|
|
221
|
-
exports.isWeappVitePackage = isWeappVitePackage;
|
|
222
|
-
exports.resolveImplicitAppTypeFromViteRoot = resolveImplicitAppTypeFromViteRoot;
|
|
223
|
-
exports.resolveMpxPlatform = resolveMpxPlatform;
|
|
224
|
-
exports.resolvePlatform = resolvePlatform;
|
|
225
|
-
exports.resolveTaroPlatform = resolveTaroPlatform;
|
|
226
|
-
exports.resolveUniAppXPlatform = resolveUniAppXPlatform;
|
|
227
|
-
exports.resolveUniPlatform = resolveUniPlatform;
|
|
228
|
-
exports.resolveUniPlatformsFromEnv = resolveUniPlatformsFromEnv;
|
|
229
|
-
exports.resolveUniUtsPlatform = resolveUniUtsPlatform;
|
|
207
|
+
export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TailwindResolvedSource, WeappTailwindcssGenerator } from './types';
|
|
2
|
-
import type { TailwindcssRuntimeLike } from '../types';
|
|
3
|
-
import { resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp } from '../tailwindcss/v4-engine';
|
|
1
|
+
import type { TailwindResolvedSource, WeappTailwindcssGenerator } from './types.js';
|
|
2
|
+
import type { TailwindcssRuntimeLike } from '../types/index.js';
|
|
3
|
+
import { resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp } from '../tailwindcss/v4-engine/index.js';
|
|
4
4
|
export declare function createWeappTailwindcssGenerator(source: TailwindResolvedSource): WeappTailwindcssGenerator;
|
|
5
5
|
export declare function resolveTailwindSourceFromRuntime(tailwindRuntime: TailwindcssRuntimeLike): Promise<TailwindResolvedSource>;
|
|
6
6
|
export declare function createWeappTailwindcssGeneratorFromRuntime(tailwindRuntime: TailwindcssRuntimeLike): Promise<WeappTailwindcssGenerator>;
|
|
7
|
-
export { normalizeWeappTailwindcssGeneratorOptions, } from './options';
|
|
7
|
+
export { normalizeWeappTailwindcssGeneratorOptions, } from './options.js';
|
|
8
8
|
export { resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp, };
|
|
9
|
-
export type { NormalizedWeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorUserOptions, } from './options';
|
|
10
|
-
export type { TailwindCandidateSource, TailwindGeneratorVersion, TailwindResolvedSource, TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions, WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult, WeappTailwindcssGenerator, WeappTailwindcssGeneratorTarget, } from './types';
|
|
9
|
+
export type { NormalizedWeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorOptions, WeappTailwindcssGeneratorUserOptions, } from './options.js';
|
|
10
|
+
export type { TailwindCandidateSource, TailwindGeneratorVersion, TailwindResolvedSource, TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions, WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult, WeappTailwindcssGenerator, WeappTailwindcssGeneratorTarget, } from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions, WebCssCompatUserOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { WeappTailwindcssGeneratorTarget } from './types';
|
|
3
|
-
import type { RuntimeBranch, RuntimeBranchContext } from '../runtime-branch';
|
|
4
|
-
import type { IArbitraryValues } from '../types/shared';
|
|
2
|
+
import type { WeappTailwindcssGeneratorTarget } from './types.js';
|
|
3
|
+
import type { RuntimeBranch, RuntimeBranchContext } from '../runtime-branch.js';
|
|
4
|
+
import type { IArbitraryValues } from '../types/shared.js';
|
|
5
5
|
export interface WeappTailwindcssGeneratorOptions {
|
|
6
6
|
target?: WeappTailwindcssGeneratorTarget | undefined;
|
|
7
7
|
config?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { WeappTailwindcssGeneratorTarget } from '../runtime-branch/types';
|
|
3
|
-
import type { TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions } from '../tailwindcss/v4-engine';
|
|
2
|
+
import type { WeappTailwindcssGeneratorTarget } from '../runtime-branch/types.js';
|
|
3
|
+
import type { TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions } from '../tailwindcss/v4-engine/index.js';
|
|
4
4
|
export type { WeappTailwindcssGeneratorTarget };
|
|
5
5
|
export type TailwindGeneratorVersion = 4;
|
|
6
6
|
export type TailwindCandidateSource = TailwindV4CandidateSource;
|