@csszyx/unplugin 0.10.1 → 0.10.3
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/index.cjs +3 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/{unplugin.Dk6ddrZX.cjs → unplugin.B6W7JChH.cjs} +65 -8
- package/dist/shared/{unplugin.BqLCtc84.d.cts → unplugin.C369_QDw.d.cts} +31 -1
- package/dist/shared/{unplugin.BqLCtc84.d.mts → unplugin.C369_QDw.d.mts} +31 -1
- package/dist/shared/{unplugin.CLXpKBe4.mjs → unplugin.ZUVKukQo.mjs} +62 -7
- package/dist/vite.cjs +1 -1
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const cssMangler = require('./css-mangler.cjs');
|
|
6
|
-
const unplugin = require('./shared/unplugin.
|
|
6
|
+
const unplugin = require('./shared/unplugin.B6W7JChH.cjs');
|
|
7
7
|
const types = require('@csszyx/types');
|
|
8
8
|
require('postcss');
|
|
9
9
|
require('postcss-selector-parser');
|
|
@@ -63,11 +63,13 @@ exports.normalizeGlobalVarAliasesForCache = unplugin.normalizeGlobalVarAliasesFo
|
|
|
63
63
|
exports.parseThemeBlocks = unplugin.parseThemeBlocks;
|
|
64
64
|
exports.planGlobalVarAliases = unplugin.planGlobalVarAliases;
|
|
65
65
|
exports.readGlobalVarScanCache = unplugin.readGlobalVarScanCache;
|
|
66
|
+
exports.resolveCompilePackageDirs = unplugin.resolveCompilePackageDirs;
|
|
66
67
|
exports.resolveGlobalVarScanCacheDir = unplugin.resolveGlobalVarScanCacheDir;
|
|
67
68
|
exports.resolveNativeCacheIdentity = unplugin.resolveNativeCacheIdentity;
|
|
68
69
|
exports.rewriteGlobalVarCssAliases = unplugin.rewriteGlobalVarCssAliases;
|
|
69
70
|
exports.rollupPlugin = unplugin.rollupPlugin;
|
|
70
71
|
exports.scanGlobalVarCss = unplugin.scanGlobalVarCss;
|
|
72
|
+
exports.shouldEmitWarning = unplugin.shouldEmitWarning;
|
|
71
73
|
exports.shouldWarnMissingTailwindEntry = unplugin.shouldWarnMissingTailwindEntry;
|
|
72
74
|
exports.shouldWarnUnscopedMonorepo = unplugin.shouldWarnUnscopedMonorepo;
|
|
73
75
|
exports.skippedSzFilesMessage = unplugin.skippedSzFilesMessage;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.cjs';
|
|
2
2
|
export { CSSZYX_GLOBAL_ALIAS_PREFIX, TAILWIND_RESERVED_PREFIXES } from '@csszyx/types';
|
|
3
|
-
import { G as GlobalVarScanCacheKeyInput, C as CssVarScanResult, S as ScanGlobalVarCssOptions, P as PlanGlobalVarAliasesInput, a as GlobalVarAliasPlan, R as RewriteGlobalVarCssAliasesOptions, b as GlobalVarCssAliasRewriteResult, c as CreateGlobalVarAliasValidationOptionsInput, V as ValidateGlobalVarAliasInputsOptions, d as GlobalVarAliasValidationResult } from './shared/unplugin.
|
|
3
|
+
import { G as GlobalVarScanCacheKeyInput, C as CssVarScanResult, S as ScanGlobalVarCssOptions, P as PlanGlobalVarAliasesInput, a as GlobalVarAliasPlan, R as RewriteGlobalVarCssAliasesOptions, b as GlobalVarCssAliasRewriteResult, c as CreateGlobalVarAliasValidationOptionsInput, V as ValidateGlobalVarAliasInputsOptions, d as GlobalVarAliasValidationResult } from './shared/unplugin.C369_QDw.cjs';
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
export = undefined;
|
|
6
|
-
export { e as CssVarDefinition, f as CssVarLocation, g as CssVarReference, h as GlobalVarAliasDiagnostic, i as GlobalVarAliasDiagnosticSeverity, j as GlobalVarAliasEntry, k as GlobalVarCodeSource, l as GlobalVarCssAssetSource, m as GlobalVarCssSource, n as GlobalVarScanCacheEntry, o as appendTailwindSourceDirective, p as computeSafelistRelPath, q as createGlobalVarMapAssetSource, r as cssHasContentScope, s as cssImportsTailwind, t as esbuildPlugin, v as extractGlobalVarAliasesForManifest, w as hasInjectableTailwindCandidate, x as isCompilePackageOptedIn, y as isHardIgnoredPath, z as isMonorepoPackage, A as isPackagesSkippedSource, B as mangleCodeClassesSync, D as missingTailwindEntryMessage, E as normalizeGlobalVarAliasesForCache, F as
|
|
6
|
+
export { e as CssVarDefinition, f as CssVarLocation, g as CssVarReference, h as GlobalVarAliasDiagnostic, i as GlobalVarAliasDiagnosticSeverity, j as GlobalVarAliasEntry, k as GlobalVarCodeSource, l as GlobalVarCssAssetSource, m as GlobalVarCssSource, n as GlobalVarScanCacheEntry, o as appendTailwindSourceDirective, p as computeSafelistRelPath, q as createGlobalVarMapAssetSource, r as cssHasContentScope, s as cssImportsTailwind, t as esbuildPlugin, v as extractGlobalVarAliasesForManifest, w as hasInjectableTailwindCandidate, x as isCompilePackageOptedIn, y as isHardIgnoredPath, z as isMonorepoPackage, A as isPackagesSkippedSource, B as mangleCodeClassesSync, D as missingTailwindEntryMessage, E as normalizeGlobalVarAliasesForCache, F as resolveCompilePackageDirs, H as resolveNativeCacheIdentity, I as rollupPlugin, J as shouldEmitWarning, K as shouldWarnMissingTailwindEntry, L as shouldWarnUnscopedMonorepo, M as skippedSzFilesMessage, u as unplugin, N as unscopedMonorepoMessage, O as vitePlugin, Q as webpackPlugin } from './shared/unplugin.C369_QDw.cjs';
|
|
7
7
|
import 'postcss';
|
|
8
8
|
import '@csszyx/compiler';
|
|
9
9
|
import 'esbuild';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
|
|
2
2
|
export { CSSZYX_GLOBAL_ALIAS_PREFIX, TAILWIND_RESERVED_PREFIXES } from '@csszyx/types';
|
|
3
|
-
import { G as GlobalVarScanCacheKeyInput, C as CssVarScanResult, S as ScanGlobalVarCssOptions, P as PlanGlobalVarAliasesInput, a as GlobalVarAliasPlan, R as RewriteGlobalVarCssAliasesOptions, b as GlobalVarCssAliasRewriteResult, c as CreateGlobalVarAliasValidationOptionsInput, V as ValidateGlobalVarAliasInputsOptions, d as GlobalVarAliasValidationResult } from './shared/unplugin.
|
|
4
|
-
export { e as CssVarDefinition, f as CssVarLocation, g as CssVarReference, h as GlobalVarAliasDiagnostic, i as GlobalVarAliasDiagnosticSeverity, j as GlobalVarAliasEntry, k as GlobalVarCodeSource, l as GlobalVarCssAssetSource, m as GlobalVarCssSource, n as GlobalVarScanCacheEntry, o as appendTailwindSourceDirective, p as computeSafelistRelPath, q as createGlobalVarMapAssetSource, r as cssHasContentScope, s as cssImportsTailwind, u as default, t as esbuildPlugin, v as extractGlobalVarAliasesForManifest, w as hasInjectableTailwindCandidate, x as isCompilePackageOptedIn, y as isHardIgnoredPath, z as isMonorepoPackage, A as isPackagesSkippedSource, B as mangleCodeClassesSync, D as missingTailwindEntryMessage, E as normalizeGlobalVarAliasesForCache, F as
|
|
3
|
+
import { G as GlobalVarScanCacheKeyInput, C as CssVarScanResult, S as ScanGlobalVarCssOptions, P as PlanGlobalVarAliasesInput, a as GlobalVarAliasPlan, R as RewriteGlobalVarCssAliasesOptions, b as GlobalVarCssAliasRewriteResult, c as CreateGlobalVarAliasValidationOptionsInput, V as ValidateGlobalVarAliasInputsOptions, d as GlobalVarAliasValidationResult } from './shared/unplugin.C369_QDw.mjs';
|
|
4
|
+
export { e as CssVarDefinition, f as CssVarLocation, g as CssVarReference, h as GlobalVarAliasDiagnostic, i as GlobalVarAliasDiagnosticSeverity, j as GlobalVarAliasEntry, k as GlobalVarCodeSource, l as GlobalVarCssAssetSource, m as GlobalVarCssSource, n as GlobalVarScanCacheEntry, o as appendTailwindSourceDirective, p as computeSafelistRelPath, q as createGlobalVarMapAssetSource, r as cssHasContentScope, s as cssImportsTailwind, u as default, t as esbuildPlugin, v as extractGlobalVarAliasesForManifest, w as hasInjectableTailwindCandidate, x as isCompilePackageOptedIn, y as isHardIgnoredPath, z as isMonorepoPackage, A as isPackagesSkippedSource, B as mangleCodeClassesSync, D as missingTailwindEntryMessage, E as normalizeGlobalVarAliasesForCache, F as resolveCompilePackageDirs, H as resolveNativeCacheIdentity, I as rollupPlugin, J as shouldEmitWarning, K as shouldWarnMissingTailwindEntry, L as shouldWarnUnscopedMonorepo, M as skippedSzFilesMessage, u as unplugin, N as unscopedMonorepoMessage, O as vitePlugin, Q as webpackPlugin } from './shared/unplugin.C369_QDw.mjs';
|
|
5
5
|
import 'postcss';
|
|
6
6
|
import '@csszyx/compiler';
|
|
7
7
|
import 'esbuild';
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
|
|
2
|
-
export { a as appendTailwindSourceDirective, b as assertNoRSCBoundaryViolation, c as assertNoRSCGraphViolation, d as computeSafelistRelPath, e as createGlobalVarAliasValidationOptions, f as createGlobalVarMapAssetSource, g as createGlobalVarScanCacheKey, h as createRSCModuleRecord, i as cssHasContentScope, j as cssImportsTailwind, u as default, k as deleteRSCModuleRecord, l as esbuildPlugin, m as extractGlobalVarAliasesForManifest, n as findRSCBoundaryViolation, o as findRSCGraphViolation, p as hasInjectableTailwindCandidate, q as hasTokens, r as hasUseClientDirective, s as hasUseServerDirective, t as isCompilePackageOptedIn, v as isHardIgnoredPath, w as isMonorepoPackage, x as isPackagesSkippedSource, y as isRSCServerModule, z as isTailwindReservedGlobalVar, A as mangleCodeClassesSync, B as mergeThemes, C as missingTailwindEntryMessage, D as normalizeGlobalVarAliasesForCache, E as parseThemeBlocks, F as planGlobalVarAliases, G as readGlobalVarScanCache, H as
|
|
2
|
+
export { a as appendTailwindSourceDirective, b as assertNoRSCBoundaryViolation, c as assertNoRSCGraphViolation, d as computeSafelistRelPath, e as createGlobalVarAliasValidationOptions, f as createGlobalVarMapAssetSource, g as createGlobalVarScanCacheKey, h as createRSCModuleRecord, i as cssHasContentScope, j as cssImportsTailwind, u as default, k as deleteRSCModuleRecord, l as esbuildPlugin, m as extractGlobalVarAliasesForManifest, n as findRSCBoundaryViolation, o as findRSCGraphViolation, p as hasInjectableTailwindCandidate, q as hasTokens, r as hasUseClientDirective, s as hasUseServerDirective, t as isCompilePackageOptedIn, v as isHardIgnoredPath, w as isMonorepoPackage, x as isPackagesSkippedSource, y as isRSCServerModule, z as isTailwindReservedGlobalVar, A as mangleCodeClassesSync, B as mergeThemes, C as missingTailwindEntryMessage, D as normalizeGlobalVarAliasesForCache, E as parseThemeBlocks, F as planGlobalVarAliases, G as readGlobalVarScanCache, H as resolveCompilePackageDirs, I as resolveGlobalVarScanCacheDir, J as resolveNativeCacheIdentity, K as rewriteGlobalVarCssAliases, L as rollupPlugin, M as scanGlobalVarCss, N as shouldEmitWarning, O as shouldWarnMissingTailwindEntry, P as shouldWarnUnscopedMonorepo, Q as skippedSzFilesMessage, u as unplugin, R as unscopedMonorepoMessage, S as validateGlobalVarAliasInputs, T as vitePlugin, U as webpackPlugin, V as writeGlobalVarScanCache } from './shared/unplugin.ZUVKukQo.mjs';
|
|
3
3
|
export { CSSZYX_GLOBAL_ALIAS_PREFIX, TAILWIND_RESERVED_PREFIXES } from '@csszyx/types';
|
|
4
4
|
import 'postcss';
|
|
5
5
|
import 'postcss-selector-parser';
|
|
@@ -1594,9 +1594,9 @@ const RUNTIME_HELPER_IMPORT_RE = {
|
|
|
1594
1594
|
};
|
|
1595
1595
|
let _hasWarnedTsConfig = false;
|
|
1596
1596
|
let _hasWarnedTransformCacheVersion = false;
|
|
1597
|
-
const requireFromHere = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/unplugin.
|
|
1597
|
+
const requireFromHere = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/unplugin.B6W7JChH.cjs', document.baseURI).href)));
|
|
1598
1598
|
const PLUGIN_VERSION = findPackageVersionFromFile(
|
|
1599
|
-
node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/unplugin.
|
|
1599
|
+
node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/unplugin.B6W7JChH.cjs', document.baseURI).href))),
|
|
1600
1600
|
UNKNOWN_PACKAGE_VERSION
|
|
1601
1601
|
);
|
|
1602
1602
|
const COMPILER_VERSION = findPackageVersionFromModule("@csszyx/compiler", UNKNOWN_PACKAGE_VERSION);
|
|
@@ -1703,6 +1703,15 @@ function shouldWarnUnscopedMonorepo(sawTailwindEntry, tailwindEntryScoped, inMon
|
|
|
1703
1703
|
function unscopedMonorepoMessage() {
|
|
1704
1704
|
return '[csszyx] Tailwind content detection is UNSCOPED in a monorepo. Tailwind v4 climbs to the workspace root and scans sibling packages + docs (.md/.mdx/.txt are not ignored), which can generate phantom or broken url() classes and fail the build. Scope it in your Tailwind CSS entry:\n @import "tailwindcss" source(none);\n @source "."; /* this package, relative to the CSS file */\ncsszyx auto-injects @source for its generated classes, so only your own templates need listing. Guide: https://csszyx.com/docs/monorepo-content-scope/\nSilence (if a broad scan is intentional): csszyx({ contentScopeCheck: false }).';
|
|
1705
1705
|
}
|
|
1706
|
+
function shouldEmitWarning(quiet, devOnly, isProduction) {
|
|
1707
|
+
if (quiet) {
|
|
1708
|
+
return false;
|
|
1709
|
+
}
|
|
1710
|
+
if (devOnly && isProduction) {
|
|
1711
|
+
return false;
|
|
1712
|
+
}
|
|
1713
|
+
return true;
|
|
1714
|
+
}
|
|
1706
1715
|
function isCompilePackageOptedIn(id, compilePackages) {
|
|
1707
1716
|
const path2 = id.replace(/\\/g, "/");
|
|
1708
1717
|
if (path2.includes("node_modules")) {
|
|
@@ -1710,6 +1719,41 @@ function isCompilePackageOptedIn(id, compilePackages) {
|
|
|
1710
1719
|
}
|
|
1711
1720
|
return compilePackages.some((name) => path2.includes(`/packages/${name}/`));
|
|
1712
1721
|
}
|
|
1722
|
+
function resolveCompilePackageDirs(rootDir, compilePackages, dirExists = (dir) => {
|
|
1723
|
+
try {
|
|
1724
|
+
return fs__namespace.statSync(dir).isDirectory();
|
|
1725
|
+
} catch {
|
|
1726
|
+
return false;
|
|
1727
|
+
}
|
|
1728
|
+
}) {
|
|
1729
|
+
if (compilePackages.length === 0) {
|
|
1730
|
+
return [];
|
|
1731
|
+
}
|
|
1732
|
+
const root = path__namespace.resolve(rootDir);
|
|
1733
|
+
const normalizedRoot = root.replace(/\\/g, "/");
|
|
1734
|
+
const found = [];
|
|
1735
|
+
const pending = new Set(compilePackages);
|
|
1736
|
+
let dir = root;
|
|
1737
|
+
while (pending.size > 0) {
|
|
1738
|
+
for (const name of [...pending]) {
|
|
1739
|
+
const candidate = path__namespace.join(dir, "packages", name);
|
|
1740
|
+
const key = candidate.replace(/\\/g, "/");
|
|
1741
|
+
if (key === normalizedRoot || key.startsWith(`${normalizedRoot}/`)) {
|
|
1742
|
+
continue;
|
|
1743
|
+
}
|
|
1744
|
+
if (dirExists(candidate)) {
|
|
1745
|
+
found.push(candidate);
|
|
1746
|
+
pending.delete(name);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
const parent = path__namespace.dirname(dir);
|
|
1750
|
+
if (parent === dir) {
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
dir = parent;
|
|
1754
|
+
}
|
|
1755
|
+
return found;
|
|
1756
|
+
}
|
|
1713
1757
|
function isHardIgnoredPath(id, compilePackages = []) {
|
|
1714
1758
|
const path2 = id.replace(/\\/g, "/");
|
|
1715
1759
|
if (path2.includes("node_modules")) {
|
|
@@ -2375,6 +2419,12 @@ function createCsszyxPlugins(options = {}) {
|
|
|
2375
2419
|
);
|
|
2376
2420
|
}
|
|
2377
2421
|
const compilePackages = options.compilePackages ?? [];
|
|
2422
|
+
const quiet = options.quiet === true;
|
|
2423
|
+
function emitWarning(message, opts = {}) {
|
|
2424
|
+
if (shouldEmitWarning(quiet, opts.devOnly ?? false, process.env.NODE_ENV === "production")) {
|
|
2425
|
+
console.warn(message);
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2378
2428
|
const parserOverride = process.env.CSSZYX_PARSER;
|
|
2379
2429
|
const defaultParser = types.DEFAULT_BUILD_CONFIG.parser ?? "rust";
|
|
2380
2430
|
const parserMode = parserOverride === "babel" || parserOverride === "oxc" || parserOverride === "rust" ? parserOverride : options.build?.parser ?? defaultParser;
|
|
@@ -2740,6 +2790,9 @@ function createCsszyxPlugins(options = {}) {
|
|
|
2740
2790
|
}
|
|
2741
2791
|
}
|
|
2742
2792
|
scanDir(state.rootDir);
|
|
2793
|
+
for (const pkgDir of resolveCompilePackageDirs(state.rootDir, compilePackages)) {
|
|
2794
|
+
scanDir(pkgDir);
|
|
2795
|
+
}
|
|
2743
2796
|
for (const { filePath, result } of transformPrescanSources(prescanSources)) {
|
|
2744
2797
|
if (!result.transformed) {
|
|
2745
2798
|
continue;
|
|
@@ -3038,7 +3091,7 @@ function createCsszyxPlugins(options = {}) {
|
|
|
3038
3091
|
${msg}`);
|
|
3039
3092
|
}
|
|
3040
3093
|
}
|
|
3041
|
-
if (result.diagnostics.length > 0 && process.env.NODE_ENV !== "production") {
|
|
3094
|
+
if (!quiet && result.diagnostics.length > 0 && process.env.NODE_ENV !== "production") {
|
|
3042
3095
|
for (const msg of result.diagnostics) {
|
|
3043
3096
|
if (msg.includes("unresolvable sz spread")) continue;
|
|
3044
3097
|
this.warn(`[csszyx] ${id}
|
|
@@ -3124,7 +3177,7 @@ function createCsszyxPlugins(options = {}) {
|
|
|
3124
3177
|
assertNoRSCGraphViolation(state.rscModules);
|
|
3125
3178
|
if (!state.tailwindWarningEmitted && shouldWarnMissingTailwindEntry(state.ownedClasses.size, state.sawTailwindEntry)) {
|
|
3126
3179
|
state.tailwindWarningEmitted = true;
|
|
3127
|
-
|
|
3180
|
+
emitWarning(missingTailwindEntryMessage(state.ownedClasses.size));
|
|
3128
3181
|
}
|
|
3129
3182
|
if (!state.contentScopeWarningEmitted && options.contentScopeCheck !== false && state.sawTailwindEntry && !state.tailwindEntryScoped) {
|
|
3130
3183
|
if (state.inMonorepo === void 0) {
|
|
@@ -3136,20 +3189,22 @@ function createCsszyxPlugins(options = {}) {
|
|
|
3136
3189
|
state.inMonorepo
|
|
3137
3190
|
)) {
|
|
3138
3191
|
state.contentScopeWarningEmitted = true;
|
|
3139
|
-
|
|
3192
|
+
emitWarning(unscopedMonorepoMessage());
|
|
3140
3193
|
}
|
|
3141
3194
|
}
|
|
3142
3195
|
if (!state.skipWarningEmitted && state.skippedSzFiles.size > 0) {
|
|
3143
3196
|
state.skipWarningEmitted = true;
|
|
3144
|
-
|
|
3197
|
+
emitWarning(skippedSzFilesMessage([...state.skippedSzFiles].sort()), {
|
|
3198
|
+
devOnly: true
|
|
3199
|
+
});
|
|
3145
3200
|
}
|
|
3146
3201
|
if (state.classesCapped) {
|
|
3147
|
-
|
|
3202
|
+
emitWarning(
|
|
3148
3203
|
`[csszyx] safelist exceeded ${MAX_SAFELIST_CLASSES} classes; additional classes were dropped. This usually means an unbounded set of arbitrary values reached an sz prop.`
|
|
3149
3204
|
);
|
|
3150
3205
|
}
|
|
3151
3206
|
for (const warning of state.spreadWarnings) {
|
|
3152
|
-
|
|
3207
|
+
emitWarning(`[csszyx] ${warning}`);
|
|
3153
3208
|
}
|
|
3154
3209
|
state.spreadWarnings.clear();
|
|
3155
3210
|
if (manglingEnabled && Object.keys(state.mangleMap).length > 0) {
|
|
@@ -3623,11 +3678,13 @@ exports.normalizeGlobalVarAliasesForCache = normalizeGlobalVarAliasesForCache;
|
|
|
3623
3678
|
exports.parseThemeBlocks = parseThemeBlocks;
|
|
3624
3679
|
exports.planGlobalVarAliases = planGlobalVarAliases;
|
|
3625
3680
|
exports.readGlobalVarScanCache = readGlobalVarScanCache;
|
|
3681
|
+
exports.resolveCompilePackageDirs = resolveCompilePackageDirs;
|
|
3626
3682
|
exports.resolveGlobalVarScanCacheDir = resolveGlobalVarScanCacheDir;
|
|
3627
3683
|
exports.resolveNativeCacheIdentity = resolveNativeCacheIdentity;
|
|
3628
3684
|
exports.rewriteGlobalVarCssAliases = rewriteGlobalVarCssAliases;
|
|
3629
3685
|
exports.rollupPlugin = rollupPlugin;
|
|
3630
3686
|
exports.scanGlobalVarCss = scanGlobalVarCss;
|
|
3687
|
+
exports.shouldEmitWarning = shouldEmitWarning;
|
|
3631
3688
|
exports.shouldWarnMissingTailwindEntry = shouldWarnMissingTailwindEntry;
|
|
3632
3689
|
exports.shouldWarnUnscopedMonorepo = shouldWarnUnscopedMonorepo;
|
|
3633
3690
|
exports.skippedSzFilesMessage = skippedSzFilesMessage;
|
|
@@ -321,6 +321,18 @@ declare function shouldWarnUnscopedMonorepo(sawTailwindEntry: boolean, tailwindE
|
|
|
321
321
|
* @returns the warning string.
|
|
322
322
|
*/
|
|
323
323
|
declare function unscopedMonorepoMessage(): string;
|
|
324
|
+
/**
|
|
325
|
+
* Whether a csszyx build warning should be emitted. `quiet` mutes all of them;
|
|
326
|
+
* `devOnly` additionally suppresses the warning in a production build (for usage
|
|
327
|
+
* nudges that must not noise a host app's prod output). Pure so the gating policy
|
|
328
|
+
* is unit-tested without the worker-based buildEnd wiring.
|
|
329
|
+
*
|
|
330
|
+
* @param quiet - The `quiet` option: mute every warning.
|
|
331
|
+
* @param devOnly - This warning is a dev-only usage nudge.
|
|
332
|
+
* @param isProduction - Whether this is a production build.
|
|
333
|
+
* @returns true when the warning should be printed.
|
|
334
|
+
*/
|
|
335
|
+
declare function shouldEmitWarning(quiet: boolean, devOnly: boolean, isProduction: boolean): boolean;
|
|
324
336
|
/**
|
|
325
337
|
* Whether a `/packages/` file was opted into compilation via `compilePackages`.
|
|
326
338
|
* Matches the package directory name as a path segment (`/packages/<name>/`).
|
|
@@ -332,6 +344,24 @@ declare function unscopedMonorepoMessage(): string;
|
|
|
332
344
|
* @returns true when the file belongs to a listed workspace package.
|
|
333
345
|
*/
|
|
334
346
|
declare function isCompilePackageOptedIn(id: string, compilePackages: readonly string[]): boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Resolve each `compilePackages` name to its absolute `packages/<name>` directory
|
|
349
|
+
* so the prescan can walk it. The prescan otherwise only walks `rootDir` (the
|
|
350
|
+
* build cwd, e.g. `apps/web`), so a sibling design-system package's `sz` / `szv`
|
|
351
|
+
* is never scanned and its classes never reach the safelist — the per-module
|
|
352
|
+
* transform compiles those files when imported but runs after the safelist is
|
|
353
|
+
* written. Walk up from `rootDir` looking for an ancestor that has
|
|
354
|
+
* `packages/<name>`; that mirrors the `/packages/<name>/` segment the opt-in
|
|
355
|
+
* matches. A directory already inside `rootDir` is skipped — the rootDir walk
|
|
356
|
+
* already covers it. Returns only existing directories; unresolved names are
|
|
357
|
+
* silently ignored (a typo surfaces as the usual skipped-`sz` warning).
|
|
358
|
+
*
|
|
359
|
+
* @param rootDir - the prescan root (build cwd).
|
|
360
|
+
* @param compilePackages - workspace package directory names to compile.
|
|
361
|
+
* @param dirExists - injectable existence check (defaults to a real fs stat).
|
|
362
|
+
* @returns absolute, deduplicated package directories outside `rootDir`.
|
|
363
|
+
*/
|
|
364
|
+
declare function resolveCompilePackageDirs(rootDir: string, compilePackages: readonly string[], dirExists?: (dir: string) => boolean): string[];
|
|
335
365
|
/**
|
|
336
366
|
* Whether a file lives in a built-in directory csszyx never transforms.
|
|
337
367
|
*
|
|
@@ -453,5 +483,5 @@ declare const rollupPlugin: (options?: PartialCsszyxConfig) => InputPluginOption
|
|
|
453
483
|
*/
|
|
454
484
|
declare const esbuildPlugin: (options?: PartialCsszyxConfig) => Plugin;
|
|
455
485
|
|
|
456
|
-
export { isPackagesSkippedSource as A, mangleCodeClassesSync as B, missingTailwindEntryMessage as D, normalizeGlobalVarAliasesForCache as E,
|
|
486
|
+
export { isPackagesSkippedSource as A, mangleCodeClassesSync as B, missingTailwindEntryMessage as D, normalizeGlobalVarAliasesForCache as E, resolveCompilePackageDirs as F, resolveNativeCacheIdentity as H, rollupPlugin as I, shouldEmitWarning as J, shouldWarnMissingTailwindEntry as K, shouldWarnUnscopedMonorepo as L, skippedSzFilesMessage as M, unscopedMonorepoMessage as N, vitePlugin as O, webpackPlugin as Q, appendTailwindSourceDirective as o, computeSafelistRelPath as p, createGlobalVarMapAssetSource as q, cssHasContentScope as r, cssImportsTailwind as s, esbuildPlugin as t, unplugin as u, extractGlobalVarAliasesForManifest as v, hasInjectableTailwindCandidate as w, isCompilePackageOptedIn as x, isHardIgnoredPath as y, isMonorepoPackage as z };
|
|
457
487
|
export type { CssVarScanResult as C, GlobalVarScanCacheKeyInput as G, PlanGlobalVarAliasesInput as P, RewriteGlobalVarCssAliasesOptions as R, ScanGlobalVarCssOptions as S, ValidateGlobalVarAliasInputsOptions as V, GlobalVarAliasPlan as a, GlobalVarCssAliasRewriteResult as b, CreateGlobalVarAliasValidationOptionsInput as c, GlobalVarAliasValidationResult as d, CssVarDefinition as e, CssVarLocation as f, CssVarReference as g, GlobalVarAliasDiagnostic as h, GlobalVarAliasDiagnosticSeverity as i, GlobalVarAliasEntry as j, GlobalVarCodeSource as k, GlobalVarCssAssetSource as l, GlobalVarCssSource as m, GlobalVarScanCacheEntry as n };
|
|
@@ -321,6 +321,18 @@ declare function shouldWarnUnscopedMonorepo(sawTailwindEntry: boolean, tailwindE
|
|
|
321
321
|
* @returns the warning string.
|
|
322
322
|
*/
|
|
323
323
|
declare function unscopedMonorepoMessage(): string;
|
|
324
|
+
/**
|
|
325
|
+
* Whether a csszyx build warning should be emitted. `quiet` mutes all of them;
|
|
326
|
+
* `devOnly` additionally suppresses the warning in a production build (for usage
|
|
327
|
+
* nudges that must not noise a host app's prod output). Pure so the gating policy
|
|
328
|
+
* is unit-tested without the worker-based buildEnd wiring.
|
|
329
|
+
*
|
|
330
|
+
* @param quiet - The `quiet` option: mute every warning.
|
|
331
|
+
* @param devOnly - This warning is a dev-only usage nudge.
|
|
332
|
+
* @param isProduction - Whether this is a production build.
|
|
333
|
+
* @returns true when the warning should be printed.
|
|
334
|
+
*/
|
|
335
|
+
declare function shouldEmitWarning(quiet: boolean, devOnly: boolean, isProduction: boolean): boolean;
|
|
324
336
|
/**
|
|
325
337
|
* Whether a `/packages/` file was opted into compilation via `compilePackages`.
|
|
326
338
|
* Matches the package directory name as a path segment (`/packages/<name>/`).
|
|
@@ -332,6 +344,24 @@ declare function unscopedMonorepoMessage(): string;
|
|
|
332
344
|
* @returns true when the file belongs to a listed workspace package.
|
|
333
345
|
*/
|
|
334
346
|
declare function isCompilePackageOptedIn(id: string, compilePackages: readonly string[]): boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Resolve each `compilePackages` name to its absolute `packages/<name>` directory
|
|
349
|
+
* so the prescan can walk it. The prescan otherwise only walks `rootDir` (the
|
|
350
|
+
* build cwd, e.g. `apps/web`), so a sibling design-system package's `sz` / `szv`
|
|
351
|
+
* is never scanned and its classes never reach the safelist — the per-module
|
|
352
|
+
* transform compiles those files when imported but runs after the safelist is
|
|
353
|
+
* written. Walk up from `rootDir` looking for an ancestor that has
|
|
354
|
+
* `packages/<name>`; that mirrors the `/packages/<name>/` segment the opt-in
|
|
355
|
+
* matches. A directory already inside `rootDir` is skipped — the rootDir walk
|
|
356
|
+
* already covers it. Returns only existing directories; unresolved names are
|
|
357
|
+
* silently ignored (a typo surfaces as the usual skipped-`sz` warning).
|
|
358
|
+
*
|
|
359
|
+
* @param rootDir - the prescan root (build cwd).
|
|
360
|
+
* @param compilePackages - workspace package directory names to compile.
|
|
361
|
+
* @param dirExists - injectable existence check (defaults to a real fs stat).
|
|
362
|
+
* @returns absolute, deduplicated package directories outside `rootDir`.
|
|
363
|
+
*/
|
|
364
|
+
declare function resolveCompilePackageDirs(rootDir: string, compilePackages: readonly string[], dirExists?: (dir: string) => boolean): string[];
|
|
335
365
|
/**
|
|
336
366
|
* Whether a file lives in a built-in directory csszyx never transforms.
|
|
337
367
|
*
|
|
@@ -453,5 +483,5 @@ declare const rollupPlugin: (options?: PartialCsszyxConfig) => InputPluginOption
|
|
|
453
483
|
*/
|
|
454
484
|
declare const esbuildPlugin: (options?: PartialCsszyxConfig) => Plugin;
|
|
455
485
|
|
|
456
|
-
export { isPackagesSkippedSource as A, mangleCodeClassesSync as B, missingTailwindEntryMessage as D, normalizeGlobalVarAliasesForCache as E,
|
|
486
|
+
export { isPackagesSkippedSource as A, mangleCodeClassesSync as B, missingTailwindEntryMessage as D, normalizeGlobalVarAliasesForCache as E, resolveCompilePackageDirs as F, resolveNativeCacheIdentity as H, rollupPlugin as I, shouldEmitWarning as J, shouldWarnMissingTailwindEntry as K, shouldWarnUnscopedMonorepo as L, skippedSzFilesMessage as M, unscopedMonorepoMessage as N, vitePlugin as O, webpackPlugin as Q, appendTailwindSourceDirective as o, computeSafelistRelPath as p, createGlobalVarMapAssetSource as q, cssHasContentScope as r, cssImportsTailwind as s, esbuildPlugin as t, unplugin as u, extractGlobalVarAliasesForManifest as v, hasInjectableTailwindCandidate as w, isCompilePackageOptedIn as x, isHardIgnoredPath as y, isMonorepoPackage as z };
|
|
457
487
|
export type { CssVarScanResult as C, GlobalVarScanCacheKeyInput as G, PlanGlobalVarAliasesInput as P, RewriteGlobalVarCssAliasesOptions as R, ScanGlobalVarCssOptions as S, ValidateGlobalVarAliasInputsOptions as V, GlobalVarAliasPlan as a, GlobalVarCssAliasRewriteResult as b, CreateGlobalVarAliasValidationOptionsInput as c, GlobalVarAliasValidationResult as d, CssVarDefinition as e, CssVarLocation as f, CssVarReference as g, GlobalVarAliasDiagnostic as h, GlobalVarAliasDiagnosticSeverity as i, GlobalVarAliasEntry as j, GlobalVarCodeSource as k, GlobalVarCssAssetSource as l, GlobalVarCssSource as m, GlobalVarScanCacheEntry as n };
|
|
@@ -1683,6 +1683,15 @@ function shouldWarnUnscopedMonorepo(sawTailwindEntry, tailwindEntryScoped, inMon
|
|
|
1683
1683
|
function unscopedMonorepoMessage() {
|
|
1684
1684
|
return '[csszyx] Tailwind content detection is UNSCOPED in a monorepo. Tailwind v4 climbs to the workspace root and scans sibling packages + docs (.md/.mdx/.txt are not ignored), which can generate phantom or broken url() classes and fail the build. Scope it in your Tailwind CSS entry:\n @import "tailwindcss" source(none);\n @source "."; /* this package, relative to the CSS file */\ncsszyx auto-injects @source for its generated classes, so only your own templates need listing. Guide: https://csszyx.com/docs/monorepo-content-scope/\nSilence (if a broad scan is intentional): csszyx({ contentScopeCheck: false }).';
|
|
1685
1685
|
}
|
|
1686
|
+
function shouldEmitWarning(quiet, devOnly, isProduction) {
|
|
1687
|
+
if (quiet) {
|
|
1688
|
+
return false;
|
|
1689
|
+
}
|
|
1690
|
+
if (devOnly && isProduction) {
|
|
1691
|
+
return false;
|
|
1692
|
+
}
|
|
1693
|
+
return true;
|
|
1694
|
+
}
|
|
1686
1695
|
function isCompilePackageOptedIn(id, compilePackages) {
|
|
1687
1696
|
const path2 = id.replace(/\\/g, "/");
|
|
1688
1697
|
if (path2.includes("node_modules")) {
|
|
@@ -1690,6 +1699,41 @@ function isCompilePackageOptedIn(id, compilePackages) {
|
|
|
1690
1699
|
}
|
|
1691
1700
|
return compilePackages.some((name) => path2.includes(`/packages/${name}/`));
|
|
1692
1701
|
}
|
|
1702
|
+
function resolveCompilePackageDirs(rootDir, compilePackages, dirExists = (dir) => {
|
|
1703
|
+
try {
|
|
1704
|
+
return fs.statSync(dir).isDirectory();
|
|
1705
|
+
} catch {
|
|
1706
|
+
return false;
|
|
1707
|
+
}
|
|
1708
|
+
}) {
|
|
1709
|
+
if (compilePackages.length === 0) {
|
|
1710
|
+
return [];
|
|
1711
|
+
}
|
|
1712
|
+
const root = path.resolve(rootDir);
|
|
1713
|
+
const normalizedRoot = root.replace(/\\/g, "/");
|
|
1714
|
+
const found = [];
|
|
1715
|
+
const pending = new Set(compilePackages);
|
|
1716
|
+
let dir = root;
|
|
1717
|
+
while (pending.size > 0) {
|
|
1718
|
+
for (const name of [...pending]) {
|
|
1719
|
+
const candidate = path.join(dir, "packages", name);
|
|
1720
|
+
const key = candidate.replace(/\\/g, "/");
|
|
1721
|
+
if (key === normalizedRoot || key.startsWith(`${normalizedRoot}/`)) {
|
|
1722
|
+
continue;
|
|
1723
|
+
}
|
|
1724
|
+
if (dirExists(candidate)) {
|
|
1725
|
+
found.push(candidate);
|
|
1726
|
+
pending.delete(name);
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
const parent = path.dirname(dir);
|
|
1730
|
+
if (parent === dir) {
|
|
1731
|
+
break;
|
|
1732
|
+
}
|
|
1733
|
+
dir = parent;
|
|
1734
|
+
}
|
|
1735
|
+
return found;
|
|
1736
|
+
}
|
|
1693
1737
|
function isHardIgnoredPath(id, compilePackages = []) {
|
|
1694
1738
|
const path2 = id.replace(/\\/g, "/");
|
|
1695
1739
|
if (path2.includes("node_modules")) {
|
|
@@ -2355,6 +2399,12 @@ function createCsszyxPlugins(options = {}) {
|
|
|
2355
2399
|
);
|
|
2356
2400
|
}
|
|
2357
2401
|
const compilePackages = options.compilePackages ?? [];
|
|
2402
|
+
const quiet = options.quiet === true;
|
|
2403
|
+
function emitWarning(message, opts = {}) {
|
|
2404
|
+
if (shouldEmitWarning(quiet, opts.devOnly ?? false, process.env.NODE_ENV === "production")) {
|
|
2405
|
+
console.warn(message);
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2358
2408
|
const parserOverride = process.env.CSSZYX_PARSER;
|
|
2359
2409
|
const defaultParser = DEFAULT_BUILD_CONFIG.parser ?? "rust";
|
|
2360
2410
|
const parserMode = parserOverride === "babel" || parserOverride === "oxc" || parserOverride === "rust" ? parserOverride : options.build?.parser ?? defaultParser;
|
|
@@ -2720,6 +2770,9 @@ function createCsszyxPlugins(options = {}) {
|
|
|
2720
2770
|
}
|
|
2721
2771
|
}
|
|
2722
2772
|
scanDir(state.rootDir);
|
|
2773
|
+
for (const pkgDir of resolveCompilePackageDirs(state.rootDir, compilePackages)) {
|
|
2774
|
+
scanDir(pkgDir);
|
|
2775
|
+
}
|
|
2723
2776
|
for (const { filePath, result } of transformPrescanSources(prescanSources)) {
|
|
2724
2777
|
if (!result.transformed) {
|
|
2725
2778
|
continue;
|
|
@@ -3018,7 +3071,7 @@ function createCsszyxPlugins(options = {}) {
|
|
|
3018
3071
|
${msg}`);
|
|
3019
3072
|
}
|
|
3020
3073
|
}
|
|
3021
|
-
if (result.diagnostics.length > 0 && process.env.NODE_ENV !== "production") {
|
|
3074
|
+
if (!quiet && result.diagnostics.length > 0 && process.env.NODE_ENV !== "production") {
|
|
3022
3075
|
for (const msg of result.diagnostics) {
|
|
3023
3076
|
if (msg.includes("unresolvable sz spread")) continue;
|
|
3024
3077
|
this.warn(`[csszyx] ${id}
|
|
@@ -3104,7 +3157,7 @@ function createCsszyxPlugins(options = {}) {
|
|
|
3104
3157
|
assertNoRSCGraphViolation(state.rscModules);
|
|
3105
3158
|
if (!state.tailwindWarningEmitted && shouldWarnMissingTailwindEntry(state.ownedClasses.size, state.sawTailwindEntry)) {
|
|
3106
3159
|
state.tailwindWarningEmitted = true;
|
|
3107
|
-
|
|
3160
|
+
emitWarning(missingTailwindEntryMessage(state.ownedClasses.size));
|
|
3108
3161
|
}
|
|
3109
3162
|
if (!state.contentScopeWarningEmitted && options.contentScopeCheck !== false && state.sawTailwindEntry && !state.tailwindEntryScoped) {
|
|
3110
3163
|
if (state.inMonorepo === void 0) {
|
|
@@ -3116,20 +3169,22 @@ function createCsszyxPlugins(options = {}) {
|
|
|
3116
3169
|
state.inMonorepo
|
|
3117
3170
|
)) {
|
|
3118
3171
|
state.contentScopeWarningEmitted = true;
|
|
3119
|
-
|
|
3172
|
+
emitWarning(unscopedMonorepoMessage());
|
|
3120
3173
|
}
|
|
3121
3174
|
}
|
|
3122
3175
|
if (!state.skipWarningEmitted && state.skippedSzFiles.size > 0) {
|
|
3123
3176
|
state.skipWarningEmitted = true;
|
|
3124
|
-
|
|
3177
|
+
emitWarning(skippedSzFilesMessage([...state.skippedSzFiles].sort()), {
|
|
3178
|
+
devOnly: true
|
|
3179
|
+
});
|
|
3125
3180
|
}
|
|
3126
3181
|
if (state.classesCapped) {
|
|
3127
|
-
|
|
3182
|
+
emitWarning(
|
|
3128
3183
|
`[csszyx] safelist exceeded ${MAX_SAFELIST_CLASSES} classes; additional classes were dropped. This usually means an unbounded set of arbitrary values reached an sz prop.`
|
|
3129
3184
|
);
|
|
3130
3185
|
}
|
|
3131
3186
|
for (const warning of state.spreadWarnings) {
|
|
3132
|
-
|
|
3187
|
+
emitWarning(`[csszyx] ${warning}`);
|
|
3133
3188
|
}
|
|
3134
3189
|
state.spreadWarnings.clear();
|
|
3135
3190
|
if (manglingEnabled && Object.keys(state.mangleMap).length > 0) {
|
|
@@ -3571,4 +3626,4 @@ const esbuildPlugin = (options = {}) => {
|
|
|
3571
3626
|
};
|
|
3572
3627
|
};
|
|
3573
3628
|
|
|
3574
|
-
export { mangleCodeClassesSync as A, mergeThemes as B, missingTailwindEntryMessage as C, normalizeGlobalVarAliasesForCache as D, parseThemeBlocks as E, planGlobalVarAliases as F, readGlobalVarScanCache as G,
|
|
3629
|
+
export { mangleCodeClassesSync as A, mergeThemes as B, missingTailwindEntryMessage as C, normalizeGlobalVarAliasesForCache as D, parseThemeBlocks as E, planGlobalVarAliases as F, readGlobalVarScanCache as G, resolveCompilePackageDirs as H, resolveGlobalVarScanCacheDir as I, resolveNativeCacheIdentity as J, rewriteGlobalVarCssAliases as K, rollupPlugin as L, scanGlobalVarCss as M, shouldEmitWarning as N, shouldWarnMissingTailwindEntry as O, shouldWarnUnscopedMonorepo as P, skippedSzFilesMessage as Q, unscopedMonorepoMessage as R, validateGlobalVarAliasInputs as S, vitePlugin as T, webpackPlugin as U, writeGlobalVarScanCache as V, appendTailwindSourceDirective as a, assertNoRSCBoundaryViolation as b, assertNoRSCGraphViolation as c, computeSafelistRelPath as d, createGlobalVarAliasValidationOptions as e, createGlobalVarMapAssetSource as f, createGlobalVarScanCacheKey as g, createRSCModuleRecord as h, cssHasContentScope as i, cssImportsTailwind as j, deleteRSCModuleRecord as k, esbuildPlugin as l, extractGlobalVarAliasesForManifest as m, findRSCBoundaryViolation as n, findRSCGraphViolation as o, hasInjectableTailwindCandidate as p, hasTokens as q, hasUseClientDirective as r, hasUseServerDirective as s, isCompilePackageOptedIn as t, unplugin as u, isHardIgnoredPath as v, isMonorepoPackage as w, isPackagesSkippedSource as x, isRSCServerModule as y, isTailwindReservedGlobalVar as z };
|
package/dist/vite.cjs
CHANGED
package/dist/vite.d.cts
CHANGED
package/dist/vite.d.mts
CHANGED
package/dist/vite.mjs
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.d.cts
CHANGED
package/dist/webpack.d.mts
CHANGED
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/unplugin",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Vite and Webpack integration for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"postcss-value-parser": "^4.2.0",
|
|
118
118
|
"proper-lockfile": "^4.1.2",
|
|
119
119
|
"unplugin": "^1.10.1",
|
|
120
|
-
"@csszyx/
|
|
121
|
-
"@csszyx/
|
|
122
|
-
"@csszyx/
|
|
123
|
-
"@csszyx/
|
|
124
|
-
"@csszyx/
|
|
120
|
+
"@csszyx/compiler": "0.10.3",
|
|
121
|
+
"@csszyx/core": "0.10.3",
|
|
122
|
+
"@csszyx/svelte-adapter": "0.10.3",
|
|
123
|
+
"@csszyx/vue-adapter": "0.10.3",
|
|
124
|
+
"@csszyx/types": "0.10.3"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@csszyx/runtime": "^0.10.
|
|
127
|
+
"@csszyx/runtime": "^0.10.3"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"@types/node": "^20.11.0",
|