tailwind-styled-v4 5.0.18 → 5.0.20
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/{analyzeWorkspace-CopJNGmi.d.ts → analyzeWorkspace-B1_XRfdl.d.ts} +1 -0
- package/dist/{analyzeWorkspace-DpVPccjz.d.mts → analyzeWorkspace-hYfu4Hg3.d.mts} +1 -0
- package/dist/analyzer.d.mts +2 -2
- package/dist/analyzer.d.ts +2 -2
- package/dist/analyzer.js +5 -4
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +5 -4
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +3 -3
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +3 -3
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +38 -2
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +38 -2
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +43 -6
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +43 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.d.mts +177 -2
- package/dist/compiler.d.ts +177 -2
- package/dist/compiler.js +172 -10
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +159 -11
- package/dist/compiler.mjs.map +1 -1
- package/dist/engine.d.mts +3 -3
- package/dist/engine.d.ts +3 -3
- package/dist/engine.js +177 -13
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +177 -13
- package/dist/engine.mjs.map +1 -1
- package/dist/{index-DJv28Uzq.d.mts → index-DQI6O24n.d.mts} +1 -1
- package/dist/{index-BDQw13kn.d.ts → index-UkYbyBkR.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +177 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +177 -13
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +188 -10
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +188 -10
- package/dist/next.mjs.map +1 -1
- package/dist/shared.js +172 -9
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +172 -9
- package/dist/shared.mjs.map +1 -1
- package/dist/turbopackLoader.js +172 -9
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +172 -9
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +43 -6
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +43 -6
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +310 -146
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +310 -146
- package/dist/vite.mjs.map +1 -1
- package/dist/webpackLoader.js +38 -2
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +38 -2
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +1 -1
package/dist/next.mjs
CHANGED
|
@@ -259,8 +259,44 @@ var init_nativeBridge = __esm({
|
|
|
259
259
|
try {
|
|
260
260
|
const binding = _loadNative(result.path);
|
|
261
261
|
if (isValidNativeBridge(binding)) {
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
const toCamelCase = (str) => {
|
|
263
|
+
return str.replace(/_([a-z0-9])/g, (_, g) => g.toUpperCase());
|
|
264
|
+
};
|
|
265
|
+
nativeBridge = new Proxy(binding, {
|
|
266
|
+
get(target, prop) {
|
|
267
|
+
if (typeof prop === "string") {
|
|
268
|
+
if (prop in target) {
|
|
269
|
+
return target[prop];
|
|
270
|
+
}
|
|
271
|
+
const camelKey = toCamelCase(prop);
|
|
272
|
+
if (camelKey in target) {
|
|
273
|
+
const val = target[camelKey];
|
|
274
|
+
if (typeof val === "function") {
|
|
275
|
+
return val.bind(target);
|
|
276
|
+
}
|
|
277
|
+
return val;
|
|
278
|
+
}
|
|
279
|
+
const napiKey = `${camelKey}Napi`;
|
|
280
|
+
if (napiKey in target) {
|
|
281
|
+
const val = target[napiKey];
|
|
282
|
+
if (typeof val === "function") {
|
|
283
|
+
return val.bind(target);
|
|
284
|
+
}
|
|
285
|
+
return val;
|
|
286
|
+
}
|
|
287
|
+
const napiInnerKey = `${camelKey}NapiInner`;
|
|
288
|
+
if (napiInnerKey in target) {
|
|
289
|
+
const val = target[napiInnerKey];
|
|
290
|
+
if (typeof val === "function") {
|
|
291
|
+
return val.bind(target);
|
|
292
|
+
}
|
|
293
|
+
return val;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return target[prop];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
log("Native bridge loaded successfully and proxy-wrapped from:", result.path);
|
|
264
300
|
return nativeBridge;
|
|
265
301
|
}
|
|
266
302
|
} catch (e) {
|
|
@@ -314,8 +350,8 @@ async function generateCssNative(classes, options) {
|
|
|
314
350
|
return css;
|
|
315
351
|
}
|
|
316
352
|
function getCacheStats() {
|
|
353
|
+
const native = getNativeBridge();
|
|
317
354
|
try {
|
|
318
|
-
const native = getNativeBridge();
|
|
319
355
|
if (!native?.getCacheStats) {
|
|
320
356
|
return null;
|
|
321
357
|
}
|
|
@@ -326,8 +362,8 @@ function getCacheStats() {
|
|
|
326
362
|
}
|
|
327
363
|
}
|
|
328
364
|
function clearThemeCache() {
|
|
365
|
+
const native = getNativeBridge();
|
|
329
366
|
try {
|
|
330
|
-
const native = getNativeBridge();
|
|
331
367
|
if (!native?.clearThemeCache) {
|
|
332
368
|
return;
|
|
333
369
|
}
|
|
@@ -335,6 +371,16 @@ function clearThemeCache() {
|
|
|
335
371
|
} catch {
|
|
336
372
|
}
|
|
337
373
|
}
|
|
374
|
+
function resetCacheStats() {
|
|
375
|
+
const native = getNativeBridge();
|
|
376
|
+
try {
|
|
377
|
+
if (!native?.resetCacheStats) {
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
native.resetCacheStats();
|
|
381
|
+
} catch {
|
|
382
|
+
}
|
|
383
|
+
}
|
|
338
384
|
var init_cssGeneratorNative = __esm({
|
|
339
385
|
"packages/domain/compiler/src/compiler/cssGeneratorNative.ts"() {
|
|
340
386
|
init_nativeBridge();
|
|
@@ -460,6 +506,16 @@ function minifyCss(css) {
|
|
|
460
506
|
if (!native?.minify_css) throw new Error("minify_css not available");
|
|
461
507
|
return native.minify_css(css);
|
|
462
508
|
}
|
|
509
|
+
function generateCss(ruleJson, minify) {
|
|
510
|
+
const native = getNativeBridge();
|
|
511
|
+
if (!native?.generate_css) throw new Error("generate_css not available");
|
|
512
|
+
return native.generate_css(ruleJson, minify);
|
|
513
|
+
}
|
|
514
|
+
function generateCssBatch(rulesJson, minify) {
|
|
515
|
+
const native = getNativeBridge();
|
|
516
|
+
if (!native?.generate_css_batch) throw new Error("generate_css_batch not available");
|
|
517
|
+
return native.generate_css_batch(rulesJson, minify);
|
|
518
|
+
}
|
|
463
519
|
function compileAnimation(animationName, from, to) {
|
|
464
520
|
const native = getNativeBridge();
|
|
465
521
|
if (!native?.compile_animation) throw new Error("compile_animation not available");
|
|
@@ -897,7 +953,7 @@ function postProcessWithLightning(rawCss) {
|
|
|
897
953
|
}
|
|
898
954
|
return result.css;
|
|
899
955
|
}
|
|
900
|
-
async function runCssPipeline(classes, cssEntryContent, root, minify = true) {
|
|
956
|
+
async function runCssPipeline(classes, cssEntryContent, root, minify = true, minifier = "lightning") {
|
|
901
957
|
const filtered = classes.filter(Boolean);
|
|
902
958
|
const uniqueMap = /* @__PURE__ */ new Map();
|
|
903
959
|
filtered.forEach((cls) => uniqueMap.set(cls, cls));
|
|
@@ -905,7 +961,7 @@ async function runCssPipeline(classes, cssEntryContent, root, minify = true) {
|
|
|
905
961
|
if (unique.length === 0) {
|
|
906
962
|
return { css: "", classes: [], sizeBytes: 0, optimized: false };
|
|
907
963
|
}
|
|
908
|
-
const cacheKey = _getCacheKey(unique, minify, cssEntryContent, root)
|
|
964
|
+
const cacheKey = _getCacheKey(unique, minify, cssEntryContent, root) + `|${minifier}`;
|
|
909
965
|
const cached = _cssCache.get(cacheKey);
|
|
910
966
|
if (cached) {
|
|
911
967
|
_cacheHits++;
|
|
@@ -922,7 +978,14 @@ async function runCssPipeline(classes, cssEntryContent, root, minify = true) {
|
|
|
922
978
|
const theme = getThemeConfig();
|
|
923
979
|
rawCss = await generateCssNative(unique, { theme });
|
|
924
980
|
usedRustCompiler = true;
|
|
925
|
-
|
|
981
|
+
let finalCss = rawCss;
|
|
982
|
+
if (minify) {
|
|
983
|
+
if (minifier === "fast") {
|
|
984
|
+
finalCss = minifyCss(rawCss);
|
|
985
|
+
} else {
|
|
986
|
+
finalCss = postProcessWithLightning(rawCss);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
926
989
|
if (process.env.DEBUG?.includes("compiler")) {
|
|
927
990
|
console.log(
|
|
928
991
|
`[Compiler] Generated CSS from ${unique.length} classes (${usedRustCompiler ? "Rust" : "JavaScript"})`,
|
|
@@ -958,6 +1021,7 @@ var init_tailwindEngine = __esm({
|
|
|
958
1021
|
"packages/domain/compiler/src/compiler/tailwindEngine.ts"() {
|
|
959
1022
|
init_nativeBridge();
|
|
960
1023
|
init_cssGeneratorNative();
|
|
1024
|
+
init_cssCompilationNative();
|
|
961
1025
|
createRequire(import.meta.url);
|
|
962
1026
|
_cssCache = /* @__PURE__ */ new Map();
|
|
963
1027
|
_cacheHits = 0;
|
|
@@ -991,9 +1055,10 @@ __export(parser_exports, {
|
|
|
991
1055
|
mergeClassesStatic: () => mergeClassesStatic,
|
|
992
1056
|
normalizeAndDedupClasses: () => normalizeAndDedupClasses,
|
|
993
1057
|
normalizeClasses: () => normalizeClasses,
|
|
1058
|
+
parseClass: () => parseClass,
|
|
994
1059
|
parseClasses: () => parseClasses
|
|
995
1060
|
});
|
|
996
|
-
var parseClasses, extractAllClasses, extractClassesFromSource, astExtractClasses, normalizeClasses, mergeClassesStatic, normalizeAndDedupClasses, extractComponentUsage, batchExtractClasses, checkAgainstSafelist, diffClassLists;
|
|
1061
|
+
var parseClasses, parseClass, extractAllClasses, extractClassesFromSource, astExtractClasses, normalizeClasses, mergeClassesStatic, normalizeAndDedupClasses, extractComponentUsage, batchExtractClasses, checkAgainstSafelist, diffClassLists;
|
|
997
1062
|
var init_parser = __esm({
|
|
998
1063
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
999
1064
|
init_nativeBridge();
|
|
@@ -1004,6 +1069,14 @@ var init_parser = __esm({
|
|
|
1004
1069
|
}
|
|
1005
1070
|
return native.parseClasses(raw) || [];
|
|
1006
1071
|
};
|
|
1072
|
+
parseClass = (input) => {
|
|
1073
|
+
const native = getNativeBridge();
|
|
1074
|
+
if (!native?.parseClass) {
|
|
1075
|
+
throw new Error("FATAL: Native binding 'parseClass' is required but not available.");
|
|
1076
|
+
}
|
|
1077
|
+
const result = native.parseClass(input);
|
|
1078
|
+
return typeof result === "string" ? JSON.parse(result) : result;
|
|
1079
|
+
};
|
|
1007
1080
|
extractAllClasses = (source) => {
|
|
1008
1081
|
const native = getNativeBridge();
|
|
1009
1082
|
if (!native?.extractAllClasses) {
|
|
@@ -1135,6 +1208,35 @@ function mergeCssDeclarationsNative(cssChunks) {
|
|
|
1135
1208
|
if (!native?.mergeCssDeclarations) throw new Error("mergeCssDeclarations not available");
|
|
1136
1209
|
return native.mergeCssDeclarations(cssChunks);
|
|
1137
1210
|
}
|
|
1211
|
+
function getWeek6FeaturesStatus() {
|
|
1212
|
+
const native = getNativeBridge();
|
|
1213
|
+
if (!native?.getWeek6FeaturesStatus) throw new Error("getWeek6FeaturesStatus not available");
|
|
1214
|
+
const resultJson = native.getWeek6FeaturesStatus();
|
|
1215
|
+
return JSON.parse(resultJson);
|
|
1216
|
+
}
|
|
1217
|
+
function getMemoryStatsNative() {
|
|
1218
|
+
const native = getNativeBridge();
|
|
1219
|
+
if (!native?.getMemoryStatsNative) throw new Error("getMemoryStatsNative not available");
|
|
1220
|
+
const resultJson = native.getMemoryStatsNative();
|
|
1221
|
+
return JSON.parse(resultJson);
|
|
1222
|
+
}
|
|
1223
|
+
function getMemoryRecommendationsNative() {
|
|
1224
|
+
const native = getNativeBridge();
|
|
1225
|
+
if (!native?.getMemoryRecommendationsNative) throw new Error("getMemoryRecommendationsNative not available");
|
|
1226
|
+
const resultJson = native.getMemoryRecommendationsNative();
|
|
1227
|
+
return JSON.parse(resultJson);
|
|
1228
|
+
}
|
|
1229
|
+
function estimateOptimalCacheConfigNative(workloadType, expectedEntries) {
|
|
1230
|
+
const native = getNativeBridge();
|
|
1231
|
+
if (!native?.estimateOptimalCacheConfigNative) throw new Error("estimateOptimalCacheConfigNative not available");
|
|
1232
|
+
const resultJson = native.estimateOptimalCacheConfigNative(workloadType, expectedEntries);
|
|
1233
|
+
return JSON.parse(resultJson);
|
|
1234
|
+
}
|
|
1235
|
+
function resetMemoryStats() {
|
|
1236
|
+
const native = getNativeBridge();
|
|
1237
|
+
if (!native?.resetMemoryStats) throw new Error("resetMemoryStats not available");
|
|
1238
|
+
native.resetMemoryStats();
|
|
1239
|
+
}
|
|
1138
1240
|
var init_analyzerNative = __esm({
|
|
1139
1241
|
"packages/domain/compiler/src/analyzer/analyzerNative.ts"() {
|
|
1140
1242
|
init_nativeBridge();
|
|
@@ -1424,6 +1526,52 @@ function cachePriority(mtimeMs, sizeBytes, hitCount) {
|
|
|
1424
1526
|
if (!native?.cache_priority) throw new Error("cache_priority not available");
|
|
1425
1527
|
return native.cache_priority(mtimeMs, sizeBytes, hitCount);
|
|
1426
1528
|
}
|
|
1529
|
+
function getResolverPoolStats() {
|
|
1530
|
+
const native = getNativeBridge();
|
|
1531
|
+
if (!native?.getResolverPoolStats) throw new Error("getResolverPoolStats not available");
|
|
1532
|
+
const statsJson = native.getResolverPoolStats();
|
|
1533
|
+
try {
|
|
1534
|
+
return JSON.parse(statsJson);
|
|
1535
|
+
} catch {
|
|
1536
|
+
return {
|
|
1537
|
+
hits: 0,
|
|
1538
|
+
misses: 0,
|
|
1539
|
+
total: 0,
|
|
1540
|
+
hit_rate: 0,
|
|
1541
|
+
cached_resolvers: 0
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
function clearResolverPool() {
|
|
1546
|
+
const native = getNativeBridge();
|
|
1547
|
+
if (!native?.clearResolverPool) throw new Error("clearResolverPool not available");
|
|
1548
|
+
const resultJson = native.clearResolverPool();
|
|
1549
|
+
try {
|
|
1550
|
+
return JSON.parse(resultJson);
|
|
1551
|
+
} catch {
|
|
1552
|
+
return { status: "error" };
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
function resolveColorCached(themeId, color, configJson) {
|
|
1556
|
+
const native = getNativeBridge();
|
|
1557
|
+
if (!native?.resolveColorCached) throw new Error("resolveColorCached not available");
|
|
1558
|
+
return native.resolveColorCached(themeId, color, configJson);
|
|
1559
|
+
}
|
|
1560
|
+
function resolveSpacingCached(themeId, spacing, configJson) {
|
|
1561
|
+
const native = getNativeBridge();
|
|
1562
|
+
if (!native?.resolveSpacingCached) throw new Error("resolveSpacingCached not available");
|
|
1563
|
+
return native.resolveSpacingCached(themeId, spacing, configJson);
|
|
1564
|
+
}
|
|
1565
|
+
function resolveFontSizeCached(themeId, size, configJson) {
|
|
1566
|
+
const native = getNativeBridge();
|
|
1567
|
+
if (!native?.resolveFontSizeCached) throw new Error("resolveFontSizeCached not available");
|
|
1568
|
+
return native.resolveFontSizeCached(themeId, size, configJson);
|
|
1569
|
+
}
|
|
1570
|
+
function resetResolverPoolStats() {
|
|
1571
|
+
const native = getNativeBridge();
|
|
1572
|
+
if (!native?.resetResolverPoolStats) throw new Error("resetResolverPoolStats not available");
|
|
1573
|
+
native.resetResolverPoolStats();
|
|
1574
|
+
}
|
|
1427
1575
|
var init_cacheNative = __esm({
|
|
1428
1576
|
"packages/domain/compiler/src/cache/cacheNative.ts"() {
|
|
1429
1577
|
init_nativeBridge();
|
|
@@ -1868,6 +2016,7 @@ __export(src_exports, {
|
|
|
1868
2016
|
clearCssGenCache: () => clearCssGenCache,
|
|
1869
2017
|
clearParseCache: () => clearParseCache,
|
|
1870
2018
|
clearResolveCache: () => clearResolveCache,
|
|
2019
|
+
clearResolverPool: () => clearResolverPool,
|
|
1871
2020
|
clearThemeCache: () => clearThemeCache,
|
|
1872
2021
|
collectFiles: () => collectFiles,
|
|
1873
2022
|
compileAnimation: () => compileAnimation,
|
|
@@ -1890,6 +2039,7 @@ __export(src_exports, {
|
|
|
1890
2039
|
eliminateDeadCssNative: () => eliminateDeadCssNative,
|
|
1891
2040
|
emitPluginHook: () => emitPluginHook,
|
|
1892
2041
|
estimateOptimalCacheConfig: () => estimateOptimalCacheConfig,
|
|
2042
|
+
estimateOptimalCacheConfigNative: () => estimateOptimalCacheConfigNative,
|
|
1893
2043
|
extractAllClasses: () => extractAllClasses,
|
|
1894
2044
|
extractAndGenerateStateCss: () => extractAndGenerateStateCss,
|
|
1895
2045
|
extractAndGenerateStateCssNative: () => extractAndGenerateStateCssNative,
|
|
@@ -1903,6 +2053,8 @@ __export(src_exports, {
|
|
|
1903
2053
|
fileToRoute: () => fileToRoute,
|
|
1904
2054
|
findDeadVariants: () => findDeadVariants,
|
|
1905
2055
|
generateAtomicCss: () => generateAtomicCss,
|
|
2056
|
+
generateCss: () => generateCss,
|
|
2057
|
+
generateCssBatch: () => generateCssBatch,
|
|
1906
2058
|
generateCssForClasses: () => generateCssForClasses,
|
|
1907
2059
|
generateCssNative: () => generateCssNative,
|
|
1908
2060
|
generateSafelist: () => generateSafelist,
|
|
@@ -1918,10 +2070,14 @@ __export(src_exports, {
|
|
|
1918
2070
|
getCompilerDiagnostics: () => getCompilerDiagnostics,
|
|
1919
2071
|
getContentPaths: () => getContentPaths,
|
|
1920
2072
|
getIncrementalEngine: () => getIncrementalEngine,
|
|
2073
|
+
getMemoryRecommendationsNative: () => getMemoryRecommendationsNative,
|
|
2074
|
+
getMemoryStatsNative: () => getMemoryStatsNative,
|
|
1921
2075
|
getNativeBridge: () => getNativeBridge,
|
|
1922
2076
|
getPluginHooks: () => getPluginHooks,
|
|
2077
|
+
getResolverPoolStats: () => getResolverPoolStats,
|
|
1923
2078
|
getRouteClasses: () => getRouteClasses,
|
|
1924
2079
|
getWatchStats: () => getWatchStats,
|
|
2080
|
+
getWeek6FeaturesStatus: () => getWeek6FeaturesStatus,
|
|
1925
2081
|
hasTwUsage: () => hasTwUsage,
|
|
1926
2082
|
hashContent: () => hashContent,
|
|
1927
2083
|
hoistComponentsNative: () => hoistComponentsNative,
|
|
@@ -1950,6 +2106,7 @@ __export(src_exports, {
|
|
|
1950
2106
|
normalizeClasses: () => normalizeClasses,
|
|
1951
2107
|
optimizeCssNative: () => optimizeCssNative,
|
|
1952
2108
|
parseAtomicClass: () => parseAtomicClass,
|
|
2109
|
+
parseClass: () => parseClass,
|
|
1953
2110
|
parseClasses: () => parseClasses,
|
|
1954
2111
|
pollWatchEvents: () => pollWatchEvents,
|
|
1955
2112
|
processFileChange: () => processFileChange,
|
|
@@ -2001,13 +2158,19 @@ __export(src_exports, {
|
|
|
2001
2158
|
registerPropertyName: () => registerPropertyName,
|
|
2002
2159
|
registerValueName: () => registerValueName,
|
|
2003
2160
|
resetBucketEngine: () => resetBucketEngine,
|
|
2161
|
+
resetCacheStats: () => resetCacheStats,
|
|
2004
2162
|
resetCompilationMetrics: () => resetCompilationMetrics,
|
|
2005
2163
|
resetIncrementalEngine: () => resetIncrementalEngine,
|
|
2164
|
+
resetMemoryStats: () => resetMemoryStats,
|
|
2006
2165
|
resetNativeBridgeCache: () => resetNativeBridgeCache,
|
|
2166
|
+
resetResolverPoolStats: () => resetResolverPoolStats,
|
|
2007
2167
|
resolveCascade: () => resolveCascade,
|
|
2008
2168
|
resolveClassNames: () => resolveClassNames,
|
|
2169
|
+
resolveColorCached: () => resolveColorCached,
|
|
2009
2170
|
resolveConflictGroup: () => resolveConflictGroup,
|
|
2171
|
+
resolveFontSizeCached: () => resolveFontSizeCached,
|
|
2010
2172
|
resolveSimpleVariants: () => resolveSimpleVariants,
|
|
2173
|
+
resolveSpacingCached: () => resolveSpacingCached,
|
|
2011
2174
|
resolveThemeValue: () => resolveThemeValue,
|
|
2012
2175
|
resolveVariants: () => resolveVariants,
|
|
2013
2176
|
reverseLookupProperty: () => reverseLookupProperty,
|
|
@@ -2281,9 +2444,9 @@ var init_src = __esm({
|
|
|
2281
2444
|
if (normalized.includes("/layout.") || normalized.includes("/loading.") || normalized.includes("/error.")) {
|
|
2282
2445
|
return "__global";
|
|
2283
2446
|
}
|
|
2284
|
-
const pageMatch = normalized.match(
|
|
2447
|
+
const pageMatch = normalized.match(/(?:^|\/)app\/(.+?)\/page\.[tj]sx?$/);
|
|
2285
2448
|
if (pageMatch) return `/${pageMatch[1]}`;
|
|
2286
|
-
const rootPage = normalized.match(
|
|
2449
|
+
const rootPage = normalized.match(/(?:^|\/)app\/page\.[tj]sx?$/);
|
|
2287
2450
|
if (rootPage) return "/";
|
|
2288
2451
|
return null;
|
|
2289
2452
|
};
|
|
@@ -2447,6 +2610,7 @@ __export(internal_exports, {
|
|
|
2447
2610
|
clearCssGenCache: () => clearCssGenCache,
|
|
2448
2611
|
clearParseCache: () => clearParseCache,
|
|
2449
2612
|
clearResolveCache: () => clearResolveCache,
|
|
2613
|
+
clearResolverPool: () => clearResolverPool,
|
|
2450
2614
|
clearThemeCache: () => clearThemeCache,
|
|
2451
2615
|
collectFiles: () => collectFiles,
|
|
2452
2616
|
compileAnimation: () => compileAnimation,
|
|
@@ -2469,6 +2633,7 @@ __export(internal_exports, {
|
|
|
2469
2633
|
eliminateDeadCssNative: () => eliminateDeadCssNative,
|
|
2470
2634
|
emitPluginHook: () => emitPluginHook,
|
|
2471
2635
|
estimateOptimalCacheConfig: () => estimateOptimalCacheConfig,
|
|
2636
|
+
estimateOptimalCacheConfigNative: () => estimateOptimalCacheConfigNative,
|
|
2472
2637
|
extractAllClasses: () => extractAllClasses,
|
|
2473
2638
|
extractAndGenerateStateCss: () => extractAndGenerateStateCss,
|
|
2474
2639
|
extractAndGenerateStateCssNative: () => extractAndGenerateStateCssNative,
|
|
@@ -2482,6 +2647,8 @@ __export(internal_exports, {
|
|
|
2482
2647
|
fileToRoute: () => fileToRoute,
|
|
2483
2648
|
findDeadVariants: () => findDeadVariants,
|
|
2484
2649
|
generateAtomicCss: () => generateAtomicCss,
|
|
2650
|
+
generateCss: () => generateCss,
|
|
2651
|
+
generateCssBatch: () => generateCssBatch,
|
|
2485
2652
|
generateCssForClasses: () => generateCssForClasses,
|
|
2486
2653
|
generateCssNative: () => generateCssNative,
|
|
2487
2654
|
generateSafelist: () => generateSafelist,
|
|
@@ -2497,10 +2664,14 @@ __export(internal_exports, {
|
|
|
2497
2664
|
getCompilerDiagnostics: () => getCompilerDiagnostics,
|
|
2498
2665
|
getContentPaths: () => getContentPaths,
|
|
2499
2666
|
getIncrementalEngine: () => getIncrementalEngine,
|
|
2667
|
+
getMemoryRecommendationsNative: () => getMemoryRecommendationsNative,
|
|
2668
|
+
getMemoryStatsNative: () => getMemoryStatsNative,
|
|
2500
2669
|
getNativeBridge: () => getNativeBridge,
|
|
2501
2670
|
getPluginHooks: () => getPluginHooks,
|
|
2671
|
+
getResolverPoolStats: () => getResolverPoolStats,
|
|
2502
2672
|
getRouteClasses: () => getRouteClasses,
|
|
2503
2673
|
getWatchStats: () => getWatchStats,
|
|
2674
|
+
getWeek6FeaturesStatus: () => getWeek6FeaturesStatus,
|
|
2504
2675
|
hasTwUsage: () => hasTwUsage,
|
|
2505
2676
|
hashContent: () => hashContent,
|
|
2506
2677
|
hoistComponentsNative: () => hoistComponentsNative,
|
|
@@ -2529,6 +2700,7 @@ __export(internal_exports, {
|
|
|
2529
2700
|
normalizeClasses: () => normalizeClasses,
|
|
2530
2701
|
optimizeCssNative: () => optimizeCssNative,
|
|
2531
2702
|
parseAtomicClass: () => parseAtomicClass,
|
|
2703
|
+
parseClass: () => parseClass,
|
|
2532
2704
|
parseClasses: () => parseClasses,
|
|
2533
2705
|
pollWatchEvents: () => pollWatchEvents,
|
|
2534
2706
|
processFileChange: () => processFileChange,
|
|
@@ -2580,12 +2752,18 @@ __export(internal_exports, {
|
|
|
2580
2752
|
registerPropertyName: () => registerPropertyName,
|
|
2581
2753
|
registerValueName: () => registerValueName,
|
|
2582
2754
|
resetBucketEngine: () => resetBucketEngine,
|
|
2755
|
+
resetCacheStats: () => resetCacheStats,
|
|
2583
2756
|
resetCompilationMetrics: () => resetCompilationMetrics,
|
|
2584
2757
|
resetIncrementalEngine: () => resetIncrementalEngine,
|
|
2758
|
+
resetMemoryStats: () => resetMemoryStats,
|
|
2759
|
+
resetResolverPoolStats: () => resetResolverPoolStats,
|
|
2585
2760
|
resolveCascade: () => resolveCascade,
|
|
2586
2761
|
resolveClassNames: () => resolveClassNames,
|
|
2762
|
+
resolveColorCached: () => resolveColorCached,
|
|
2587
2763
|
resolveConflictGroup: () => resolveConflictGroup,
|
|
2764
|
+
resolveFontSizeCached: () => resolveFontSizeCached,
|
|
2588
2765
|
resolveSimpleVariants: () => resolveSimpleVariants,
|
|
2766
|
+
resolveSpacingCached: () => resolveSpacingCached,
|
|
2589
2767
|
resolveThemeValue: () => resolveThemeValue,
|
|
2590
2768
|
resolveVariants: () => resolveVariants,
|
|
2591
2769
|
reverseLookupProperty: () => reverseLookupProperty,
|