weapp-tailwindcss 5.5.6 → 5.5.8
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/dist/{auto-DtU6f3X6.cjs → auto-B1OyRrE8.cjs} +1 -1
- package/dist/{auto-2dg_uhEJ.js → auto-ENr4xzzw.js} +1 -1
- package/dist/bundlers/gulp/shared/create-native-framework-plugins/file-transforms.d.ts +1 -1
- package/dist/bundlers/shared/css-cleanup/at-rules.d.ts +1 -1
- package/dist/bundlers/shared/css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/css-source-trace.d.ts +2 -5
- package/dist/bundlers/shared/final-css-cleanup.d.ts +1 -1
- package/dist/bundlers/shared/framework-css-composition.d.ts +1 -1
- package/dist/bundlers/shared/framework-postcss.d.ts +1 -25
- package/dist/bundlers/shared/framework-user-css.d.ts +1 -4
- package/dist/bundlers/shared/generated-css-marker.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/candidates.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/class-selectors.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/config-directive.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/directives/fallback.d.ts +1 -11
- package/dist/bundlers/shared/generator-css/directives.d.ts +1 -25
- package/dist/bundlers/shared/generator-css/generation-helpers/preflight.d.ts +1 -19
- package/dist/bundlers/shared/generator-css/generation-helpers/results.d.ts +1 -23
- package/dist/bundlers/shared/generator-css/generation-helpers/runtime-isolation.d.ts +1 -30
- package/dist/bundlers/shared/generator-css/generation-helpers/source-order.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/legacy-compat.d.ts +1 -12
- package/dist/bundlers/shared/generator-css/legacy-selectors.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/legacy-units.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/local-imports.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/markers.d.ts +1 -28
- package/dist/bundlers/shared/generator-css/output-import-shell.d.ts +1 -8
- package/dist/bundlers/shared/generator-css/pipeline/context.d.ts +1 -60
- package/dist/bundlers/shared/generator-css/pipeline/deferred-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/execution.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/fallback-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline/ordered-output.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/pipeline.d.ts +1 -2
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +1 -6
- package/dist/bundlers/shared/generator-css/scoped-rules.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-files.d.ts +1 -21
- package/dist/bundlers/shared/generator-css/source-resolver/apply-reference.d.ts +1 -13
- package/dist/bundlers/shared/generator-css/source-resolver/config.d.ts +1 -7
- package/dist/bundlers/shared/generator-css/source-resolver/configuration.d.ts +1 -33
- package/dist/bundlers/shared/generator-css/source-resolver/matching.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +1 -28
- package/dist/bundlers/shared/generator-css/source-resolver/postcss-source.d.ts +1 -14
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-source.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/source-resolver/resolve-sources.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +1 -16
- package/dist/bundlers/shared/generator-css/source-resolver/source-entries.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/source-resolver/source-matching.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/source-resolver/types.d.ts +1 -22
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +1 -7
- package/dist/bundlers/shared/generator-css/types.d.ts +1 -64
- package/dist/bundlers/shared/generator-css/user-css/apply-only.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/user-css/at-rules.d.ts +1 -3
- package/dist/bundlers/shared/generator-css/user-css/compile-functions.d.ts +1 -4
- package/dist/bundlers/shared/generator-css/user-css/generated-cleanup.d.ts +1 -6
- package/dist/bundlers/shared/generator-css/user-css/source-fragments.d.ts +1 -15
- package/dist/bundlers/shared/generator-css/user-css/transform.d.ts +1 -13
- package/dist/bundlers/shared/generator-css/user-css/user-layers.d.ts +1 -15
- package/dist/bundlers/shared/generator-css/user-css.d.ts +1 -5
- package/dist/bundlers/shared/generator-css/user-layer-order.d.ts +1 -10
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -7
- package/dist/bundlers/shared/generator-css.d.ts +1 -9
- package/dist/bundlers/shared/run-tasks.d.ts +1 -3
- package/dist/bundlers/shared/runtime-class-set.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/collector.d.ts +1 -8
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +1 -12
- package/dist/bundlers/shared/source-candidates/script.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/snapshot.d.ts +1 -19
- package/dist/bundlers/shared/source-candidates/source-priority.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/store.d.ts +1 -2
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +1 -75
- package/dist/bundlers/shared/source-candidates/views.d.ts +1 -12
- package/dist/bundlers/shared/source-candidates.d.ts +1 -4
- package/dist/bundlers/shared/source-scan/css-entries.d.ts +1 -18
- package/dist/bundlers/shared/source-scan/dependencies.d.ts +1 -2
- package/dist/bundlers/shared/source-scan.d.ts +1 -16
- package/dist/bundlers/shared/static-config-content.d.ts +1 -5
- package/dist/bundlers/shared/style-handler-options.d.ts +1 -7
- package/dist/bundlers/shared/style-requests.d.ts +1 -5
- package/dist/bundlers/shared/v4-generation-core.d.ts +1 -20
- package/dist/bundlers/vite/generate-bundle/configured-css-sources.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-transform-task.d.ts +2 -2
- package/dist/bundlers/vite/processed-css-assets/cleanup.d.ts +1 -1
- package/dist/bundlers/vite/processed-css-assets/coverage.d.ts +1 -12
- package/dist/bundlers/vite/processed-css-assets/injection-plan.d.ts +1 -4
- package/dist/bundlers/vite/processed-css-assets/markers-imports.d.ts +4 -7
- package/dist/bundlers/vite/processed-css-assets/scoped-tailwind-noise.d.ts +1 -13
- package/dist/bundlers/vite/shared/framework-module-candidates.d.ts +2 -2
- package/dist/bundlers/vite/source-candidates/scan-root.d.ts +1 -1
- package/dist/bundlers/vite/source-candidates.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/finalize.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/generated-css.d.ts +2 -7
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/preflight-runtime.d.ts +4 -8
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/sources.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css-markers.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers/user-css.d.ts +2 -7
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-cache.d.ts +1 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-loaders.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +1 -1
- package/dist/bundlers/webpack/loaders/watch-dependencies.d.ts +6 -0
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/source.d.ts +29 -0
- package/dist/{cache-CBJFB1HN.cjs → cache-CzvIGfwS.cjs} +1 -0
- package/dist/compiler/composition.d.ts +1 -1
- package/dist/compiler/runtime-affecting-signature/js.d.ts +1 -0
- package/dist/compiler/semantic-css.d.ts +1 -1
- package/dist/compiler/types.d.ts +1 -1
- package/dist/{compiler-D3GBwxoa.js → compiler-CThodfGH.js} +3098 -3067
- package/dist/{compiler-C8FqI-P3.cjs → compiler-DbwS3329.cjs} +20979 -20870
- package/dist/core/compiler/generation-cache.d.ts +4 -2
- package/dist/core/compiler/types.d.ts +1 -1
- package/dist/core.cjs +7 -7
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/css-cleanup-B6FUJC3z.cjs +1 -0
- package/dist/{css-imports-XvtI1zCY.cjs → css-imports-R_RDMjPz.cjs} +7 -21
- package/dist/css-macro/auto.d.ts +1 -1
- package/dist/css-macro/postcss.cjs +1 -1
- package/dist/css-macro.cjs +2 -2
- package/dist/css-macro.js +1 -1
- package/dist/final-css-cleanup-B6FUJC3z.cjs +1 -0
- package/dist/{final-css-cleanup-u_sI2p56.js → final-css-cleanup-BOzhuhGz.js} +3 -2
- package/dist/framework.cjs +1 -1
- package/dist/{v4-generation-core-Cz1D7wm1.cjs → generated-css-marker-B0RyziOH.cjs} +638 -1546
- package/dist/generation/candidates.d.ts +1 -0
- package/dist/generation/class-selectors.d.ts +4 -0
- package/dist/generation/config-directive.d.ts +1 -0
- package/dist/generation/directives/fallback.d.ts +1 -0
- package/dist/generation/directives.d.ts +1 -0
- package/dist/generation/framework-css-composition.d.ts +1 -0
- package/dist/generation/framework-postcss.d.ts +25 -0
- package/dist/generation/framework-user-css.d.ts +5 -0
- package/dist/generation/generation-helpers/preflight.d.ts +19 -0
- package/dist/generation/generation-helpers/results.d.ts +23 -0
- package/dist/generation/generation-helpers/runtime-isolation.d.ts +30 -0
- package/dist/generation/generation-helpers/source-order.d.ts +1 -0
- package/dist/generation/generation-helpers.d.ts +4 -0
- package/dist/generation/index.d.ts +9 -0
- package/dist/generation/legacy-compat.d.ts +12 -0
- package/dist/generation/legacy-selectors.d.ts +1 -0
- package/dist/generation/legacy-units.d.ts +1 -0
- package/dist/generation/local-imports.d.ts +1 -0
- package/dist/generation/markers.d.ts +1 -0
- package/dist/generation/output-import-shell.d.ts +1 -0
- package/dist/generation/pipeline/context.d.ts +60 -0
- package/dist/generation/pipeline/deferred-output.d.ts +3 -0
- package/dist/generation/pipeline/execution.d.ts +3 -0
- package/dist/generation/pipeline/fallback-output.d.ts +3 -0
- package/dist/generation/pipeline/ordered-output.d.ts +3 -0
- package/dist/generation/pipeline/preparation.d.ts +19 -0
- package/dist/generation/pipeline.d.ts +2 -0
- package/dist/generation/result-helpers.d.ts +6 -0
- package/dist/generation/scoped-rules.d.ts +1 -0
- package/dist/generation/service.d.ts +20 -0
- package/dist/generation/source-files.d.ts +21 -0
- package/dist/generation/source-resolver/apply-reference.d.ts +10 -0
- package/dist/generation/source-resolver/config.d.ts +7 -0
- package/dist/generation/source-resolver/configuration.d.ts +33 -0
- package/dist/generation/source-resolver/matching.d.ts +3 -0
- package/dist/generation/source-resolver/metadata.d.ts +28 -0
- package/dist/generation/source-resolver/postcss-source.d.ts +14 -0
- package/dist/generation/source-resolver/resolve-source.d.ts +4 -0
- package/dist/generation/source-resolver/resolve-sources.d.ts +5 -0
- package/dist/generation/source-resolver/single-source.d.ts +16 -0
- package/dist/generation/source-resolver/source-entries.d.ts +3 -0
- package/dist/generation/source-resolver/source-matching.d.ts +5 -0
- package/dist/generation/source-resolver/types.d.ts +22 -0
- package/dist/generation/source-resolver.d.ts +7 -0
- package/dist/generation/style-options.d.ts +8 -0
- package/dist/generation/style-requests.d.ts +5 -0
- package/dist/generation/types.d.ts +65 -0
- package/dist/generation/user-css/apply-only.d.ts +5 -0
- package/dist/generation/user-css/at-rules.d.ts +1 -0
- package/dist/generation/user-css/compile-functions.d.ts +3 -0
- package/dist/generation/user-css/generated-cleanup.d.ts +1 -0
- package/dist/generation/user-css/source-fragments.d.ts +1 -0
- package/dist/generation/user-css/transform.d.ts +1 -0
- package/dist/generation/user-css/user-layers.d.ts +1 -0
- package/dist/generation/user-css.d.ts +5 -0
- package/dist/generation/user-layer-order.d.ts +1 -0
- package/dist/generation/validate.d.ts +7 -0
- package/dist/generator-CxauQbx3.cjs +1868 -0
- package/dist/generator-oKZ5mCJ5.js +1637 -0
- package/dist/generator.cjs +10 -4
- package/dist/generator.js +1 -1
- package/dist/{gulp-BExe5RBF.cjs → gulp-CngHA9cU.cjs} +27 -26
- package/dist/{gulp-BhkIIk7J.js → gulp-DhddVxGA.js} +6 -5
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-CoiJIqDu.cjs → hmr-timing-Dc4c1VRg.cjs} +13 -13
- package/dist/{hmr-timing-B9Yt86-U.js → hmr-timing-xPpat-km.js} +518 -1360
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/js/ModuleGraph.d.ts +3 -1
- package/dist/js/babel/analyze.d.ts +6 -0
- package/dist/js/babel.d.ts +1 -2
- package/dist/js/fast-path/analysis.d.ts +14 -0
- package/dist/js/fast-path/oxc.d.ts +1 -1
- package/dist/js/oxc-parser.d.ts +4 -0
- package/dist/pipeline-helpers-EUud9R2K.cjs +516 -0
- package/dist/postcss-html-transform.cjs +1 -1
- package/dist/postcss.cjs +3 -2
- package/dist/postcss.d.ts +1 -1
- package/dist/postcss.js +3 -2
- package/dist/presets.cjs +3 -3
- package/dist/presets.js +2 -2
- package/dist/project-sources/candidates/collector.d.ts +8 -0
- package/dist/project-sources/candidates/scan-root.d.ts +12 -0
- package/dist/project-sources/candidates/script.d.ts +1 -0
- package/dist/project-sources/candidates/snapshot.d.ts +19 -0
- package/dist/project-sources/candidates/source-priority.d.ts +1 -0
- package/dist/project-sources/candidates/store.d.ts +2 -0
- package/dist/project-sources/candidates/types-and-cache.d.ts +75 -0
- package/dist/project-sources/candidates/views.d.ts +12 -0
- package/dist/project-sources/candidates.d.ts +4 -0
- package/dist/project-sources/css-entries.d.ts +18 -0
- package/dist/project-sources/dependencies.d.ts +2 -0
- package/dist/project-sources/index.d.ts +16 -0
- package/dist/project-sources/static-config-content.d.ts +5 -0
- package/dist/reset.cjs +1 -1
- package/dist/{rolldown-runtime-Ctb5zv51.cjs → rolldown-runtime-fg3euq-1.cjs} +7 -0
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.js +2 -2
- package/dist/{runtime-state-XYSycuGu.cjs → runtime-state-BOzuVoKl.cjs} +1 -1
- package/dist/{scoped-generator-B6Y1bxzM.js → scoped-generator-DlQrVbuC.js} +7 -6
- package/dist/{scoped-generator-BUBls_oM.cjs → scoped-generator-lbTwL6mD.cjs} +9 -9
- package/dist/{source-candidate-scan-signature-DNuGKTqf.js → source-candidate-scan-signature-BjVQYL-C.js} +3 -3
- package/dist/{source-candidate-scan-signature-BtJZp28T.cjs → source-candidate-scan-signature-nG-rg809.cjs} +4 -4
- package/dist/style-injector/internal.d.ts +35 -35
- package/dist/style-injector/options.d.ts +1 -1
- package/dist/tailwindcss/miniprogram.d.ts +1 -1
- package/dist/tailwindcss/remove-unsupported-css.d.ts +1 -1
- package/dist/tailwindcss/source-scan/inline-source.d.ts +1 -7
- package/dist/tailwindcss/source-scan.d.ts +3 -32
- package/dist/tailwindcss/v4/css-sources.d.ts +1 -1
- package/dist/tailwindcss/v4/preflight.d.ts +1 -3
- package/dist/tailwindcss/v4/rpx-theme-warning.d.ts +4 -0
- package/dist/tailwindcss/v4-engine/design-system.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/incremental-cache.d.ts +2 -3
- package/dist/tailwindcss/v4-engine/generator/native-session.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/generator/rpx-candidates.d.ts +1 -6
- package/dist/tailwindcss/v4-engine/generator/scan-sources.d.ts +5 -2
- package/dist/tailwindcss/v4-engine/miniprogram.d.ts +3 -7
- package/dist/tailwindcss/v4-engine/source.d.ts +1 -1
- package/dist/tailwindcss/v4-engine/types.d.ts +3 -1
- package/dist/{tailwindcss-CBYjzRmV.cjs → tailwindcss-U3KIUegn.cjs} +65 -264
- package/dist/{tailwindcss-B_4E52WF.js → tailwindcss-kSd0ykiX.js} +71 -243
- package/dist/{transform-CkEnJYIP.js → transform-BAon9ykq.js} +25 -16
- package/dist/{transform-FkqbTBJR.cjs → transform-DVg4q8hh.cjs} +32 -23
- package/dist/types/index.d.ts +2 -2
- package/dist/types/user-defined-options/general.d.ts +1 -1
- package/dist/uni-app-x/border-preflight.d.ts +1 -1
- package/dist/uni-app-x/component-local-style.d.ts +3 -1
- package/dist/uni-app-x/vite/style-result.d.ts +1 -1
- package/dist/utils/run-tasks.d.ts +3 -0
- package/dist/vite/web.cjs +1 -1
- package/dist/vite/web.js +1 -1
- package/dist/{vite-lP35OguX.js → vite-D-RGkmOE.js} +62 -674
- package/dist/{vite-DxuKPZlp.cjs → vite-IX83wh_L.cjs} +217 -828
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/{watch-dependencies-GbC14Rlt.cjs → watch-dependencies-C1so1whD.cjs} +14 -1
- package/dist/weapp-tw-css-generation-loader.cjs +4 -3
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +33 -28
- package/dist/weapp-tw-runtime-classset-loader.cjs +5 -18
- package/dist/{web-Dfz_jpNj.js → web--kA4HUTm.js} +16 -115
- package/dist/{web-DhDxhlkq.cjs → web-DHfZ_KC9.cjs} +83 -192
- package/dist/{webpack-R2Sbggiy.cjs → webpack-BetjemzT.cjs} +87 -87
- package/dist/{webpack-D6jp1o3m.js → webpack-Bhkd27Rs.js} +28 -441
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +12 -7
- package/dist/final-css-cleanup-CDTmVAye.cjs +0 -1
- package/dist/generator-Bvr4WmuF.cjs +0 -3891
- package/dist/generator-C0BJjyLM.js +0 -3343
- package/dist/pipeline-helpers-BOjTEmMi.cjs +0 -971
package/dist/generator.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
let
|
|
2
|
+
const require_generator = require("./generator-CxauQbx3.cjs");
|
|
3
|
+
let _weapp_tailwindcss_engine = require("@weapp-tailwindcss/engine");
|
|
4
|
+
let _weapp_tailwindcss_postcss_transform = require("@weapp-tailwindcss/postcss/transform");
|
|
4
5
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
5
6
|
exports.createWeappTailwindcssGeneratorFromRuntime = require_generator.createWeappTailwindcssGeneratorFromRuntime;
|
|
6
7
|
Object.defineProperty(exports, "loadTailwindV4DesignSystem", {
|
|
7
8
|
enumerable: true,
|
|
8
9
|
get: function() {
|
|
9
|
-
return
|
|
10
|
+
return _weapp_tailwindcss_engine.loadTailwindV4DesignSystem;
|
|
10
11
|
}
|
|
11
12
|
});
|
|
12
13
|
exports.normalizeWeappTailwindcssGeneratorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions;
|
|
@@ -16,4 +17,9 @@ exports.resolveTailwindV4SourceFromRuntime = require_generator.resolveTailwindV4
|
|
|
16
17
|
exports.resolveTailwindV4SourceFromRuntimeOptions = require_generator.resolveTailwindV4SourceFromRuntimeOptions;
|
|
17
18
|
exports.resolveTailwindV4SourceOptionsFromRuntime = require_generator.resolveTailwindV4SourceOptionsFromRuntime;
|
|
18
19
|
exports.transformTailwindV4CssByTarget = require_generator.transformTailwindV4CssByTarget;
|
|
19
|
-
exports
|
|
20
|
+
Object.defineProperty(exports, "transformTailwindV4CssToWeapp", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function() {
|
|
23
|
+
return _weapp_tailwindcss_postcss_transform.transformTailwindV4CssToWeapp;
|
|
24
|
+
}
|
|
25
|
+
});
|
package/dist/generator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as loadTailwindV4DesignSystem, F as transformTailwindV4CssToWeapp, P as transformTailwindV4CssByTarget, d as resolveTailwindV4SourceFromRuntime, f as resolveTailwindV4SourceFromRuntimeOptions, i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromRuntime, p as resolveTailwindV4SourceOptionsFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator, u as resolveTailwindV4Source } from "./generator-oKZ5mCJ5.js";
|
|
2
2
|
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromRuntime, loadTailwindV4DesignSystem, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromRuntime, resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const require_cache = require("./cache-
|
|
8
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
9
|
-
require("./final-css-cleanup-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-fg3euq-1.cjs");
|
|
2
|
+
const require_generator = require("./generator-CxauQbx3.cjs");
|
|
3
|
+
const require_compiler = require("./compiler-DbwS3329.cjs");
|
|
4
|
+
const require_runtime_state = require("./runtime-state-BOzuVoKl.cjs");
|
|
5
|
+
const require_tailwindcss = require("./tailwindcss-U3KIUegn.cjs");
|
|
6
|
+
const require_generated_css_marker = require("./generated-css-marker-B0RyziOH.cjs");
|
|
7
|
+
const require_cache = require("./cache-CzvIGfwS.cjs");
|
|
8
|
+
const require_hmr_timing = require("./hmr-timing-Dc4c1VRg.cjs");
|
|
9
|
+
require("./final-css-cleanup-B6FUJC3z.cjs");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
11
11
|
node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
|
|
12
12
|
let node_path = require("node:path");
|
|
@@ -16,7 +16,7 @@ node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
|
16
16
|
let node_buffer = require("node:buffer");
|
|
17
17
|
let node_stream = require("node:stream");
|
|
18
18
|
node_stream = require_rolldown_runtime.__toESM(node_stream, 1);
|
|
19
|
-
let
|
|
19
|
+
let _weapp_tailwindcss_postcss_transform = require("@weapp-tailwindcss/postcss/transform");
|
|
20
20
|
//#region src/bundlers/gulp/module-graph.ts
|
|
21
21
|
const MODULE_EXTENSIONS = [
|
|
22
22
|
".js",
|
|
@@ -209,8 +209,8 @@ function createGulpFileTransforms(context) {
|
|
|
209
209
|
clearCache: cssSourceChanged
|
|
210
210
|
});
|
|
211
211
|
const sourceCandidateSourceGetter = getSourceCandidateSourceGetter();
|
|
212
|
-
const sourceTraceTokenSources = sourceCandidateSourceGetter ?
|
|
213
|
-
const sourceTraceSignature =
|
|
212
|
+
const sourceTraceTokenSources = sourceCandidateSourceGetter ? require_generated_css_marker.createCssTokenSourceMap(sourceCandidateSourceGetter(void 0), opts) : void 0;
|
|
213
|
+
const sourceTraceSignature = require_generated_css_marker.createCssSourceTraceCacheSignature(sourceTraceTokenSources, opts);
|
|
214
214
|
const sourceCandidateSignature = gulpSourceCandidateGetter ? `gulp-source-candidates:1:${[...gulpSourceCandidateGetter(void 0)].sort().join("\n")}` : void 0;
|
|
215
215
|
const styleOutputExtension = resolveGulpStyleOutputExtension(file);
|
|
216
216
|
const cssHandlerOptions = resolveWxssFileHandlerOptions(file, rawSource, options);
|
|
@@ -234,7 +234,7 @@ function createGulpFileTransforms(context) {
|
|
|
234
234
|
},
|
|
235
235
|
async transform() {
|
|
236
236
|
await runtimeState.readyPromise;
|
|
237
|
-
const generated = shouldUseGenerator ? await
|
|
237
|
+
const generated = shouldUseGenerator ? await require_generated_css_marker.generateTailwindV4Css({
|
|
238
238
|
opts,
|
|
239
239
|
runtimeState,
|
|
240
240
|
runtime: nextRuntimeSet,
|
|
@@ -255,14 +255,14 @@ function createGulpFileTransforms(context) {
|
|
|
255
255
|
if (preflightMode) generatedCssPreflightModeByFile.set(file.path, preflightMode);
|
|
256
256
|
else generatedCssPreflightModeByFile.delete(file.path);
|
|
257
257
|
}
|
|
258
|
-
const css =
|
|
258
|
+
const css = require_generated_css_marker.annotateCssSourceTrace(transformedCss, {
|
|
259
259
|
opts,
|
|
260
260
|
tokenSources: sourceTraceTokenSources
|
|
261
261
|
});
|
|
262
|
-
const generatedCss = stage === "generate" && generated ? `${
|
|
263
|
-
const outputCss = stage === "generate" ? generatedCss : (0,
|
|
262
|
+
const generatedCss = stage === "generate" && generated ? `${(0, _weapp_tailwindcss_postcss_transform.createBundlerGeneratedCssMarker)("gulp", file.path)}\n${css}` : css;
|
|
263
|
+
const outputCss = stage === "generate" ? generatedCss : (0, _weapp_tailwindcss_postcss_transform.rewriteLocalCssImportRequestsForOutput)(generatedCss, { styleOutputExtension });
|
|
264
264
|
debug("css handle: %s", file.path);
|
|
265
|
-
return { result: stage === "transform" ? (0,
|
|
265
|
+
return { result: stage === "transform" ? (0, _weapp_tailwindcss_postcss_transform.finalizeMiniProgramCssStructure)(outputCss) : outputCss };
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
rememberGulpProcessCacheKey(gulpProcessCacheKeys, file.path);
|
|
@@ -274,19 +274,19 @@ function createGulpFileTransforms(context) {
|
|
|
274
274
|
const adaptWxss = (options = {}) => createVinylTransform("css:adapt", async (file) => {
|
|
275
275
|
if (!file.contents) return;
|
|
276
276
|
const rawSource = file.contents.toString();
|
|
277
|
-
const generatedCss =
|
|
278
|
-
const source = generatedCss ?
|
|
277
|
+
const generatedCss = (0, _weapp_tailwindcss_postcss_transform.hasBundlerGeneratedCssMarker)(rawSource);
|
|
278
|
+
const source = generatedCss ? (0, _weapp_tailwindcss_postcss_transform.stripBundlerGeneratedCssMarkers)(rawSource) : rawSource;
|
|
279
279
|
const styleOutputExtension = resolveGulpStyleOutputExtension(file);
|
|
280
280
|
const cssHandlerOptions = resolveWxssFileHandlerOptions(file, source, options);
|
|
281
281
|
const handled = await styleHandler(source, cssHandlerOptions);
|
|
282
282
|
const preflightMode = generatedCssPreflightModeByFile.get(file.path);
|
|
283
|
-
const finalized = generatedCss ?
|
|
283
|
+
const finalized = generatedCss ? require_generated_css_marker.finalizeMiniProgramGeneratorCss(handled.css, "weapp", runtimeState.tailwindRuntime.majorVersion, opts.cssPreflight, {
|
|
284
284
|
injectPreflight: preflightMode?.inject ?? cssHandlerOptions.isMainChunk,
|
|
285
285
|
preservePreflight: preflightMode?.preserve ?? cssHandlerOptions.isMainChunk,
|
|
286
286
|
styleOptions: cssHandlerOptions
|
|
287
287
|
}) : handled.css;
|
|
288
|
-
const outputCss = (0,
|
|
289
|
-
writeGulpFileAsset(file, (0,
|
|
288
|
+
const outputCss = (0, _weapp_tailwindcss_postcss_transform.rewriteLocalCssImportRequestsForOutput)(finalized, { styleOutputExtension });
|
|
289
|
+
writeGulpFileAsset(file, (0, _weapp_tailwindcss_postcss_transform.finalizeMiniProgramCssStructure)(outputCss));
|
|
290
290
|
debug("css adapt: %s", file.path);
|
|
291
291
|
}, () => resolveGulpTransformTimingDetails("css:adapt"));
|
|
292
292
|
const transformJs = (options = {}) => createVinylTransform("js", async (file) => {
|
|
@@ -476,7 +476,7 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
476
476
|
dependencies: [...sourceScan?.dependencies ?? []].sort()
|
|
477
477
|
}));
|
|
478
478
|
if (!forceRefresh && cachedGulpSourceCandidateSignature === nextSignature && cachedGulpSourceCandidateGetter) return cachedGulpSourceCandidateGetter;
|
|
479
|
-
const collector =
|
|
479
|
+
const collector = require_generated_css_marker.createSourceCandidateCollector({
|
|
480
480
|
bareArbitraryValues: opts.arbitraryValues?.bareArbitraryValues,
|
|
481
481
|
customAttributesEntities: opts.customAttributesEntities,
|
|
482
482
|
disabledDefaultTemplateHandler: opts.disabledDefaultTemplateHandler
|
|
@@ -503,11 +503,11 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
503
503
|
].join("\n\n"));
|
|
504
504
|
}
|
|
505
505
|
async function registerAutoCssSource(file, rawSource) {
|
|
506
|
-
if (hasInitialTailwindCssRoots || (runtimeState.tailwindRuntime.majorVersion ?? 0) < 4 || !file.path || !
|
|
506
|
+
if (hasInitialTailwindCssRoots || (runtimeState.tailwindRuntime.majorVersion ?? 0) < 4 || !file.path || !(0, _weapp_tailwindcss_postcss_transform.hasTailwindRootDirectives)(rawSource)) return false;
|
|
507
507
|
const sourceFile = node_path.default.resolve(file.path);
|
|
508
|
-
const sourceCss =
|
|
508
|
+
const sourceCss = (0, _weapp_tailwindcss_postcss_transform.normalizeTailwindSourceForGenerator)((0, _weapp_tailwindcss_postcss_transform.normalizeTailwindConfigDirectives)(rawSource, node_path.default.dirname(sourceFile)), { importFallback: true });
|
|
509
509
|
const config = runtimeState.tailwindRuntime.options?.tailwindcss?.config;
|
|
510
|
-
const generatorSourceCss =
|
|
510
|
+
const generatorSourceCss = (0, _weapp_tailwindcss_postcss_transform.prependConfigDirective)((0, _weapp_tailwindcss_postcss_transform.splitLocalCssImports)(sourceCss)?.source ?? sourceCss, config);
|
|
511
511
|
if (!require_generator.upsertTailwindV4CssSource(opts, {
|
|
512
512
|
file: sourceFile,
|
|
513
513
|
base: node_path.default.dirname(sourceFile),
|
|
@@ -622,6 +622,7 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
622
622
|
const file = node_path.default.resolve(id);
|
|
623
623
|
const affectedScopes = require_compiler.recordCompilationDependencyChanges(runtimeState, require_compiler.createCompilationDependencyChanges([file]));
|
|
624
624
|
invalidateGulpSourceCandidates();
|
|
625
|
+
runtimeSetDirty = true;
|
|
625
626
|
if (change.event === "delete") {
|
|
626
627
|
const removedRuntimeSource = runtimeSourcesByFile.delete(file);
|
|
627
628
|
const removedCssSource = require_generator.removeTailwindV4CssSource(opts, file);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { f as resolveSourceScanEntries, l as getRuntimeClassSetSignature } from "./tailwindcss-kSd0ykiX.js";
|
|
2
|
+
import { L as getTailwindV4IncrementalGenerateCacheStats, _ as upsertTailwindV4CssSource, g as removeTailwindV4CssSource, h as hasConfiguredTailwindV4CssRoots } from "./generator-oKZ5mCJ5.js";
|
|
3
|
+
import { A as createTailwindRuntimeReadyPromise, B as invalidateCompilationScope, G as createCompilationDependencyChanges, I as AssetEmissionPlan, N as createDebug, V as recordCompilationDependencyChanges, a as beginCompilerShadowRun, c as getCompilerShadowRunSnapshot, f as getCompilerContext, i as disposeCompilerOwner, j as ensureRuntimeClassSet, n as createRuntimeAffectingSourceSignature, p as normalizeStyleHandlerMajorVersion, t as createCompilerRuntimeState, y as shouldSkipJsTransform, z as getCompilationScopeDependencyRevision } from "./compiler-CThodfGH.js";
|
|
4
|
+
import { J as splitLocalCssImports, R as finalizeMiniProgramGeneratorCss, U as createRuntimeClassSetManager, Y as createSourceCandidateCollector, a as hasBundlerGeneratedCssMarker, c as annotateCssSourceTrace, dt as finalizeCompilerShadowRun, f as generateTailwindV4Css, i as createBundlerGeneratedCssMarker, it as hasTailwindRootDirectives, l as createCssSourceTraceCacheSignature, n as emitHmrTiming, ot as normalizeTailwindConfigDirectives, q as rewriteLocalCssImportRequestsForOutput, s as stripBundlerGeneratedCssMarkers, st as normalizeTailwindSourceForGenerator, u as createCssTokenSourceMap, ut as prependConfigDirective } from "./hmr-timing-xPpat-km.js";
|
|
5
|
+
import { a as createRuntimeCompilationBuildState, c as updateRuntimeCompilationBuildState, n as processCachedTask, o as removeRuntimeCompilationBuildStateFiles, r as buildRuntimeCompilationSnapshot, t as finalizeMiniProgramCssStructure } from "./final-css-cleanup-BOzhuhGz.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
@@ -613,6 +613,7 @@ function createNativeGulpPlugins(options = {}) {
|
|
|
613
613
|
const file = path.resolve(id);
|
|
614
614
|
const affectedScopes = recordCompilationDependencyChanges(runtimeState, createCompilationDependencyChanges([file]));
|
|
615
615
|
invalidateGulpSourceCandidates();
|
|
616
|
+
runtimeSetDirty = true;
|
|
616
617
|
if (change.event === "delete") {
|
|
617
618
|
const removedRuntimeSource = runtimeSourcesByFile.delete(file);
|
|
618
619
|
const removedCssSource = removeTailwindV4CssSource(opts, file);
|
package/dist/gulp.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_gulp = require("./gulp-
|
|
2
|
+
const require_gulp = require("./gulp-CngHA9cU.cjs");
|
|
3
3
|
exports.WeappTailwindcss = require_gulp.createPlugins;
|
|
4
4
|
exports.createPlugins = require_gulp.createPlugins;
|
|
5
5
|
exports.weappTailwindcss = require_gulp.createPlugins;
|
package/dist/gulp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPlugins } from "./gulp-
|
|
1
|
+
import { t as createPlugins } from "./gulp-DhddVxGA.js";
|
|
2
2
|
export { createPlugins as WeappTailwindcss, createPlugins, createPlugins as weappTailwindcss };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_generator = require("./generator-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-fg3euq-1.cjs");
|
|
2
|
+
const require_generator = require("./generator-CxauQbx3.cjs");
|
|
3
|
+
const require_compiler = require("./compiler-DbwS3329.cjs");
|
|
4
|
+
const require_tailwindcss = require("./tailwindcss-U3KIUegn.cjs");
|
|
5
|
+
const require_generated_css_marker = require("./generated-css-marker-B0RyziOH.cjs");
|
|
6
6
|
let node_process = require("node:process");
|
|
7
7
|
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
8
|
-
let
|
|
8
|
+
let _weapp_tailwindcss_engine = require("@weapp-tailwindcss/engine");
|
|
9
9
|
let _weapp_core_escape = require("@weapp-core/escape");
|
|
10
10
|
//#region src/compiler/shadow-gate.ts
|
|
11
11
|
const COMPILER_SHADOW_GATE_ENV = "WEAPP_TAILWINDCSS_COMPILER_SHADOW_GATE";
|
|
@@ -30,7 +30,7 @@ function emitCompilerShadowGateResult(payload) {
|
|
|
30
30
|
}
|
|
31
31
|
function finalizeCompilerShadowRun(owner, options = {}) {
|
|
32
32
|
const env = options.env ?? node_process.default.env;
|
|
33
|
-
if (
|
|
33
|
+
if (require_generated_css_marker.resolveCompilerMode(env) !== "shadow") return;
|
|
34
34
|
const snapshot = require_compiler.completeCompilerShadowReportRun(owner, options.revision);
|
|
35
35
|
if (!snapshot) return;
|
|
36
36
|
const result = evaluateCompilerShadowGate(snapshot, resolveCompilerShadowGateMode(env));
|
|
@@ -107,10 +107,10 @@ function createNonSourceBaseClassSet(baseClassSet, candidateCountByClass) {
|
|
|
107
107
|
}
|
|
108
108
|
function createRuntimeClassSetManager(options = {}) {
|
|
109
109
|
const customExtractCandidates = options.extractCandidates;
|
|
110
|
-
const extractCandidates = customExtractCandidates ??
|
|
111
|
-
const extractRawCandidates = options.extractRawCandidates ??
|
|
110
|
+
const extractCandidates = customExtractCandidates ?? _weapp_tailwindcss_engine.extractValidCandidates;
|
|
111
|
+
const extractRawCandidates = options.extractRawCandidates ?? _weapp_tailwindcss_engine.extractRawCandidatesWithPositions;
|
|
112
112
|
const escapeMap = options.escapeMap ?? _weapp_core_escape.MappingChars2String;
|
|
113
|
-
const escapeFragments =
|
|
113
|
+
const escapeFragments = require_generated_css_marker.createEscapeFragments(escapeMap);
|
|
114
114
|
let baseClassSet = /* @__PURE__ */ new Set();
|
|
115
115
|
const candidateCountByClass = /* @__PURE__ */ new Map();
|
|
116
116
|
const candidatesByFile = /* @__PURE__ */ new Map();
|
|
@@ -132,11 +132,11 @@ function createRuntimeClassSetManager(options = {}) {
|
|
|
132
132
|
return validationContext;
|
|
133
133
|
}
|
|
134
134
|
async function loadDesignSystem(context) {
|
|
135
|
-
if (!designSystemPromise) designSystemPromise = (0,
|
|
135
|
+
if (!designSystemPromise) designSystemPromise = (0, _weapp_tailwindcss_engine.loadTailwindV4DesignSystem)(context);
|
|
136
136
|
return designSystemPromise;
|
|
137
137
|
}
|
|
138
138
|
function populateCandidateValidityCacheFromDesignSystem(designSystem, unknownCandidates) {
|
|
139
|
-
const validCandidates = (0,
|
|
139
|
+
const validCandidates = (0, _weapp_tailwindcss_engine.resolveValidTailwindV4Candidates)(designSystem, unknownCandidates, { ...options.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: options.bareArbitraryValues } });
|
|
140
140
|
for (const candidate of unknownCandidates) candidateValidityCache.set(candidate, validCandidates.has(candidate));
|
|
141
141
|
}
|
|
142
142
|
async function validateUnknownCandidates(runtime, unknownCandidates) {
|
|
@@ -162,7 +162,7 @@ function createRuntimeClassSetManager(options = {}) {
|
|
|
162
162
|
const candidate = match?.rawCandidate;
|
|
163
163
|
if (typeof candidate === "string" && candidate.length > 0) candidates.add(candidate);
|
|
164
164
|
}
|
|
165
|
-
for (const candidate of
|
|
165
|
+
for (const candidate of require_generated_css_marker.collectEscapedRuntimeCandidates(entry.source, escapeMap, escapeFragments)) candidates.add(candidate);
|
|
166
166
|
return candidates;
|
|
167
167
|
}
|
|
168
168
|
async function sync(runtime, snapshot, options = {}) {
|