weapp-tailwindcss 5.2.11 → 5.2.13
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/bundlers/shared/generator-css/user-css/source-fragments.d.ts +6 -0
- package/dist/bundlers/shared/generator-css/user-css.d.ts +1 -1
- package/dist/bundlers/shared/hmr-timing.d.ts +1 -0
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +2 -0
- package/dist/bundlers/vite/css-finalizer/generic-web-fast-path.d.ts +16 -0
- package/dist/bundlers/vite/css-finalizer/options.d.ts +5 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -0
- package/dist/bundlers/vite/shared/generic-web-production-fast-path.d.ts +28 -0
- package/dist/bundlers/webpack/loaders/runtime-registry.d.ts +1 -0
- package/dist/cli.cjs +372 -293
- package/dist/cli.js +20 -11
- package/dist/{context-DbL0d-zB.js → context-CKQKq4Mv.js} +19 -8
- package/dist/{context-C3TryIjF.cjs → context-vWlNv-Cf.cjs} +17 -11
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{css-imports-DfNC3e6a.cjs → css-imports-BFMU7Hpd.cjs} +1 -1
- package/dist/css-macro/postcss.cjs +1 -1
- package/dist/css-macro.cjs +1 -1
- package/dist/defaults.cjs +2 -0
- package/dist/defaults.js +2 -0
- package/dist/framework.cjs +1 -1
- package/dist/{generator-BLpOsd5O.js → generator-BP4WmgIo.js} +36 -15
- package/dist/{generator-B0dCFlP1.cjs → generator-BXrWA7Sj.cjs} +43 -22
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/{gulp-DSrcDQsA.cjs → gulp-DxKLSgXX.cjs} +16 -13
- package/dist/{gulp-BLaGc0MJ.js → gulp-G--cGMcR.js} +12 -9
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-BnGBBJ6S.cjs → hmr-timing-BtqnyxAO.cjs} +5 -5
- package/dist/{hmr-timing-DXyGw6jp.js → hmr-timing-iTua_Z55.js} +47 -16
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/{object-Bvy6-w9r.js → object-B-8IHefx.js} +4 -4
- package/dist/{object-C_Vr6_S5.cjs → object-DbHtAXRk.cjs} +4 -4
- package/dist/{options-zpZez7qe.cjs → options-DbYws6lr.cjs} +8 -17
- package/dist/{pipeline-helpers-B5CzvTUJ.cjs → pipeline-helpers-DnYpfbat.cjs} +25 -10
- package/dist/postcss-html-transform.cjs +1 -1
- package/dist/postcss.cjs +1 -1
- package/dist/postcss.js +1 -1
- package/dist/presets.cjs +6 -5
- package/dist/presets.js +4 -3
- package/dist/reset.cjs +1 -1
- package/dist/{rolldown-runtime-CVvi-lCc.cjs → rolldown-runtime-Ctb5zv51.cjs} +1 -1
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +1 -1
- package/dist/{runtime-registry-Y7NrD2WH.cjs → runtime-registry-BlIjpImP.cjs} +10 -0
- package/dist/{source-candidate-scan-signature-GjsLzP8Z.cjs → source-candidate-scan-signature-Ggn8fzkT.cjs} +6 -5
- package/dist/{source-candidate-scan-signature-xgmxO8_F.js → source-candidate-scan-signature-TKJIs7VF.js} +5 -4
- package/dist/{style-options-COpQc8fr.cjs → style-options-Cta1OP3i.cjs} +9 -4
- package/dist/{tailwindcss-2zdmASlM.js → tailwindcss-C2K-vjJv.js} +20 -20
- package/dist/{tailwindcss-LtnGCxF0.cjs → tailwindcss-D1M2xj5O.cjs} +17 -13
- package/dist/{transform-BlsDWgjt.js → transform-52FLRu-0.js} +2 -2
- package/dist/{transform-9wbmvHcC.cjs → transform-BiHG42Rp.cjs} +2 -2
- package/dist/types/user-defined-options/general.d.ts +2 -0
- package/dist/{v4-generation-core-D4zQcQqW.cjs → v4-generation-core-D-zVR2mt.cjs} +53 -16
- package/dist/{vite-BWmBFzgf.js → vite-B577QMUl.js} +317 -82
- package/dist/{vite-DTDbD-95.cjs → vite-BFWJAH16.cjs} +322 -87
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/{watch-dependencies-BZGubvuJ.cjs → watch-dependencies-DLZDrWdH.cjs} +1 -1
- package/dist/weapp-tw-css-generation-loader.cjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +14 -12
- package/dist/weapp-tw-runtime-classset-loader.cjs +5 -4
- package/dist/{webpack-CtUyQNqC.js → webpack-DLJkStre.js} +41 -22
- package/dist/{webpack-Bpovb6YE.cjs → webpack-DTqFKvcE.cjs} +46 -36
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/dist/{wxml-CWJc0yY-.js → wxml-B7OAVpXJ.js} +10 -6
- package/dist/{wxml-DUIdXCVa.cjs → wxml-CQmBCjOR.cjs} +386 -311
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -50,13 +50,15 @@ new LRUCache({ max: 8 });
|
|
|
50
50
|
new LRUCache({ max: 32 });
|
|
51
51
|
createStyleHandler({
|
|
52
52
|
cssChildCombinatorReplaceValue: ["view", "text"],
|
|
53
|
+
cssRemoveActivePseudoClass: true,
|
|
53
54
|
cssRemoveHoverPseudoClass: true,
|
|
55
|
+
cssRemoveFocusPseudoClass: true,
|
|
54
56
|
isMainChunk: true,
|
|
55
57
|
majorVersion: 4
|
|
56
58
|
});
|
|
57
59
|
createRequire(import.meta.url);
|
|
58
60
|
//#endregion
|
|
59
|
-
//#region \0@oxc-project+runtime@0.
|
|
61
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
|
|
60
62
|
function _typeof(o) {
|
|
61
63
|
"@babel/helpers - typeof";
|
|
62
64
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -66,7 +68,7 @@ function _typeof(o) {
|
|
|
66
68
|
}, _typeof(o);
|
|
67
69
|
}
|
|
68
70
|
//#endregion
|
|
69
|
-
//#region \0@oxc-project+runtime@0.
|
|
71
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
|
|
70
72
|
function toPrimitive(t, r) {
|
|
71
73
|
if ("object" != _typeof(t) || !t) return t;
|
|
72
74
|
var e = t[Symbol.toPrimitive];
|
|
@@ -78,13 +80,13 @@ function toPrimitive(t, r) {
|
|
|
78
80
|
return ("string" === r ? String : Number)(t);
|
|
79
81
|
}
|
|
80
82
|
//#endregion
|
|
81
|
-
//#region \0@oxc-project+runtime@0.
|
|
83
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
|
|
82
84
|
function toPropertyKey(t) {
|
|
83
85
|
var i = toPrimitive(t, "string");
|
|
84
86
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
85
87
|
}
|
|
86
88
|
//#endregion
|
|
87
|
-
//#region \0@oxc-project+runtime@0.
|
|
89
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
|
|
88
90
|
function _defineProperty(e, r, t) {
|
|
89
91
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
90
92
|
value: t,
|
|
@@ -170,6 +172,8 @@ createDebug("[tailwindcss:runtime] ");
|
|
|
170
172
|
const runtimeLogDedupeHolder = globalThis;
|
|
171
173
|
runtimeLogDedupeHolder.__WEAPP_TW_RUNTIME_LOG_DEDUPE__ ?? (runtimeLogDedupeHolder.__WEAPP_TW_RUNTIME_LOG_DEDUPE__ = /* @__PURE__ */ new Set());
|
|
172
174
|
createRequire(import.meta.url);
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/context/compiler-context-cache.ts
|
|
173
177
|
const globalCacheHolder = globalThis;
|
|
174
178
|
globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ ?? (globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ = /* @__PURE__ */ new Map());
|
|
175
179
|
//#endregion
|
|
@@ -209,9 +213,10 @@ function createNameMatcher(list, { exact = false } = {}) {
|
|
|
209
213
|
const exactStrings = exact ? /* @__PURE__ */ new Set() : void 0;
|
|
210
214
|
const fuzzyStrings = [];
|
|
211
215
|
const regexList = [];
|
|
212
|
-
for (const item of list) if (typeof item === "string")
|
|
213
|
-
|
|
214
|
-
|
|
216
|
+
for (const item of list) if (typeof item === "string") {
|
|
217
|
+
if (exact) exactStrings.add(item);
|
|
218
|
+
else fuzzyStrings.push(item);
|
|
219
|
+
} else regexList.push(normaliseRegex(item));
|
|
215
220
|
if (exact) {
|
|
216
221
|
const exactStringCount = exactStrings?.size ?? 0;
|
|
217
222
|
if (exactStringCount === 1 && regexList.length === 0) {
|
|
@@ -1479,7 +1484,7 @@ function analyzeSource(ast, options, handler, collectModuleMetadata = true) {
|
|
|
1479
1484
|
const exportDeclarations = collectModuleMetadata ? /* @__PURE__ */ new Set() : EMPTY_EXPORT_DECLARATIONS;
|
|
1480
1485
|
const requireCallPaths = collectModuleMetadata ? [] : EMPTY_REQUIRE_CALL_PATHS;
|
|
1481
1486
|
const evalHandler = handler ?? getDefaultEvalHandler();
|
|
1482
|
-
|
|
1487
|
+
const traverseOptions = {
|
|
1483
1488
|
StringLiteral: { enter(p) {
|
|
1484
1489
|
if (isEvalPath(p.parentPath)) return;
|
|
1485
1490
|
targetPaths.push(p);
|
|
@@ -1527,7 +1532,10 @@ function analyzeSource(ast, options, handler, collectModuleMetadata = true) {
|
|
|
1527
1532
|
ExportDeclaration: { enter(p) {
|
|
1528
1533
|
exportDeclarations.add(p);
|
|
1529
1534
|
} }
|
|
1530
|
-
} : {}
|
|
1535
|
+
} : {}
|
|
1536
|
+
};
|
|
1537
|
+
traverse(ast, {
|
|
1538
|
+
...traverseOptions,
|
|
1531
1539
|
noScope: !needScope
|
|
1532
1540
|
});
|
|
1533
1541
|
return {
|
|
@@ -2145,7 +2153,7 @@ async function generateVscodeIntellisenseEntry(options) {
|
|
|
2145
2153
|
const formattedSources = (options.sources && options.sources.length > 0 ? options.sources : DEFAULT_VSCODE_SOURCES).map(formatSource).filter((statement) => Boolean(statement));
|
|
2146
2154
|
const cssImport = toRelativeImport(outputPath, cssEntryPath);
|
|
2147
2155
|
const separator = formattedSources.length > 0 ? [""] : [];
|
|
2148
|
-
|
|
2156
|
+
const content = [
|
|
2149
2157
|
"/*",
|
|
2150
2158
|
" * Auto-generated by weapp-tailwindcss.",
|
|
2151
2159
|
" * This file exists solely to activate Tailwind CSS IntelliSense in VS Code.",
|
|
@@ -2157,7 +2165,8 @@ async function generateVscodeIntellisenseEntry(options) {
|
|
|
2157
2165
|
...separator,
|
|
2158
2166
|
`@import '${cssImport}';`,
|
|
2159
2167
|
""
|
|
2160
|
-
].filter((line, idx, arr) => !(line === "" && arr[idx - 1] === "")).join("\n")
|
|
2168
|
+
].filter((line, idx, arr) => !(line === "" && arr[idx - 1] === "")).join("\n");
|
|
2169
|
+
await writeFile(outputPath, `${content}\n`, "utf8");
|
|
2161
2170
|
return {
|
|
2162
2171
|
outputPath,
|
|
2163
2172
|
cssEntryPath
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveMpxPlatform } from "./framework.js";
|
|
2
|
-
import { It as shouldUseUniAppWebRpxCompatibility, Lt as loadTailwindV4DesignSystem, Nt as resolveCssMacroTailwindV4Source, Rt as resolveValidTailwindV4Candidates$1, a as resolveGeneratorRuntimeBranch, d as resolveTailwindV4SourceFromRuntime, i as normalizeWeappTailwindcssGeneratorOptions, k as resolveBooleanObjectOption, yt as createTailwindV4Engine$1 } from "./generator-
|
|
3
|
-
import { c as getRuntimeClassSetCacheEntry, d as invalidateRuntimeClassSet, i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssRuntimeFromContext, u as getRuntimeClassSetSignatureWithSources } from "./tailwindcss-
|
|
2
|
+
import { It as shouldUseUniAppWebRpxCompatibility, Lt as loadTailwindV4DesignSystem, Nt as resolveCssMacroTailwindV4Source, Rt as resolveValidTailwindV4Candidates$1, a as resolveGeneratorRuntimeBranch, d as resolveTailwindV4SourceFromRuntime, i as normalizeWeappTailwindcssGeneratorOptions, k as resolveBooleanObjectOption, yt as createTailwindV4Engine$1 } from "./generator-BP4WmgIo.js";
|
|
3
|
+
import { c as getRuntimeClassSetCacheEntry, d as invalidateRuntimeClassSet, i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssRuntimeFromContext, u as getRuntimeClassSetSignatureWithSources } from "./tailwindcss-C2K-vjJv.js";
|
|
4
4
|
import { i as isMap, n as defuOverrideArray } from "./utils-MVwpU07P.js";
|
|
5
|
-
import { _ as md5Hash, a as jsHandler, c as getReplacementCacheStore, d as decodeUnicode2, f as resolveClassNameTransformWithResult, l as jsStringEscape, m as createDebug, s as getReplacement, t as createTemplateHandler } from "./wxml-
|
|
5
|
+
import { _ as md5Hash, a as jsHandler, c as getReplacementCacheStore, d as decodeUnicode2, f as resolveClassNameTransformWithResult, l as jsStringEscape, m as createDebug, s as getReplacement, t as createTemplateHandler } from "./wxml-B7OAVpXJ.js";
|
|
6
6
|
import { getDefaultOptions, resolveDefaultCssPreflight } from "./defaults.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import path from "node:path";
|
|
@@ -235,7 +235,8 @@ async function collectTailwindV4GeneratorClassSet(tailwindRuntime) {
|
|
|
235
235
|
scanSources: true,
|
|
236
236
|
target: "web"
|
|
237
237
|
});
|
|
238
|
-
const
|
|
238
|
+
const designSystem = await loadTailwindV4DesignSystem(source);
|
|
239
|
+
const classSet = resolveValidTailwindV4Candidates$1(designSystem, generated.classSet, { ...source.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: source.bareArbitraryValues } });
|
|
239
240
|
debug("runtime class set resolved via tailwindcss v4 generator source scan, raw=%d valid=%d", generated.classSet.size, classSet.size);
|
|
240
241
|
return classSet;
|
|
241
242
|
} catch (error) {
|
|
@@ -389,7 +390,7 @@ const PAREN_CONTENT_RE = /\(([^)]+)\)/u;
|
|
|
389
390
|
const AT_LOCATION_RE = /at\s+(\S.*)$/u;
|
|
390
391
|
const TRAILING_LINE_COL_RE = /:\d+(?::\d+)?$/u;
|
|
391
392
|
const DEFAULT_COMPILER_CONTEXT_CACHE_MAX = 32;
|
|
392
|
-
const DEFAULT_COMPILER_CONTEXT_KEY_CACHE_MAX =
|
|
393
|
+
const DEFAULT_COMPILER_CONTEXT_KEY_CACHE_MAX = 64;
|
|
393
394
|
const globalCacheHolder = globalThis;
|
|
394
395
|
const compilerContextCache = globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ ?? (globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ = /* @__PURE__ */ new Map());
|
|
395
396
|
const compilerContextKeyCacheByOptions = /* @__PURE__ */ new WeakMap();
|
|
@@ -578,7 +579,8 @@ function createCompilerContextCacheKey(opts) {
|
|
|
578
579
|
const keyStore = getCompilerContextKeyCacheStore(opts);
|
|
579
580
|
const cached = keyStore.get(runtimeCacheScopeKey);
|
|
580
581
|
if (cached !== void 0) return cached;
|
|
581
|
-
const
|
|
582
|
+
const normalized = normalizeOptionsValue(getRuntimeCacheScopeValue(opts));
|
|
583
|
+
const cacheKey = md5Hash(serializeNormalizedValue(normalized));
|
|
582
584
|
touchMapValue(keyStore, runtimeCacheScopeKey, cacheKey);
|
|
583
585
|
pruneMapToMaxSize(keyStore, resolveCompilerContextCacheMax(DEFAULT_COMPILER_CONTEXT_KEY_CACHE_MAX));
|
|
584
586
|
return cacheKey;
|
|
@@ -977,12 +979,13 @@ function normalizeStyleHandlerMajorVersion(majorVersion) {
|
|
|
977
979
|
}
|
|
978
980
|
function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
|
|
979
981
|
const resolvedUniAppXOptions = resolveUniAppXOptions(ctx.uniAppX);
|
|
980
|
-
const
|
|
982
|
+
const generatorOptions = normalizeWeappTailwindcssGeneratorOptions(ctx.generator, {
|
|
981
983
|
appType: ctx.appType,
|
|
982
984
|
platform: ctx.cssOptions?.platform ?? ctx.platform,
|
|
983
985
|
tailwindcssMajorVersion,
|
|
984
986
|
uniAppX: resolvedUniAppXOptions
|
|
985
|
-
})
|
|
987
|
+
});
|
|
988
|
+
const branch = resolveGeneratorRuntimeBranch(generatorOptions, {
|
|
986
989
|
appType: ctx.appType,
|
|
987
990
|
platform: ctx.cssOptions?.platform ?? ctx.platform,
|
|
988
991
|
tailwindcssMajorVersion,
|
|
@@ -998,7 +1001,9 @@ function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
|
|
|
998
1001
|
cssSelectorReplacement: ctx.cssOptions?.cssSelectorReplacement ?? ctx.cssSelectorReplacement,
|
|
999
1002
|
rem2rpx,
|
|
1000
1003
|
cssRemoveProperty: ctx.cssOptions?.cssRemoveProperty ?? ctx.cssRemoveProperty,
|
|
1004
|
+
cssRemoveActivePseudoClass: ctx.cssOptions?.cssRemoveActivePseudoClass ?? ctx.cssRemoveActivePseudoClass,
|
|
1001
1005
|
cssRemoveHoverPseudoClass: ctx.cssOptions?.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass,
|
|
1006
|
+
cssRemoveFocusPseudoClass: ctx.cssOptions?.cssRemoveFocusPseudoClass ?? ctx.cssRemoveFocusPseudoClass,
|
|
1002
1007
|
tailwindcssV4GradientFallback: ctx.cssOptions?.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback,
|
|
1003
1008
|
cssPresetEnv: ctx.cssOptions?.cssPresetEnv ?? ctx.cssPresetEnv,
|
|
1004
1009
|
atRules: ctx.cssOptions?.atRules ?? ctx.atRules,
|
|
@@ -1020,7 +1025,9 @@ function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
|
|
|
1020
1025
|
rem2rpx: cssOptions.rem2rpx,
|
|
1021
1026
|
...hasCssOptions ? { cssOptions } : {},
|
|
1022
1027
|
cssRemoveProperty: cssOptions.cssRemoveProperty,
|
|
1028
|
+
cssRemoveActivePseudoClass: cssOptions.cssRemoveActivePseudoClass,
|
|
1023
1029
|
cssRemoveHoverPseudoClass: cssOptions.cssRemoveHoverPseudoClass,
|
|
1030
|
+
cssRemoveFocusPseudoClass: cssOptions.cssRemoveFocusPseudoClass,
|
|
1024
1031
|
tailwindcssV4GradientFallback: cssOptions.tailwindcssV4GradientFallback,
|
|
1025
1032
|
cssPresetEnv: cssOptions.cssPresetEnv,
|
|
1026
1033
|
atRules: cssOptions.atRules,
|
|
@@ -1110,7 +1117,9 @@ function syncCssOptionsToLegacyFields(ctx) {
|
|
|
1110
1117
|
ctx.cssSelectorReplacement = cssOptions.cssSelectorReplacement ?? ctx.cssSelectorReplacement;
|
|
1111
1118
|
ctx.rem2rpx = cssOptions.rem2rpx ?? ctx.rem2rpx;
|
|
1112
1119
|
ctx.cssRemoveProperty = cssOptions.cssRemoveProperty ?? ctx.cssRemoveProperty;
|
|
1120
|
+
ctx.cssRemoveActivePseudoClass = cssOptions.cssRemoveActivePseudoClass ?? ctx.cssRemoveActivePseudoClass;
|
|
1113
1121
|
ctx.cssRemoveHoverPseudoClass = cssOptions.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass;
|
|
1122
|
+
ctx.cssRemoveFocusPseudoClass = cssOptions.cssRemoveFocusPseudoClass ?? ctx.cssRemoveFocusPseudoClass;
|
|
1114
1123
|
ctx.tailwindcssV4GradientFallback = cssOptions.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback;
|
|
1115
1124
|
ctx.cssPresetEnv = cssOptions.cssPresetEnv ?? ctx.cssPresetEnv;
|
|
1116
1125
|
ctx.atRules = cssOptions.atRules ?? ctx.atRules;
|
|
@@ -1132,7 +1141,9 @@ function syncLegacyFieldsToCssOptions(ctx) {
|
|
|
1132
1141
|
cssSelectorReplacement: ctx.cssSelectorReplacement,
|
|
1133
1142
|
rem2rpx: ctx.rem2rpx,
|
|
1134
1143
|
cssRemoveProperty: ctx.cssRemoveProperty,
|
|
1144
|
+
cssRemoveActivePseudoClass: ctx.cssRemoveActivePseudoClass,
|
|
1135
1145
|
cssRemoveHoverPseudoClass: ctx.cssRemoveHoverPseudoClass,
|
|
1146
|
+
cssRemoveFocusPseudoClass: ctx.cssRemoveFocusPseudoClass,
|
|
1136
1147
|
tailwindcssV4GradientFallback: ctx.tailwindcssV4GradientFallback,
|
|
1137
1148
|
cssPresetEnv: ctx.cssPresetEnv,
|
|
1138
1149
|
atRules: ctx.atRules,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_framework = require("./framework.cjs");
|
|
3
|
-
const require_generator = require("./generator-
|
|
4
|
-
const require_object = require("./object-
|
|
5
|
-
const require_options = require("./options-
|
|
3
|
+
const require_generator = require("./generator-BXrWA7Sj.cjs");
|
|
4
|
+
const require_object = require("./object-DbHtAXRk.cjs");
|
|
5
|
+
const require_options = require("./options-DbYws6lr.cjs");
|
|
6
6
|
require("./utils-CuKLf1Zv.cjs");
|
|
7
|
-
const require_wxml = require("./wxml-
|
|
7
|
+
const require_wxml = require("./wxml-CQmBCjOR.cjs");
|
|
8
8
|
const require_defaults = require("./defaults.cjs");
|
|
9
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
10
|
-
const require_style_options = require("./style-options-
|
|
9
|
+
const require_tailwindcss = require("./tailwindcss-D1M2xj5O.cjs");
|
|
10
|
+
const require_style_options = require("./style-options-Cta1OP3i.cjs");
|
|
11
11
|
let node_path = require("node:path");
|
|
12
12
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
13
13
|
let node_process = require("node:process");
|
|
@@ -241,7 +241,8 @@ async function collectTailwindV4GeneratorClassSet(tailwindRuntime) {
|
|
|
241
241
|
scanSources: true,
|
|
242
242
|
target: "web"
|
|
243
243
|
});
|
|
244
|
-
const
|
|
244
|
+
const designSystem = await (0, _tailwindcss_mangle_engine.loadTailwindV4DesignSystem)(source);
|
|
245
|
+
const classSet = (0, _tailwindcss_mangle_engine.resolveValidTailwindV4Candidates)(designSystem, generated.classSet, { ...source.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: source.bareArbitraryValues } });
|
|
245
246
|
debug("runtime class set resolved via tailwindcss v4 generator source scan, raw=%d valid=%d", generated.classSet.size, classSet.size);
|
|
246
247
|
return classSet;
|
|
247
248
|
} catch (error) {
|
|
@@ -395,7 +396,7 @@ const PAREN_CONTENT_RE = /\(([^)]+)\)/u;
|
|
|
395
396
|
const AT_LOCATION_RE = /at\s+(\S.*)$/u;
|
|
396
397
|
const TRAILING_LINE_COL_RE = /:\d+(?::\d+)?$/u;
|
|
397
398
|
const DEFAULT_COMPILER_CONTEXT_CACHE_MAX = 32;
|
|
398
|
-
const DEFAULT_COMPILER_CONTEXT_KEY_CACHE_MAX =
|
|
399
|
+
const DEFAULT_COMPILER_CONTEXT_KEY_CACHE_MAX = 64;
|
|
399
400
|
const globalCacheHolder = globalThis;
|
|
400
401
|
const compilerContextCache = globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ ?? (globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ = /* @__PURE__ */ new Map());
|
|
401
402
|
const compilerContextKeyCacheByOptions = /* @__PURE__ */ new WeakMap();
|
|
@@ -584,7 +585,8 @@ function createCompilerContextCacheKey(opts) {
|
|
|
584
585
|
const keyStore = getCompilerContextKeyCacheStore(opts);
|
|
585
586
|
const cached = keyStore.get(runtimeCacheScopeKey);
|
|
586
587
|
if (cached !== void 0) return cached;
|
|
587
|
-
const
|
|
588
|
+
const normalized = normalizeOptionsValue(getRuntimeCacheScopeValue(opts));
|
|
589
|
+
const cacheKey = (0, _weapp_tailwindcss_shared_node.md5)(serializeNormalizedValue(normalized));
|
|
588
590
|
touchMapValue(keyStore, runtimeCacheScopeKey, cacheKey);
|
|
589
591
|
pruneMapToMaxSize(keyStore, resolveCompilerContextCacheMax(DEFAULT_COMPILER_CONTEXT_KEY_CACHE_MAX));
|
|
590
592
|
return cacheKey;
|
|
@@ -617,7 +619,7 @@ function toCustomAttributesEntities(customAttributes) {
|
|
|
617
619
|
return Object.entries(customAttributes);
|
|
618
620
|
}
|
|
619
621
|
//#endregion
|
|
620
|
-
//#region ../../node_modules/.pnpm/oxc-walker@1.1.1_@oxc-project+types@0.
|
|
622
|
+
//#region ../../node_modules/.pnpm/oxc-walker@1.1.1_@oxc-project+types@0.143.0_oxc-parser@0.143.0_rolldown@1.2.3/node_modules/oxc-walker/dist/index.mjs
|
|
621
623
|
function isNode(v) {
|
|
622
624
|
return v !== null && typeof v === "object" && typeof v.type === "string";
|
|
623
625
|
}
|
|
@@ -1220,7 +1222,9 @@ function syncCssOptionsToLegacyFields(ctx) {
|
|
|
1220
1222
|
ctx.cssSelectorReplacement = cssOptions.cssSelectorReplacement ?? ctx.cssSelectorReplacement;
|
|
1221
1223
|
ctx.rem2rpx = cssOptions.rem2rpx ?? ctx.rem2rpx;
|
|
1222
1224
|
ctx.cssRemoveProperty = cssOptions.cssRemoveProperty ?? ctx.cssRemoveProperty;
|
|
1225
|
+
ctx.cssRemoveActivePseudoClass = cssOptions.cssRemoveActivePseudoClass ?? ctx.cssRemoveActivePseudoClass;
|
|
1223
1226
|
ctx.cssRemoveHoverPseudoClass = cssOptions.cssRemoveHoverPseudoClass ?? ctx.cssRemoveHoverPseudoClass;
|
|
1227
|
+
ctx.cssRemoveFocusPseudoClass = cssOptions.cssRemoveFocusPseudoClass ?? ctx.cssRemoveFocusPseudoClass;
|
|
1224
1228
|
ctx.tailwindcssV4GradientFallback = cssOptions.tailwindcssV4GradientFallback ?? ctx.tailwindcssV4GradientFallback;
|
|
1225
1229
|
ctx.cssPresetEnv = cssOptions.cssPresetEnv ?? ctx.cssPresetEnv;
|
|
1226
1230
|
ctx.atRules = cssOptions.atRules ?? ctx.atRules;
|
|
@@ -1242,7 +1246,9 @@ function syncLegacyFieldsToCssOptions(ctx) {
|
|
|
1242
1246
|
cssSelectorReplacement: ctx.cssSelectorReplacement,
|
|
1243
1247
|
rem2rpx: ctx.rem2rpx,
|
|
1244
1248
|
cssRemoveProperty: ctx.cssRemoveProperty,
|
|
1249
|
+
cssRemoveActivePseudoClass: ctx.cssRemoveActivePseudoClass,
|
|
1245
1250
|
cssRemoveHoverPseudoClass: ctx.cssRemoveHoverPseudoClass,
|
|
1251
|
+
cssRemoveFocusPseudoClass: ctx.cssRemoveFocusPseudoClass,
|
|
1246
1252
|
tailwindcssV4GradientFallback: ctx.tailwindcssV4GradientFallback,
|
|
1247
1253
|
cssPresetEnv: ctx.cssPresetEnv,
|
|
1248
1254
|
atRules: ctx.atRules,
|
package/dist/core.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_context = require("./context-
|
|
2
|
+
const require_context = require("./context-vWlNv-Cf.cjs");
|
|
3
3
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as createTailwindRuntimeReadyPromise, o as shouldSkipJsTransform, t as getCompilerContext, u as ensureRuntimeClassSet } from "./context-
|
|
1
|
+
import { l as createTailwindRuntimeReadyPromise, o as shouldSkipJsTransform, t as getCompilerContext, u as ensureRuntimeClassSet } from "./context-CKQKq4Mv.js";
|
|
2
2
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
3
3
|
//#region src/core.ts
|
|
4
4
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
let node_path = require("node:path");
|
|
3
3
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
4
4
|
//#region src/bundlers/shared/css-imports.ts
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_rolldown_runtime = require("../rolldown-runtime-
|
|
5
|
+
const require_rolldown_runtime = require("../rolldown-runtime-Ctb5zv51.cjs");
|
|
6
6
|
let _weapp_tailwindcss_postcss_css_macro_postcss = require("@weapp-tailwindcss/postcss/css-macro/postcss");
|
|
7
7
|
_weapp_tailwindcss_postcss_css_macro_postcss = require_rolldown_runtime.__toESM(_weapp_tailwindcss_postcss_css_macro_postcss, 1);
|
|
8
8
|
Object.defineProperty(exports, "CSS_MACRO_POSTCSS_PLUGIN_NAME", {
|
package/dist/css-macro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_auto = require("./auto-DtU6f3X6.cjs");
|
|
3
3
|
require("./utils-CuKLf1Zv.cjs");
|
|
4
4
|
let tailwindcss_plugin = require("tailwindcss/plugin");
|
package/dist/defaults.cjs
CHANGED
|
@@ -100,7 +100,9 @@ function getDefaultOptions() {
|
|
|
100
100
|
},
|
|
101
101
|
postcssOptions: {},
|
|
102
102
|
cssRemoveProperty: true,
|
|
103
|
+
cssRemoveActivePseudoClass: true,
|
|
103
104
|
cssRemoveHoverPseudoClass: true,
|
|
105
|
+
cssRemoveFocusPseudoClass: true,
|
|
104
106
|
ignoreCallExpressionIdentifiers: [],
|
|
105
107
|
ignoreTaggedTemplateExpressionIdentifiers: ["weappTwIgnore"],
|
|
106
108
|
replaceRuntimePackages: false,
|
package/dist/defaults.js
CHANGED
|
@@ -98,7 +98,9 @@ function getDefaultOptions() {
|
|
|
98
98
|
},
|
|
99
99
|
postcssOptions: {},
|
|
100
100
|
cssRemoveProperty: true,
|
|
101
|
+
cssRemoveActivePseudoClass: true,
|
|
101
102
|
cssRemoveHoverPseudoClass: true,
|
|
103
|
+
cssRemoveFocusPseudoClass: true,
|
|
102
104
|
ignoreCallExpressionIdentifiers: [],
|
|
103
105
|
ignoreTaggedTemplateExpressionIdentifiers: ["weappTwIgnore"],
|
|
104
106
|
replaceRuntimePackages: false,
|
package/dist/framework.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolveUniUtsPlatform as resolveUniUtsPlatform$1 } from "./framework.js";
|
|
2
2
|
import { c as withCssMacroStyleOptions, i as hasCssMacroTailwindV4Source, o as transformCssMacroCss, s as transformCssMacroTailwindV4Source, t as hasCssMacroStyleOptions } from "./auto-2dg_uhEJ.js";
|
|
3
|
-
import { n as _defineProperty, t as omitUndefined } from "./object-
|
|
3
|
+
import { n as _defineProperty, t as omitUndefined } from "./object-B-8IHefx.js";
|
|
4
4
|
import "./utils-MVwpU07P.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs, { existsSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { createTailwindGenerationSession, createTailwindV4Engine, extractRawCandidates, loadTailwindV4DesignSystem, resolveProjectSourceFiles, resolveTailwindV4Source, resolveValidTailwindV4Candidates as resolveValidTailwindV4Candidates$1 } from "@tailwindcss-mangle/engine";
|
|
10
|
-
import { analyzeTailwindCssDirectives, createStyleHandler, filterExistingCssRules, finalizeMiniProgramCss, hasMiniProgramCssSpecificityPlaceholders, isTailwindCssGenerationDirective, isTailwindCssImportAtRule, isTailwindCssPackageJsonImportRequest, normalizeTailwindCssImportRequest, normalizeTailwindcssWebRpxDeclarations, parseTailwindCssConfigRequest, parseTailwindCssDirectiveRequest, postcss, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss, pruneMiniProgramGeneratedCss as pruneMiniProgramGeneratedCss$1, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, stripMiniProgramCssSpecificityPlaceholders } from "@weapp-tailwindcss/postcss";
|
|
10
|
+
import { analyzeTailwindCssDirectives, createStyleHandler, filterExistingCssRules, finalizeMiniProgramCss, hasMiniProgramCssSpecificityPlaceholders, isTailwindCssGenerationDirective, isTailwindCssImportAtRule, isTailwindCssPackageJsonImportRequest, normalizeTailwindCssImportRequest, normalizeTailwindcssWebRpxDeclarations, parseTailwindCssConfigRequest, parseTailwindCssDirectiveRequest, postcss, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss, pruneMiniProgramGeneratedCss as pruneMiniProgramGeneratedCss$1, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, selectorContainsPseudoClass, stripMiniProgramCssSpecificityPlaceholders } from "@weapp-tailwindcss/postcss";
|
|
11
11
|
import { LRUCache } from "lru-cache";
|
|
12
12
|
import { stat } from "node:fs/promises";
|
|
13
13
|
import micromatch from "micromatch";
|
|
@@ -105,7 +105,7 @@ function restoreRpxLengthCssSelectors(css, restoreCandidates) {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
const INCREMENTAL_GENERATE_ENTRY_CANDIDATES_MAX = 12e3;
|
|
108
|
-
const INCREMENTAL_GENERATE_ENTRY_CSS_BYTES_MAX =
|
|
108
|
+
const INCREMENTAL_GENERATE_ENTRY_CSS_BYTES_MAX = 2097152;
|
|
109
109
|
const incrementalGenerateCache = new LRUCache({ max: 8 });
|
|
110
110
|
const incrementalGenerateTaskCache = new LRUCache({ max: 32 });
|
|
111
111
|
function collectCandidates(candidates) {
|
|
@@ -286,7 +286,9 @@ function resolveCssMacroTailwindV4Source(source) {
|
|
|
286
286
|
//#region src/tailwindcss/v4-engine/miniprogram.ts
|
|
287
287
|
const defaultStyleHandler = createStyleHandler({
|
|
288
288
|
cssChildCombinatorReplaceValue: ["view", "text"],
|
|
289
|
+
cssRemoveActivePseudoClass: true,
|
|
289
290
|
cssRemoveHoverPseudoClass: true,
|
|
291
|
+
cssRemoveFocusPseudoClass: true,
|
|
290
292
|
isMainChunk: true,
|
|
291
293
|
majorVersion: 4
|
|
292
294
|
});
|
|
@@ -306,7 +308,9 @@ async function transformTailwindV4CssToWeapp(css, options) {
|
|
|
306
308
|
const protectedCss = protectDynamicColorMixAlpha(compatibleCss, { customPropertyValues });
|
|
307
309
|
const result = await defaultStyleHandler(protectedCss.css, {
|
|
308
310
|
cssChildCombinatorReplaceValue: ["view", "text"],
|
|
311
|
+
cssRemoveActivePseudoClass: true,
|
|
309
312
|
cssRemoveHoverPseudoClass: true,
|
|
313
|
+
cssRemoveFocusPseudoClass: true,
|
|
310
314
|
isMainChunk: true,
|
|
311
315
|
majorVersion: 4,
|
|
312
316
|
...options
|
|
@@ -961,10 +965,6 @@ function isFileMatchedByTailwindSourceEntries(file, entries) {
|
|
|
961
965
|
if (!positiveEntries.some((entry) => isFileMatchedByTailwindSourceEntry(resolvedFile, entry))) return false;
|
|
962
966
|
return !negativeEntries.some((entry) => isFileMatchedByTailwindSourceEntry(resolvedFile, entry));
|
|
963
967
|
}
|
|
964
|
-
function createTailwindSourceEntryMatcher(entries) {
|
|
965
|
-
if (!entries?.length) return;
|
|
966
|
-
return (file) => isFileMatchedByTailwindSourceEntries(file, entries);
|
|
967
|
-
}
|
|
968
968
|
function resolveTailwindV4CssSourceBase(source, fallbackBase) {
|
|
969
969
|
if (typeof source.base === "string" && source.base.length > 0) return source.base;
|
|
970
970
|
if (typeof source.file === "string" && source.file.length > 0) return path.dirname(source.file);
|
|
@@ -2471,14 +2471,28 @@ function isCommentOnlyCss(source) {
|
|
|
2471
2471
|
return false;
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2475
|
-
|
|
2474
|
+
function removeMiniProgramInteractiveSelectors(source, options = {
|
|
2475
|
+
active: true,
|
|
2476
|
+
hover: true
|
|
2477
|
+
}) {
|
|
2478
|
+
const removeActive = options.active === true;
|
|
2479
|
+
const removeHover = options.hover === true;
|
|
2480
|
+
const removeFocus = options.focus === true;
|
|
2481
|
+
const unsupportedPseudoClasses = [
|
|
2482
|
+
...removeActive ? [":active"] : [],
|
|
2483
|
+
...removeHover ? [":hover"] : [],
|
|
2484
|
+
...removeFocus ? [":focus"] : []
|
|
2485
|
+
];
|
|
2486
|
+
if (unsupportedPseudoClasses.length === 0 || !source.includes(":active") && !source.includes(":hover") && !source.includes(":focus")) return source;
|
|
2476
2487
|
try {
|
|
2477
2488
|
const root = postcss.parse(source);
|
|
2478
2489
|
let changed = false;
|
|
2479
2490
|
root.walkRules((rule) => {
|
|
2480
2491
|
const selectors = rule.selectors ?? [rule.selector];
|
|
2481
|
-
const keptSelectors = selectors.filter((selector) =>
|
|
2492
|
+
const keptSelectors = selectors.filter((selector) => {
|
|
2493
|
+
if (!unsupportedPseudoClasses.some((pseudoClass) => selector.includes(pseudoClass))) return true;
|
|
2494
|
+
return !selectorContainsPseudoClass(selector, unsupportedPseudoClasses);
|
|
2495
|
+
});
|
|
2482
2496
|
if (keptSelectors.length === selectors.length) return;
|
|
2483
2497
|
changed = true;
|
|
2484
2498
|
if (keptSelectors.length === 0) {
|
|
@@ -2499,7 +2513,11 @@ function removeMiniProgramHoverSelectors(source, enabled = true) {
|
|
|
2499
2513
|
}
|
|
2500
2514
|
}
|
|
2501
2515
|
function removeProcessedMiniProgramUnsupportedCss(source, options) {
|
|
2502
|
-
return
|
|
2516
|
+
return removeMiniProgramInteractiveSelectors(removeUnsupportedMiniProgramAtRules(source), {
|
|
2517
|
+
active: options.cssRemoveActivePseudoClass ?? true,
|
|
2518
|
+
hover: options.cssRemoveHoverPseudoClass ?? true,
|
|
2519
|
+
focus: options.cssRemoveFocusPseudoClass ?? true
|
|
2520
|
+
});
|
|
2503
2521
|
}
|
|
2504
2522
|
function unwrapMiniProgramCascadeLayers(source) {
|
|
2505
2523
|
if (!source.includes("@layer")) return source;
|
|
@@ -2635,7 +2653,8 @@ function findWorkspaceRoot(startDir) {
|
|
|
2635
2653
|
if (!startDir) return;
|
|
2636
2654
|
let current = path.resolve(startDir);
|
|
2637
2655
|
while (true) {
|
|
2638
|
-
|
|
2656
|
+
const workspaceFile = path.join(current, "pnpm-workspace.yaml");
|
|
2657
|
+
if (existsSync(workspaceFile)) return current;
|
|
2639
2658
|
const parent = path.dirname(current);
|
|
2640
2659
|
if (parent === current) return;
|
|
2641
2660
|
current = parent;
|
|
@@ -2645,7 +2664,8 @@ function findNearestPackageRoot(startDir) {
|
|
|
2645
2664
|
if (!startDir) return;
|
|
2646
2665
|
let current = path.resolve(startDir);
|
|
2647
2666
|
while (true) {
|
|
2648
|
-
|
|
2667
|
+
const pkgPath = path.join(current, "package.json");
|
|
2668
|
+
if (existsSync(pkgPath)) return current;
|
|
2649
2669
|
const parent = path.dirname(current);
|
|
2650
2670
|
if (parent === current) return;
|
|
2651
2671
|
current = parent;
|
|
@@ -3047,7 +3067,8 @@ function resolveTailwindV4SourceOptionsFromRuntime(runtime) {
|
|
|
3047
3067
|
}));
|
|
3048
3068
|
}
|
|
3049
3069
|
function resolveTailwindV4Source$1(options) {
|
|
3050
|
-
|
|
3070
|
+
const normalizedOptions = normalizeTailwindV4SourceOptions(options);
|
|
3071
|
+
return resolveTailwindV4Source(normalizedOptions);
|
|
3051
3072
|
}
|
|
3052
3073
|
function resolveTailwindV4SourceFromRuntimeOptions(options) {
|
|
3053
3074
|
const projectRoot = options?.projectRoot ?? process.cwd();
|
|
@@ -3199,4 +3220,4 @@ async function createWeappTailwindcssGeneratorFromRuntime(tailwindRuntime) {
|
|
|
3199
3220
|
return createWeappTailwindcssGenerator(await resolveTailwindSourceFromRuntime(tailwindRuntime));
|
|
3200
3221
|
}
|
|
3201
3222
|
//#endregion
|
|
3202
|
-
export { hasTailwindSourceDirectives as $, transformGeneratorUserCss as A, toPosixPath as At, stripMiniProgramCssSpecificityPlaceholders as B, findWorkspacePackageDir as C,
|
|
3223
|
+
export { hasTailwindSourceDirectives as $, transformGeneratorUserCss as A, toPosixPath as At, stripMiniProgramCssSpecificityPlaceholders as B, findWorkspacePackageDir as C, isFileExcludedByTailwindSourceEntries as Ct, resolveTailwindcssOptions as D, resolveCssSourceEntries as Dt, normalizeTailwindcssRuntimeOptions as E, parseConfigParam as Et, stripUnmatchedTailwindSourceMediaCloseFragments as F, filterUnsupportedMiniProgramTailwindV4Candidates as Ft, extractGeneratedCssForUserLayerSelectors as G, filterApplyOnlyGeneratedCss as H, finalizeMiniProgramCss as I, shouldUseUniAppWebRpxCompatibility as It, preferScopedGeneratedCssRules as J, hasUserCssLayerBlocks as K, hasMiniProgramCssSpecificityPlaceholders as L, loadTailwindV4DesignSystem as Lt, removeMiniProgramInteractiveSelectors as M, transformTailwindV4CssToWeapp as Mt, removeTailwindV4GeneratorAtRules as N, resolveCssMacroTailwindV4Source as Nt, normalizeStringListOption as O, resolveSourceScanPath as Ot, stripTailwindSourceMediaFragments as P, getTailwindV4IncrementalGenerateCacheStats as Pt, hasTailwindRootDirectives as Q, pruneMiniProgramGeneratedCss as R, resolveValidTailwindV4Candidates$1 as Rt, findNearestPackageRoot as S, expandTailwindSourceEntries as St, normalizeExtendLengthUnits as T, normalizeLegacyContentEntries as Tt, normalizeEmptyTailwindCustomVariants as U, removeTailwindV4GeneratedUserCssArtifacts as V, shouldFilterApplyOnlyGeneratedCss as W, hasTailwindApplyDirective as X, hasLocalCssImport as Y, hasTailwindNonRootGenerationDirectives as Z, upsertTailwindV4CssSource as _, normalizeConfigDirective as _t, resolveGeneratorRuntimeBranch as a, resolveCssEntrySource as at, isTailwindV4CssEntry as b, FULL_SOURCE_SCAN_EXTENSION_RE as bt, shouldUseNativeAppCssBranch as c, createCssAppend as ct, resolveTailwindV4SourceFromRuntime as d, splitGeneratorPlaceholderCssBySourceOrder as dt, normalizeTailwindConfigDirectives as et, resolveTailwindV4SourceFromRuntimeOptions as f, splitTailwindGeneratedCssByBanner as ft, removeTailwindV4CssSource as g, stripTailwindBanners as gt, hasConfiguredTailwindV4CssRoots as h, stripTailwindBanner as ht, normalizeWeappTailwindcssGeneratorOptions as i, removeTailwindSourceDirectives as it, isCommentOnlyCss as j, transformTailwindV4CssByTarget as jt, resolveBooleanObjectOption as k, resolveTailwindV4CssSourceBase as kt, resolveUniUtsPlatform as l, hasTailwindGeneratedCss as lt, filterTailwindV4CssSourceRoots as m, stripGeneratorPlaceholderMarkers as mt, createWeappTailwindcssGeneratorFromRuntime as n, normalizeTailwindSourceForGenerator as nt, resolveRuntimeBranch as o, GENERATOR_PLACEHOLDER_MARKER_RE as ot, resolveTailwindV4SourceOptionsFromRuntime as p, splitTailwindV4GeneratedCssBySourceOrder as pt, splitUserCssLayerBlocks as q, resolveTailwindSourceFromRuntime as r, parseImportRequest as rt, shouldUseMiniProgramCssBranch as s, VITE_MARKER_RE as st, createWeappTailwindcssGenerator as t, normalizeTailwindSourceDirectives as tt, resolveTailwindV4Source$1 as u, hasTailwindGeneratedCssMarkers as ut, groupCssEntriesByBase as v, prependConfigDirective as vt, findWorkspaceRoot as w, isFileMatchedByTailwindSourceEntries as wt, normalizeCssEntries as x, FULL_SOURCE_SCAN_PATTERN as xt, guessBasedirFromEntries as y, createTailwindV4Engine$1 as yt, removeUnsupportedMiniProgramAtRules as z };
|