weapp-tailwindcss 5.3.6 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/README.zh-CN.md +4 -4
- package/dist/bundlers/shared/framework-postcss.d.ts +3 -0
- package/dist/bundlers/shared/generator-css/result-helpers.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/types.d.ts +3 -1
- package/dist/bundlers/shared/source-candidates/snapshot.d.ts +19 -0
- package/dist/bundlers/shared/source-candidates/source-priority.d.ts +1 -0
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +1 -0
- package/dist/bundlers/shared/source-candidates/views.d.ts +12 -0
- package/dist/bundlers/shared/style-requests.d.ts +1 -0
- package/dist/bundlers/vite/bundle-state.d.ts +9 -1
- package/dist/bundlers/vite/capability-profile.d.ts +18 -0
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +12 -0
- package/dist/bundlers/vite/hot-css-modules.d.ts +2 -2
- package/dist/bundlers/vite/shared/configured-css-entry-observer.d.ts +29 -0
- package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -0
- package/dist/bundlers/vite/shared/framework-css-generation-queue.d.ts +1 -0
- package/dist/bundlers/vite/shared/framework-hmr-module-version.d.ts +9 -0
- package/dist/bundlers/vite/shared/framework-runtime-utils.d.ts +5 -0
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +12 -2
- package/dist/compiler/compilation-session-pool.d.ts +1 -0
- package/dist/compiler/framework-compiler-session.d.ts +21 -0
- package/dist/compiler/index.d.ts +1 -0
- package/dist/{context-DTLRADfE.cjs → compiler-CDAz4SwJ.cjs} +907 -11
- package/dist/{context-4ittVpgt.js → compiler-DWcUgi3A.js} +813 -6
- package/dist/context/handlers.d.ts +1 -1
- package/dist/core/compiler/compiler.d.ts +2 -0
- package/dist/core/compiler/generation-cache.d.ts +30 -0
- package/dist/core/compiler/generation-state.d.ts +17 -0
- package/dist/core/compiler/index.d.ts +2 -0
- package/dist/core/compiler/root-store.d.ts +41 -0
- package/dist/core/compiler/snapshot.d.ts +35 -0
- package/dist/core/compiler/source-fingerprint.d.ts +3 -0
- package/dist/core/compiler/transforms.d.ts +15 -0
- package/dist/core/compiler/types.d.ts +75 -0
- package/dist/core.cjs +34 -8
- package/dist/core.d.ts +4 -1
- package/dist/core.js +3 -2
- package/dist/framework/index.d.ts +3 -1
- package/dist/framework.cjs +6 -1
- package/dist/framework.js +6 -1
- package/dist/{generator-EnTXLBlK.js → generator-BjK5PRR-.js} +28 -10
- package/dist/{generator-DKiYbTFR.cjs → generator-WlhrtNa3.cjs} +26 -8
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/{gulp-DwtrU4V1.js → gulp-BbMMp7vY.js} +7 -7
- package/dist/{gulp-CUysZjW3.cjs → gulp-CBu_waef.cjs} +14 -16
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-utmOgn6p.js → hmr-timing-B_4sAvsk.js} +369 -291
- package/dist/{hmr-timing-Cvh5UgnM.cjs → hmr-timing-CYhNto2U.cjs} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/{pipeline-helpers-CyVXL3h6.cjs → pipeline-helpers-Du8eAtMG.cjs} +6 -6
- package/dist/postcss.cjs +1 -1
- package/dist/postcss.js +1 -1
- package/dist/presets.cjs +2 -3
- package/dist/presets.js +1 -1
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/{source-candidate-scan-signature-BNt7NrrI.cjs → source-candidate-scan-signature-ZOm0O17V.cjs} +5 -5
- package/dist/{source-candidate-scan-signature-CDrLxVKu.js → source-candidate-scan-signature-wieibgE7.js} +3 -3
- package/dist/{tailwindcss-ChnpCv25.js → tailwindcss-9xmoCkaR.js} +1 -1
- package/dist/{tailwindcss-CexDJBhx.cjs → tailwindcss-D3jltF7M.cjs} +763 -5
- package/dist/{transform-CL-UZW1U.cjs → transform-C6k9zTQR.cjs} +12 -4
- package/dist/{transform-Bfi1_VgN.js → transform-DQhgAarN.js} +12 -4
- package/dist/typedoc.export.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/uni-app-x/component-local-style.d.ts +2 -0
- package/dist/uni-app-x/transform.d.ts +1 -0
- package/dist/uni-app-x/vite/asset-task.d.ts +21 -0
- package/dist/uni-app-x/vite/plugin-options.d.ts +8 -0
- package/dist/uni-app-x/vite/web-local-style.d.ts +2 -1
- package/dist/uni-app-x/vite.d.ts +1 -21
- package/dist/{v4-generation-core-Dhsu9Deu.cjs → v4-generation-core-BhYkeoZ4.cjs} +378 -300
- package/dist/{vite-DMX5zoID.cjs → vite-B0cvyfSY.cjs} +807 -200
- package/dist/{vite-DJkhb8n1.js → vite-Fu6GTjIY.js} +774 -165
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-generation-loader.cjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +7 -7
- package/dist/{webpack-Cpy_yggg.cjs → webpack-Amn5lmnx.cjs} +33 -35
- package/dist/{webpack-CzhrD9p3.js → webpack-BKHO-WSM.js} +10 -10
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/dist/wxml/utils.d.ts +1 -1
- package/dist/{wxml-B7OAVpXJ.js → wxml-CvKyV69S.js} +10 -2
- package/dist/{wxml-PrK-8ARX.cjs → wxml-o-CUulAM.cjs} +40 -32
- package/package.json +12 -11
- package/dist/options-BJrtIQbH.cjs +0 -768
- package/dist/style-options-DW30H5PV.cjs +0 -82
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const require_generator = require("./generator-DKiYbTFR.cjs");
|
|
2
|
-
const require_options = require("./options-BJrtIQbH.cjs");
|
|
3
|
-
//#region src/context/style-options.ts
|
|
4
|
-
function normalizeStyleHandlerMajorVersion(majorVersion) {
|
|
5
|
-
return majorVersion === 4 ? 4 : void 0;
|
|
6
|
-
}
|
|
7
|
-
function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
|
|
8
|
-
const resolvedUniAppXOptions = require_options.resolveUniAppXOptions(ctx.uniAppX);
|
|
9
|
-
const generatorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions(ctx.generator, {
|
|
10
|
-
appType: ctx.appType,
|
|
11
|
-
platform: ctx.cssOptions?.platform ?? ctx.platform,
|
|
12
|
-
tailwindcssMajorVersion,
|
|
13
|
-
uniAppX: resolvedUniAppXOptions
|
|
14
|
-
});
|
|
15
|
-
const branch = require_generator.resolveGeneratorRuntimeBranch(generatorOptions, {
|
|
16
|
-
appType: ctx.appType,
|
|
17
|
-
platform: ctx.cssOptions?.platform ?? ctx.platform,
|
|
18
|
-
tailwindcssMajorVersion,
|
|
19
|
-
uniAppX: resolvedUniAppXOptions
|
|
20
|
-
});
|
|
21
|
-
const hasCssOptions = ctx.cssOptions !== void 0;
|
|
22
|
-
const configuredRem2rpx = ctx.cssOptions?.rem2rpx ?? ctx.rem2rpx;
|
|
23
|
-
const rem2rpx = branch.isWeb && require_generator.shouldUseUniAppWebRpxCompatibility(ctx.appType) ? false : configuredRem2rpx;
|
|
24
|
-
const cssOptions = {
|
|
25
|
-
cssPreflight: ctx.cssOptions?.cssPreflight ?? ctx.cssPreflight,
|
|
26
|
-
cssPreflightRange: ctx.cssOptions?.cssPreflightRange ?? ctx.cssPreflightRange,
|
|
27
|
-
cssChildCombinatorReplaceValue: ctx.cssOptions?.cssChildCombinatorReplaceValue ?? ctx.cssChildCombinatorReplaceValue,
|
|
28
|
-
cssSelectorReplacement: ctx.cssOptions?.cssSelectorReplacement ?? ctx.cssSelectorReplacement,
|
|
29
|
-
rem2rpx,
|
|
30
|
-
cssRemoveProperty: ctx.cssOptions?.cssRemoveProperty ?? ctx.cssRemoveProperty,
|
|
31
|
-
cssRemoveActivePseudoClass: ctx.cssOptions?.cssRemoveActivePseudoClass ?? ctx.cssRemoveActivePseudoClass,
|
|
32
|
-
cssRemoveHoverPseudoClass: ctx.cssOptions?.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass,
|
|
33
|
-
cssRemoveFocusPseudoClass: ctx.cssOptions?.cssRemoveFocusPseudoClass ?? ctx.cssRemoveFocusPseudoClass,
|
|
34
|
-
tailwindcssV4GradientFallback: ctx.cssOptions?.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback,
|
|
35
|
-
cssPresetEnv: ctx.cssOptions?.cssPresetEnv ?? ctx.cssPresetEnv,
|
|
36
|
-
atRules: ctx.cssOptions?.atRules ?? ctx.atRules,
|
|
37
|
-
autoprefixer: ctx.cssOptions?.autoprefixer ?? ctx.autoprefixer,
|
|
38
|
-
cssCalc: ctx.cssOptions?.cssCalc ?? ctx.cssCalc,
|
|
39
|
-
platform: branch.platform ?? ctx.cssOptions?.platform ?? ctx.platform,
|
|
40
|
-
px2rpx: ctx.cssOptions?.px2rpx ?? ctx.px2rpx,
|
|
41
|
-
unitsToPx: ctx.cssOptions?.unitsToPx ?? ctx.unitsToPx,
|
|
42
|
-
unitConversion: ctx.cssOptions?.unitConversion ?? ctx.unitConversion,
|
|
43
|
-
injectAdditionalCssVarScope: ctx.cssOptions?.injectAdditionalCssVarScope ?? ctx.injectAdditionalCssVarScope
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
appType: ctx.appType,
|
|
47
|
-
postcssOptions: ctx.postcssOptions,
|
|
48
|
-
cssPreflight: cssOptions.cssPreflight,
|
|
49
|
-
cssPreflightRange: cssOptions.cssPreflightRange,
|
|
50
|
-
cssChildCombinatorReplaceValue: cssOptions.cssChildCombinatorReplaceValue,
|
|
51
|
-
cssSelectorReplacement: cssOptions.cssSelectorReplacement,
|
|
52
|
-
rem2rpx: cssOptions.rem2rpx,
|
|
53
|
-
...hasCssOptions ? { cssOptions } : {},
|
|
54
|
-
cssRemoveProperty: cssOptions.cssRemoveProperty,
|
|
55
|
-
cssRemoveActivePseudoClass: cssOptions.cssRemoveActivePseudoClass,
|
|
56
|
-
cssRemoveHoverPseudoClass: cssOptions.cssRemoveHoverPseudoClass,
|
|
57
|
-
cssRemoveFocusPseudoClass: cssOptions.cssRemoveFocusPseudoClass,
|
|
58
|
-
tailwindcssV4GradientFallback: cssOptions.tailwindcssV4GradientFallback,
|
|
59
|
-
cssPresetEnv: cssOptions.cssPresetEnv,
|
|
60
|
-
atRules: cssOptions.atRules,
|
|
61
|
-
autoprefixer: cssOptions.autoprefixer,
|
|
62
|
-
cssCalc: cssOptions.cssCalc,
|
|
63
|
-
uniAppX: branch.isNativeApp,
|
|
64
|
-
platform: cssOptions.platform,
|
|
65
|
-
px2rpx: cssOptions.px2rpx,
|
|
66
|
-
unitsToPx: cssOptions.unitsToPx,
|
|
67
|
-
unitConversion: cssOptions.unitConversion
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
Object.defineProperty(exports, "normalizeStyleHandlerMajorVersion", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function() {
|
|
74
|
-
return normalizeStyleHandlerMajorVersion;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "resolveStyleOptionsFromContext", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function() {
|
|
80
|
-
return resolveStyleOptionsFromContext;
|
|
81
|
-
}
|
|
82
|
-
});
|