@csszyx/unplugin 0.15.1 → 0.15.2
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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{unplugin.D68hyqgb.mjs → unplugin.BxsTa17g.mjs} +9 -2
- package/dist/shared/{unplugin.8KYddE6x.cjs → unplugin.dz3AdzsO.cjs} +10 -3
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +16 -16
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.dz3AdzsO.cjs');
|
|
7
7
|
const themeGroupsFile = require('./shared/unplugin.J6ue_lRJ.cjs');
|
|
8
8
|
const types = require('@csszyx/types');
|
|
9
9
|
const safelistSource = require('./shared/unplugin.DDSWQJYX.cjs');
|
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 allocateMangleTokens, b as assertNoRSCBoundaryViolation, c as assertNoRSCGraphViolation, d as collectMangleHybridHazards, e as createGlobalVarAliasValidationOptions, f as createGlobalVarMapAssetSource, g as createGlobalVarScanCacheKey, h as createRSCModuleRecord, i as cssHasContentScope, u as default, j as deleteRSCModuleRecord, k as emitMissingCssFallback, l as esbuildPlugin, m as extractGlobalVarAliasesForManifest, n as fileMayContainSafelistableSz, o as findLocalImportSources, p as findRSCBoundaryViolation, q as findRSCGraphViolation, r as hasInjectableTailwindCandidate, s as hasUseClientDirective, t as hasUseServerDirective, v as isAdvisoryDiagnostic, w as isCompileSourceOptedIn, x as isHardIgnoredPath, y as isMangleableCssId, z as isMonorepoPackage, A as isPackagesSkippedSource, B as isRSCServerModule, C as isTailwindReservedGlobalVar, D as lateMangleCensusMessage, E as mangleCodeClassesSync, F as mangleEligibleClasses, G as mangleHybridHazardMessage, H as missingTailwindEntryMessage, I as normalizeGlobalVarAliasesForCache, J as planGlobalVarAliases, K as readGlobalVarScanCache, L as realContentHashDisabledMessage, M as recordGlobalVarSourceFile, N as resolveCompileSourceDirs, O as resolveGlobalVarScanCacheDir, P as resolveNativeCacheIdentity, Q as resolveQuietMode, R as rewriteGlobalVarCssAliases, S as rollupPlugin, T as scanGlobalVarCss, U as shouldEmitMissingCssFallback, V as shouldEmitWarning, W as shouldTrackGlobalVarSources, X as shouldWarnMissingTailwindEntry, Y as shouldWarnUnscopedMonorepo, Z as skippedSzFilesMessage, _ as suppressedAdvisoryMessage, u as unplugin, $ as unscopedMonorepoMessage, a0 as validateGlobalVarAliasInputs, a1 as vitePlugin, a2 as watchModeMangleMessage, a3 as webpackPlugin, a4 as writeGlobalVarScanCache } from './shared/unplugin.
|
|
2
|
+
export { a as allocateMangleTokens, b as assertNoRSCBoundaryViolation, c as assertNoRSCGraphViolation, d as collectMangleHybridHazards, e as createGlobalVarAliasValidationOptions, f as createGlobalVarMapAssetSource, g as createGlobalVarScanCacheKey, h as createRSCModuleRecord, i as cssHasContentScope, u as default, j as deleteRSCModuleRecord, k as emitMissingCssFallback, l as esbuildPlugin, m as extractGlobalVarAliasesForManifest, n as fileMayContainSafelistableSz, o as findLocalImportSources, p as findRSCBoundaryViolation, q as findRSCGraphViolation, r as hasInjectableTailwindCandidate, s as hasUseClientDirective, t as hasUseServerDirective, v as isAdvisoryDiagnostic, w as isCompileSourceOptedIn, x as isHardIgnoredPath, y as isMangleableCssId, z as isMonorepoPackage, A as isPackagesSkippedSource, B as isRSCServerModule, C as isTailwindReservedGlobalVar, D as lateMangleCensusMessage, E as mangleCodeClassesSync, F as mangleEligibleClasses, G as mangleHybridHazardMessage, H as missingTailwindEntryMessage, I as normalizeGlobalVarAliasesForCache, J as planGlobalVarAliases, K as readGlobalVarScanCache, L as realContentHashDisabledMessage, M as recordGlobalVarSourceFile, N as resolveCompileSourceDirs, O as resolveGlobalVarScanCacheDir, P as resolveNativeCacheIdentity, Q as resolveQuietMode, R as rewriteGlobalVarCssAliases, S as rollupPlugin, T as scanGlobalVarCss, U as shouldEmitMissingCssFallback, V as shouldEmitWarning, W as shouldTrackGlobalVarSources, X as shouldWarnMissingTailwindEntry, Y as shouldWarnUnscopedMonorepo, Z as skippedSzFilesMessage, _ as suppressedAdvisoryMessage, u as unplugin, $ as unscopedMonorepoMessage, a0 as validateGlobalVarAliasInputs, a1 as vitePlugin, a2 as watchModeMangleMessage, a3 as webpackPlugin, a4 as writeGlobalVarScanCache } from './shared/unplugin.BxsTa17g.mjs';
|
|
3
3
|
export { h as hasTokens, m as mergeThemes, p as parseThemeBlocks, a as parseUtilityBlocks, s as scanCustomPropertyNames } from './shared/unplugin.DK0b4fr7.mjs';
|
|
4
4
|
export { CSSZYX_GLOBAL_ALIAS_PREFIX, TAILWIND_RESERVED_PREFIXES } from '@csszyx/types';
|
|
5
5
|
export { S as SAFELIST_FILE, a as appendTailwindSourceDirective, c as computeSafelistRelPath, b as cssImportsTailwind } from './shared/unplugin.DH_ij6cf.mjs';
|
|
@@ -6,7 +6,7 @@ import * as path from 'node:path';
|
|
|
6
6
|
import path__default, { dirname } from 'node:path';
|
|
7
7
|
import { performance } from 'node:perf_hooks';
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
|
-
import { scanGlobalVarUsages, sortStrings as sortStrings$1, szFallbackConsequenceOf, isWasmTransformAvailable, isRustTransformAvailable,
|
|
9
|
+
import { scanGlobalVarUsages, sortStrings as sortStrings$1, szFallbackConsequenceOf, ensureRustTransformAvailable, isWasmTransformAvailable, isRustTransformAvailable, transformRust, transformWasm, ASTBudgetExceededError, transformRustBatch, transform } from '@csszyx/compiler';
|
|
10
10
|
import { encode, compute_mangle_checksum } from '@csszyx/core';
|
|
11
11
|
import { getNativePackageName } from '@csszyx/core/native';
|
|
12
12
|
import { preprocess as preprocess$1 } from '@csszyx/svelte-adapter';
|
|
@@ -3043,7 +3043,14 @@ function mangleCodeClassesSync(code, mangleMap) {
|
|
|
3043
3043
|
result = out + result.slice(copiedTo);
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
3046
|
-
|
|
3046
|
+
const objectKeyColon = /\s*:/y;
|
|
3047
|
+
result = result.replace(/([,([{]|&&)(\s*)"([^"]+)"/g, (match, sep, ws, inner, offset) => {
|
|
3048
|
+
if (sep === "{") {
|
|
3049
|
+
objectKeyColon.lastIndex = offset + match.length;
|
|
3050
|
+
if (!objectKeyColon.test(result)) {
|
|
3051
|
+
return match;
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3047
3054
|
const tokens = inner.split(/\s+/).filter(Boolean);
|
|
3048
3055
|
if (tokens.length === 0) {
|
|
3049
3056
|
return match;
|
|
@@ -2185,9 +2185,9 @@ let _hasWarnedTsConfig = false;
|
|
|
2185
2185
|
let _hasWarnedTransformCacheVersion = false;
|
|
2186
2186
|
let _hasWarnedNativeFallback = false;
|
|
2187
2187
|
const _loggedActiveParsers = /* @__PURE__ */ new Set();
|
|
2188
|
-
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.
|
|
2188
|
+
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.dz3AdzsO.cjs', document.baseURI).href)));
|
|
2189
2189
|
const PLUGIN_VERSION = findPackageVersionFromFile(
|
|
2190
|
-
node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/unplugin.
|
|
2190
|
+
node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/unplugin.dz3AdzsO.cjs', document.baseURI).href))),
|
|
2191
2191
|
UNKNOWN_PACKAGE_VERSION
|
|
2192
2192
|
);
|
|
2193
2193
|
const COMPILER_VERSION = findPackageVersionFromModule("@csszyx/compiler", UNKNOWN_PACKAGE_VERSION);
|
|
@@ -3065,7 +3065,14 @@ function mangleCodeClassesSync(code, mangleMap) {
|
|
|
3065
3065
|
result = out + result.slice(copiedTo);
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
|
-
|
|
3068
|
+
const objectKeyColon = /\s*:/y;
|
|
3069
|
+
result = result.replace(/([,([{]|&&)(\s*)"([^"]+)"/g, (match, sep, ws, inner, offset) => {
|
|
3070
|
+
if (sep === "{") {
|
|
3071
|
+
objectKeyColon.lastIndex = offset + match.length;
|
|
3072
|
+
if (!objectKeyColon.test(result)) {
|
|
3073
|
+
return match;
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3069
3076
|
const tokens = inner.split(/\s+/).filter(Boolean);
|
|
3070
3077
|
if (tokens.length === 0) {
|
|
3071
3078
|
return match;
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/unplugin",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Vite and Webpack integration for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -122,33 +122,33 @@
|
|
|
122
122
|
"dist"
|
|
123
123
|
],
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"
|
|
126
|
-
"
|
|
125
|
+
"@csszyx/compiler": "0.15.2",
|
|
126
|
+
"@csszyx/core": "0.15.2",
|
|
127
|
+
"@csszyx/svelte-adapter": "0.15.2",
|
|
128
|
+
"@csszyx/types": "0.15.2",
|
|
129
|
+
"@csszyx/vue-adapter": "0.15.2",
|
|
130
|
+
"postcss": "^8.5.26",
|
|
131
|
+
"postcss-selector-parser": "^7.1.5",
|
|
127
132
|
"postcss-value-parser": "^4.2.0",
|
|
128
133
|
"proper-lockfile": "^4.1.2",
|
|
129
|
-
"unplugin": "^3.3.0"
|
|
130
|
-
"@csszyx/compiler": "0.15.1",
|
|
131
|
-
"@csszyx/svelte-adapter": "0.15.1",
|
|
132
|
-
"@csszyx/types": "0.15.1",
|
|
133
|
-
"@csszyx/vue-adapter": "0.15.1",
|
|
134
|
-
"@csszyx/core": "0.15.1"
|
|
134
|
+
"unplugin": "^3.3.0"
|
|
135
135
|
},
|
|
136
136
|
"peerDependencies": {
|
|
137
|
-
"@csszyx/runtime": "^0.15.
|
|
137
|
+
"@csszyx/runtime": "^0.15.2"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
|
+
"@csszyx/runtime": "0.15.2",
|
|
141
|
+
"@csszyx/tooling-metadata": "0.15.2",
|
|
140
142
|
"@tailwindcss/node": "4.3.3",
|
|
141
143
|
"@types/node": "^22.20.1",
|
|
142
144
|
"@types/proper-lockfile": "^4.1.4",
|
|
143
145
|
"esbuild": "0.28.2",
|
|
144
|
-
"rollup": "^4.
|
|
146
|
+
"rollup": "^4.63.0",
|
|
145
147
|
"typescript": "^6.0.3",
|
|
146
148
|
"unbuild": "^3.6.1",
|
|
147
|
-
"vite": "^8.2.
|
|
148
|
-
"vitest": "^4.1.
|
|
149
|
-
"webpack": "^5.109.0"
|
|
150
|
-
"@csszyx/runtime": "0.15.1",
|
|
151
|
-
"@csszyx/tooling-metadata": "0.15.1"
|
|
149
|
+
"vite": "^8.2.2",
|
|
150
|
+
"vitest": "^4.1.11",
|
|
151
|
+
"webpack": "^5.109.0"
|
|
152
152
|
},
|
|
153
153
|
"sideEffects": false,
|
|
154
154
|
"engines": {
|