@csszyx/unplugin 0.13.0 → 0.14.0

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.
Files changed (36) hide show
  1. package/README.md +8 -10
  2. package/dist/index.cjs +9 -3
  3. package/dist/index.d.cts +2 -2
  4. package/dist/index.d.mts +2 -2
  5. package/dist/index.mjs +3 -3
  6. package/dist/next-config.d.cts +3 -2
  7. package/dist/next-config.d.mts +3 -2
  8. package/dist/next-prebuild.cjs +3 -4
  9. package/dist/next-prebuild.d.cts +1 -2
  10. package/dist/next-prebuild.d.mts +1 -2
  11. package/dist/next-prebuild.mjs +3 -4
  12. package/dist/next-turbo-loader.cjs +5 -7
  13. package/dist/next-turbo-loader.d.cts +1 -2
  14. package/dist/next-turbo-loader.d.mts +1 -2
  15. package/dist/next-turbo-loader.mjs +5 -7
  16. package/dist/shared/{unplugin.CXV7fOa2.d.cts → unplugin.B32Exn-K.d.cts} +2 -2
  17. package/dist/shared/{unplugin.CXV7fOa2.d.mts → unplugin.B32Exn-K.d.mts} +2 -2
  18. package/dist/shared/{unplugin.CUTa6bY9.cjs → unplugin.BJiWWF6w.cjs} +5 -23
  19. package/dist/shared/{unplugin.4du3qMst.cjs → unplugin.BKGCkMgM.cjs} +4 -10
  20. package/dist/shared/{unplugin.5l4RHMQh.mjs → unplugin.BcsvXjIV.mjs} +1 -0
  21. package/dist/shared/{unplugin.DCT7DDG6.d.cts → unplugin.BsjD3mtb.d.cts} +91 -4
  22. package/dist/shared/{unplugin.DCT7DDG6.d.mts → unplugin.BsjD3mtb.d.mts} +91 -4
  23. package/dist/shared/{unplugin.X9a9SL_s.cjs → unplugin.CkNQjA4G.cjs} +1 -0
  24. package/dist/shared/{unplugin.BB0iWSds.mjs → unplugin.DKcwO8O4.mjs} +5 -10
  25. package/dist/shared/{unplugin.CogPHmDs.mjs → unplugin.DjRylBC_.mjs} +6 -24
  26. package/dist/shared/{unplugin.Bf4fNbp7.cjs → unplugin.ZMa9YE1H.cjs} +309 -89
  27. package/dist/shared/{unplugin.ymMe428s.mjs → unplugin.gR_h2DVG.mjs} +303 -89
  28. package/dist/vite.cjs +3 -3
  29. package/dist/vite.d.cts +2 -2
  30. package/dist/vite.d.mts +1 -1
  31. package/dist/vite.mjs +3 -3
  32. package/dist/webpack.cjs +3 -3
  33. package/dist/webpack.d.cts +2 -2
  34. package/dist/webpack.d.mts +1 -1
  35. package/dist/webpack.mjs +3 -3
  36. package/package.json +9 -9
package/README.md CHANGED
@@ -66,7 +66,7 @@ module.exports = {
66
66
 
67
67
  ## Features
68
68
 
69
- - **sz prop transform** -- Compiles `sz={{ }}` objects into `className` strings. Defaults to the **native Rust engine** through the optional `@csszyx/core-*` platform package; opt back into the previous oxc-parser JavaScript path with `build.parser: "oxc"`, or fall through to Babel with `build.parser: "babel"`.
69
+ - **sz prop transform** -- Compiles `sz={{ }}` objects into `className` strings with ONE engine that ships as two artifacts: the **native Rust addon** (default, through the optional `@csszyx/core-*` platform package) and the same engine compiled to **WebAssembly** (shipped inside `@csszyx/core`, the automatic fallback when the native binary is absent pin it with `build.parser: "wasm"`).
70
70
  - **HTML injection** -- Injects mangle maps and checksums for SSR hydration
71
71
  - **HMR support** -- Updates styles instantly during development
72
72
  - **CSS mangling** -- Compresses owned class names (e.g., `text-center` -> `z`) while retaining names shared with source-visible `class`/`className` strings and template quasis
@@ -89,23 +89,21 @@ Per project:
89
89
 
90
90
  ```ts
91
91
  csszyx({
92
- build: { parser: "oxc" }, // JavaScript oxc parser, no native addon
92
+ build: { parser: "wasm" }, // the engine's WebAssembly build, no native addon
93
93
  });
94
94
  ```
95
95
 
96
96
  Per build:
97
97
 
98
98
  ```bash
99
- CSSZYX_PARSER=oxc pnpm build
99
+ CSSZYX_PARSER=wasm pnpm build
100
100
  ```
101
101
 
102
- The default `rust` path uses the native engine and shares the same
103
- `className` output shape as the JavaScript parsers. `build.parser: "oxc"`
104
- uses the previous JavaScript oxc-parser path with surgical magic-string
105
- edits to preserve source formatting outside touched ranges.
106
- `build.parser: "babel"` routes prescan, transform, and HMR discovery
107
- through the legacy Babel implementation as a final compatibility escape
108
- hatch.
102
+ The default `rust` path is the native addon; `wasm` is the same engine
103
+ compiled to WebAssembly. Both run identical output; only parse speed
104
+ differs. The former `"oxc"` and `"babel"` TypeScript lanes were removed —
105
+ a config still naming them is ignored like an invalid env value and the
106
+ build runs on the default.
109
107
 
110
108
  ## License
111
109
 
package/dist/index.cjs CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const cssMangler = require('./css-mangler.cjs');
6
- const unplugin = require('./shared/unplugin.Bf4fNbp7.cjs');
7
- const themeGroupsFile = require('./shared/unplugin.X9a9SL_s.cjs');
6
+ const unplugin = require('./shared/unplugin.ZMa9YE1H.cjs');
7
+ const themeGroupsFile = require('./shared/unplugin.CkNQjA4G.cjs');
8
8
  const types = require('@csszyx/types');
9
9
  require('postcss');
10
10
  require('postcss-selector-parser');
@@ -20,7 +20,7 @@ require('@csszyx/core/native');
20
20
  require('@csszyx/svelte-adapter');
21
21
  require('@csszyx/vue-adapter');
22
22
  require('unplugin');
23
- require('./shared/unplugin.4du3qMst.cjs');
23
+ require('./shared/unplugin.BKGCkMgM.cjs');
24
24
  require('./shared/unplugin.BkRah5Ot.cjs');
25
25
  require('node:zlib');
26
26
  require('postcss-value-parser');
@@ -56,12 +56,15 @@ exports.findRSCGraphViolation = unplugin.findRSCGraphViolation;
56
56
  exports.hasInjectableTailwindCandidate = unplugin.hasInjectableTailwindCandidate;
57
57
  exports.hasUseClientDirective = unplugin.hasUseClientDirective;
58
58
  exports.hasUseServerDirective = unplugin.hasUseServerDirective;
59
+ exports.isAdvisoryDiagnostic = unplugin.isAdvisoryDiagnostic;
59
60
  exports.isCompileSourceOptedIn = unplugin.isCompileSourceOptedIn;
60
61
  exports.isHardIgnoredPath = unplugin.isHardIgnoredPath;
62
+ exports.isMangleableCssId = unplugin.isMangleableCssId;
61
63
  exports.isMonorepoPackage = unplugin.isMonorepoPackage;
62
64
  exports.isPackagesSkippedSource = unplugin.isPackagesSkippedSource;
63
65
  exports.isRSCServerModule = unplugin.isRSCServerModule;
64
66
  exports.isTailwindReservedGlobalVar = unplugin.isTailwindReservedGlobalVar;
67
+ exports.lateMangleCensusMessage = unplugin.lateMangleCensusMessage;
65
68
  exports.mangleCodeClassesSync = unplugin.mangleCodeClassesSync;
66
69
  exports.mangleEligibleClasses = unplugin.mangleEligibleClasses;
67
70
  exports.mangleHybridHazardMessage = unplugin.mangleHybridHazardMessage;
@@ -69,6 +72,7 @@ exports.missingTailwindEntryMessage = unplugin.missingTailwindEntryMessage;
69
72
  exports.normalizeGlobalVarAliasesForCache = unplugin.normalizeGlobalVarAliasesForCache;
70
73
  exports.planGlobalVarAliases = unplugin.planGlobalVarAliases;
71
74
  exports.readGlobalVarScanCache = unplugin.readGlobalVarScanCache;
75
+ exports.realContentHashDisabledMessage = unplugin.realContentHashDisabledMessage;
72
76
  exports.recordGlobalVarSourceFile = unplugin.recordGlobalVarSourceFile;
73
77
  exports.resolveCompileSourceDirs = unplugin.resolveCompileSourceDirs;
74
78
  exports.resolveGlobalVarScanCacheDir = unplugin.resolveGlobalVarScanCacheDir;
@@ -83,10 +87,12 @@ exports.shouldTrackGlobalVarSources = unplugin.shouldTrackGlobalVarSources;
83
87
  exports.shouldWarnMissingTailwindEntry = unplugin.shouldWarnMissingTailwindEntry;
84
88
  exports.shouldWarnUnscopedMonorepo = unplugin.shouldWarnUnscopedMonorepo;
85
89
  exports.skippedSzFilesMessage = unplugin.skippedSzFilesMessage;
90
+ exports.suppressedAdvisoryMessage = unplugin.suppressedAdvisoryMessage;
86
91
  exports.unplugin = unplugin.unplugin;
87
92
  exports.unscopedMonorepoMessage = unplugin.unscopedMonorepoMessage;
88
93
  exports.validateGlobalVarAliasInputs = unplugin.validateGlobalVarAliasInputs;
89
94
  exports.vitePlugin = unplugin.vitePlugin;
95
+ exports.watchModeMangleMessage = unplugin.watchModeMangleMessage;
90
96
  exports.webpackPlugin = unplugin.webpackPlugin;
91
97
  exports.writeGlobalVarScanCache = unplugin.writeGlobalVarScanCache;
92
98
  exports.hasTokens = themeGroupsFile.hasTokens;
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.DCT7DDG6.cjs';
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.BsjD3mtb.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, M as MangleHybridHazards, o as ParsedTheme, Q as QuietMode, p as RSCBoundaryViolation, q as RSCModuleRecord, r as allocateMangleTokens, s as appendTailwindSourceDirective, t as assertNoRSCBoundaryViolation, u as assertNoRSCGraphViolation, v as collectMangleHybridHazards, w as computeSafelistRelPath, x as createGlobalVarMapAssetSource, y as createRSCModuleRecord, z as cssHasContentScope, A as cssImportsTailwind, D as deleteRSCModuleRecord, E as emitMissingCssFallback, F as esbuildPlugin, H as extractGlobalVarAliasesForManifest, I as fileMayContainSafelistableSz, J as findLocalImportSources, K as findRSCBoundaryViolation, L as findRSCGraphViolation, N as hasInjectableTailwindCandidate, O as hasTokens, T as hasUseClientDirective, U as hasUseServerDirective, W as isCompileSourceOptedIn, X as isHardIgnoredPath, Y as isMonorepoPackage, Z as isPackagesSkippedSource, _ as isRSCServerModule, $ as mangleCodeClassesSync, a0 as mangleEligibleClasses, a1 as mangleHybridHazardMessage, a2 as mergeThemes, a3 as missingTailwindEntryMessage, a4 as normalizeGlobalVarAliasesForCache, a5 as parseThemeBlocks, a6 as recordGlobalVarSourceFile, a7 as resolveCompileSourceDirs, a8 as resolveNativeCacheIdentity, a9 as resolveQuietMode, aa as rollupPlugin, ab as scanCustomPropertyNames, ac as shouldEmitMissingCssFallback, ad as shouldEmitWarning, ae as shouldTrackGlobalVarSources, af as shouldWarnMissingTailwindEntry, ag as shouldWarnUnscopedMonorepo, ah as skippedSzFilesMessage, B as unplugin, ai as unscopedMonorepoMessage, aj as vitePlugin, ak as webpackPlugin } from './shared/unplugin.DCT7DDG6.cjs';
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, M as MangleHybridHazards, o as ParsedTheme, Q as QuietMode, p as RSCBoundaryViolation, q as RSCModuleRecord, r as allocateMangleTokens, s as appendTailwindSourceDirective, t as assertNoRSCBoundaryViolation, u as assertNoRSCGraphViolation, v as collectMangleHybridHazards, w as computeSafelistRelPath, x as createGlobalVarMapAssetSource, y as createRSCModuleRecord, z as cssHasContentScope, A as cssImportsTailwind, D as deleteRSCModuleRecord, E as emitMissingCssFallback, F as esbuildPlugin, H as extractGlobalVarAliasesForManifest, I as fileMayContainSafelistableSz, J as findLocalImportSources, K as findRSCBoundaryViolation, L as findRSCGraphViolation, N as hasInjectableTailwindCandidate, O as hasTokens, T as hasUseClientDirective, U as hasUseServerDirective, W as isAdvisoryDiagnostic, X as isCompileSourceOptedIn, Y as isHardIgnoredPath, Z as isMangleableCssId, _ as isMonorepoPackage, $ as isPackagesSkippedSource, a0 as isRSCServerModule, a1 as lateMangleCensusMessage, a2 as mangleCodeClassesSync, a3 as mangleEligibleClasses, a4 as mangleHybridHazardMessage, a5 as mergeThemes, a6 as missingTailwindEntryMessage, a7 as normalizeGlobalVarAliasesForCache, a8 as parseThemeBlocks, a9 as realContentHashDisabledMessage, aa as recordGlobalVarSourceFile, ab as resolveCompileSourceDirs, ac as resolveNativeCacheIdentity, ad as resolveQuietMode, ae as rollupPlugin, af as scanCustomPropertyNames, ag as shouldEmitMissingCssFallback, ah as shouldEmitWarning, ai as shouldTrackGlobalVarSources, aj as shouldWarnMissingTailwindEntry, ak as shouldWarnUnscopedMonorepo, al as skippedSzFilesMessage, am as suppressedAdvisoryMessage, B as unplugin, an as unscopedMonorepoMessage, ao as vitePlugin, ap as watchModeMangleMessage, aq as webpackPlugin } from './shared/unplugin.BsjD3mtb.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.DCT7DDG6.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, M as MangleHybridHazards, o as ParsedTheme, Q as QuietMode, p as RSCBoundaryViolation, q as RSCModuleRecord, r as allocateMangleTokens, s as appendTailwindSourceDirective, t as assertNoRSCBoundaryViolation, u as assertNoRSCGraphViolation, v as collectMangleHybridHazards, w as computeSafelistRelPath, x as createGlobalVarMapAssetSource, y as createRSCModuleRecord, z as cssHasContentScope, A as cssImportsTailwind, B as default, D as deleteRSCModuleRecord, E as emitMissingCssFallback, F as esbuildPlugin, H as extractGlobalVarAliasesForManifest, I as fileMayContainSafelistableSz, J as findLocalImportSources, K as findRSCBoundaryViolation, L as findRSCGraphViolation, N as hasInjectableTailwindCandidate, O as hasTokens, T as hasUseClientDirective, U as hasUseServerDirective, W as isCompileSourceOptedIn, X as isHardIgnoredPath, Y as isMonorepoPackage, Z as isPackagesSkippedSource, _ as isRSCServerModule, $ as mangleCodeClassesSync, a0 as mangleEligibleClasses, a1 as mangleHybridHazardMessage, a2 as mergeThemes, a3 as missingTailwindEntryMessage, a4 as normalizeGlobalVarAliasesForCache, a5 as parseThemeBlocks, a6 as recordGlobalVarSourceFile, a7 as resolveCompileSourceDirs, a8 as resolveNativeCacheIdentity, a9 as resolveQuietMode, aa as rollupPlugin, ab as scanCustomPropertyNames, ac as shouldEmitMissingCssFallback, ad as shouldEmitWarning, ae as shouldTrackGlobalVarSources, af as shouldWarnMissingTailwindEntry, ag as shouldWarnUnscopedMonorepo, ah as skippedSzFilesMessage, B as unplugin, ai as unscopedMonorepoMessage, aj as vitePlugin, ak as webpackPlugin } from './shared/unplugin.DCT7DDG6.mjs';
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.BsjD3mtb.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, M as MangleHybridHazards, o as ParsedTheme, Q as QuietMode, p as RSCBoundaryViolation, q as RSCModuleRecord, r as allocateMangleTokens, s as appendTailwindSourceDirective, t as assertNoRSCBoundaryViolation, u as assertNoRSCGraphViolation, v as collectMangleHybridHazards, w as computeSafelistRelPath, x as createGlobalVarMapAssetSource, y as createRSCModuleRecord, z as cssHasContentScope, A as cssImportsTailwind, B as default, D as deleteRSCModuleRecord, E as emitMissingCssFallback, F as esbuildPlugin, H as extractGlobalVarAliasesForManifest, I as fileMayContainSafelistableSz, J as findLocalImportSources, K as findRSCBoundaryViolation, L as findRSCGraphViolation, N as hasInjectableTailwindCandidate, O as hasTokens, T as hasUseClientDirective, U as hasUseServerDirective, W as isAdvisoryDiagnostic, X as isCompileSourceOptedIn, Y as isHardIgnoredPath, Z as isMangleableCssId, _ as isMonorepoPackage, $ as isPackagesSkippedSource, a0 as isRSCServerModule, a1 as lateMangleCensusMessage, a2 as mangleCodeClassesSync, a3 as mangleEligibleClasses, a4 as mangleHybridHazardMessage, a5 as mergeThemes, a6 as missingTailwindEntryMessage, a7 as normalizeGlobalVarAliasesForCache, a8 as parseThemeBlocks, a9 as realContentHashDisabledMessage, aa as recordGlobalVarSourceFile, ab as resolveCompileSourceDirs, ac as resolveNativeCacheIdentity, ad as resolveQuietMode, ae as rollupPlugin, af as scanCustomPropertyNames, ag as shouldEmitMissingCssFallback, ah as shouldEmitWarning, ai as shouldTrackGlobalVarSources, aj as shouldWarnMissingTailwindEntry, ak as shouldWarnUnscopedMonorepo, al as skippedSzFilesMessage, am as suppressedAdvisoryMessage, B as unplugin, an as unscopedMonorepoMessage, ao as vitePlugin, ap as watchModeMangleMessage, aq as webpackPlugin } from './shared/unplugin.BsjD3mtb.mjs';
5
5
  import 'postcss';
6
6
  import '@csszyx/compiler';
7
7
  import 'esbuild';
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export { createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
2
- export { a as allocateMangleTokens, b as appendTailwindSourceDirective, c as assertNoRSCBoundaryViolation, d as assertNoRSCGraphViolation, e as collectMangleHybridHazards, f as computeSafelistRelPath, g as createGlobalVarAliasValidationOptions, h as createGlobalVarMapAssetSource, i as createGlobalVarScanCacheKey, j as createRSCModuleRecord, k as cssHasContentScope, l as cssImportsTailwind, u as default, m as deleteRSCModuleRecord, n as emitMissingCssFallback, o as esbuildPlugin, p as extractGlobalVarAliasesForManifest, q as fileMayContainSafelistableSz, r as findLocalImportSources, s as findRSCBoundaryViolation, t as findRSCGraphViolation, v as hasInjectableTailwindCandidate, w as hasUseClientDirective, x as hasUseServerDirective, y as isCompileSourceOptedIn, z as isHardIgnoredPath, A as isMonorepoPackage, B as isPackagesSkippedSource, C as isRSCServerModule, D as isTailwindReservedGlobalVar, E as mangleCodeClassesSync, F as mangleEligibleClasses, G as mangleHybridHazardMessage, H as missingTailwindEntryMessage, I as normalizeGlobalVarAliasesForCache, J as planGlobalVarAliases, K as readGlobalVarScanCache, L as recordGlobalVarSourceFile, M as resolveCompileSourceDirs, N as resolveGlobalVarScanCacheDir, O as resolveNativeCacheIdentity, P as resolveQuietMode, Q as rewriteGlobalVarCssAliases, R as rollupPlugin, S as scanGlobalVarCss, T as shouldEmitMissingCssFallback, U as shouldEmitWarning, V as shouldTrackGlobalVarSources, W as shouldWarnMissingTailwindEntry, X as shouldWarnUnscopedMonorepo, Y as skippedSzFilesMessage, u as unplugin, Z as unscopedMonorepoMessage, _ as validateGlobalVarAliasInputs, $ as vitePlugin, a0 as webpackPlugin, a1 as writeGlobalVarScanCache } from './shared/unplugin.ymMe428s.mjs';
3
- export { h as hasTokens, m as mergeThemes, p as parseThemeBlocks, s as scanCustomPropertyNames } from './shared/unplugin.5l4RHMQh.mjs';
2
+ export { a as allocateMangleTokens, b as appendTailwindSourceDirective, c as assertNoRSCBoundaryViolation, d as assertNoRSCGraphViolation, e as collectMangleHybridHazards, f as computeSafelistRelPath, g as createGlobalVarAliasValidationOptions, h as createGlobalVarMapAssetSource, i as createGlobalVarScanCacheKey, j as createRSCModuleRecord, k as cssHasContentScope, l as cssImportsTailwind, u as default, m as deleteRSCModuleRecord, n as emitMissingCssFallback, o as esbuildPlugin, p as extractGlobalVarAliasesForManifest, q as fileMayContainSafelistableSz, r as findLocalImportSources, s as findRSCBoundaryViolation, t as findRSCGraphViolation, v as hasInjectableTailwindCandidate, w as hasUseClientDirective, x as hasUseServerDirective, y as isAdvisoryDiagnostic, z as isCompileSourceOptedIn, A as isHardIgnoredPath, B as isMangleableCssId, C as isMonorepoPackage, D as isPackagesSkippedSource, E as isRSCServerModule, F as isTailwindReservedGlobalVar, G as lateMangleCensusMessage, H as mangleCodeClassesSync, I as mangleEligibleClasses, J as mangleHybridHazardMessage, K as missingTailwindEntryMessage, L as normalizeGlobalVarAliasesForCache, M as planGlobalVarAliases, N as readGlobalVarScanCache, O as realContentHashDisabledMessage, P as recordGlobalVarSourceFile, Q as resolveCompileSourceDirs, R as resolveGlobalVarScanCacheDir, S as resolveNativeCacheIdentity, T as resolveQuietMode, U as rewriteGlobalVarCssAliases, V as rollupPlugin, W as scanGlobalVarCss, X as shouldEmitMissingCssFallback, Y as shouldEmitWarning, Z as shouldTrackGlobalVarSources, _ as shouldWarnMissingTailwindEntry, $ as shouldWarnUnscopedMonorepo, a0 as skippedSzFilesMessage, a1 as suppressedAdvisoryMessage, u as unplugin, a2 as unscopedMonorepoMessage, a3 as validateGlobalVarAliasInputs, a4 as vitePlugin, a5 as watchModeMangleMessage, a6 as webpackPlugin, a7 as writeGlobalVarScanCache } from './shared/unplugin.gR_h2DVG.mjs';
3
+ export { h as hasTokens, m as mergeThemes, p as parseThemeBlocks, s as scanCustomPropertyNames } from './shared/unplugin.BcsvXjIV.mjs';
4
4
  export { CSSZYX_GLOBAL_ALIAS_PREFIX, TAILWIND_RESERVED_PREFIXES } from '@csszyx/types';
5
5
  import 'postcss';
6
6
  import 'postcss-selector-parser';
@@ -16,7 +16,7 @@ import '@csszyx/core/native';
16
16
  import '@csszyx/svelte-adapter';
17
17
  import '@csszyx/vue-adapter';
18
18
  import 'unplugin';
19
- import './shared/unplugin.BB0iWSds.mjs';
19
+ import './shared/unplugin.DKcwO8O4.mjs';
20
20
  import './shared/unplugin.B3XoSRB8.mjs';
21
21
  import 'node:zlib';
22
22
  import 'postcss-value-parser';
@@ -21,8 +21,9 @@
21
21
  */
22
22
  /** Options forwarded to the csszyx Next Turbopack loader. */
23
23
  interface CsszyxTurbopackOptions {
24
- /** Parser lane for the loader. Defaults to `'rust'` (the shipped default). */
25
- parserMode?: 'rust' | 'oxc';
24
+ /** Parser lane for the loader the native addon or its wasm build.
25
+ * Defaults to `'rust'` (the shipped default). */
26
+ parserMode?: 'rust' | 'wasm';
26
27
  /**
27
28
  * Safelist HTML path Tailwind `@source` reads. Must match the
28
29
  * `csszyx next prebuild --output-file` / `csszyx next watch` path.
@@ -21,8 +21,9 @@
21
21
  */
22
22
  /** Options forwarded to the csszyx Next Turbopack loader. */
23
23
  interface CsszyxTurbopackOptions {
24
- /** Parser lane for the loader. Defaults to `'rust'` (the shipped default). */
25
- parserMode?: 'rust' | 'oxc';
24
+ /** Parser lane for the loader the native addon or its wasm build.
25
+ * Defaults to `'rust'` (the shipped default). */
26
+ parserMode?: 'rust' | 'wasm';
26
27
  /**
27
28
  * Safelist HTML path Tailwind `@source` reads. Must match the
28
29
  * `csszyx next prebuild --output-file` / `csszyx next watch` path.
@@ -3,9 +3,9 @@
3
3
  const node_crypto = require('node:crypto');
4
4
  const fs = require('node:fs');
5
5
  const path = require('node:path');
6
- const nextTransformMetadata = require('./shared/unplugin.CUTa6bY9.cjs');
6
+ const nextTransformMetadata = require('./shared/unplugin.BJiWWF6w.cjs');
7
7
  const nextWatcherCycle = require('./shared/unplugin.Cji6O5jv.cjs');
8
- const transformCache = require('./shared/unplugin.4du3qMst.cjs');
8
+ const transformCache = require('./shared/unplugin.BKGCkMgM.cjs');
9
9
  require('@csszyx/compiler');
10
10
  require('@csszyx/types');
11
11
  require('./shared/unplugin.BkRah5Ot.cjs');
@@ -77,8 +77,7 @@ function runNextPrebuild(options) {
77
77
  cacheRoot,
78
78
  pluginVersion: csszyxVersion,
79
79
  compilerVersion,
80
- astBudget: options.astBudget,
81
- allowBabelFallback: options.allowBabelFallback
80
+ astBudget: options.astBudget
82
81
  });
83
82
  const metadata = nextTransformMetadata.collectNextTransformMetadata(transform.result, source, filename);
84
83
  transformedCount++;
@@ -1,6 +1,6 @@
1
1
  import { TransformSourceCodeOptions } from '@csszyx/compiler';
2
2
  import { J as JsonLike, A as AtomicWriteOptions, N as NextStateContext } from './shared/unplugin.CPEWNSA0.cjs';
3
- import { N as NextSourceTransformOutput, a as NextSourceParserMode } from './shared/unplugin.CXV7fOa2.cjs';
3
+ import { N as NextSourceTransformOutput, a as NextSourceParserMode } from './shared/unplugin.B32Exn-K.cjs';
4
4
  import { N as NextWatcherCycleResult } from './shared/unplugin.xeED_qwh.cjs';
5
5
 
6
6
  /** Serializable options accepted by the Next Turbopack csszyx prebuild core. */
@@ -30,7 +30,6 @@ interface NextPrebuildOptions {
30
30
  nativeVersion?: string;
31
31
  mode?: 'development' | 'production';
32
32
  astBudget?: number;
33
- allowBabelFallback?: boolean;
34
33
  allowProductionMangling?: boolean;
35
34
  writeOptions?: AtomicWriteOptions;
36
35
  createdAt?: string;
@@ -1,6 +1,6 @@
1
1
  import { TransformSourceCodeOptions } from '@csszyx/compiler';
2
2
  import { J as JsonLike, A as AtomicWriteOptions, N as NextStateContext } from './shared/unplugin.CPEWNSA0.mjs';
3
- import { N as NextSourceTransformOutput, a as NextSourceParserMode } from './shared/unplugin.CXV7fOa2.mjs';
3
+ import { N as NextSourceTransformOutput, a as NextSourceParserMode } from './shared/unplugin.B32Exn-K.mjs';
4
4
  import { N as NextWatcherCycleResult } from './shared/unplugin.CdZxp0x-.mjs';
5
5
 
6
6
  /** Serializable options accepted by the Next Turbopack csszyx prebuild core. */
@@ -30,7 +30,6 @@ interface NextPrebuildOptions {
30
30
  nativeVersion?: string;
31
31
  mode?: 'development' | 'production';
32
32
  astBudget?: number;
33
- allowBabelFallback?: boolean;
34
33
  allowProductionMangling?: boolean;
35
34
  writeOptions?: AtomicWriteOptions;
36
35
  createdAt?: string;
@@ -1,9 +1,9 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
3
  import * as path from 'node:path';
4
- import { r as readPackageVersion, c as configWithImportedStaticSz, a as resolveNextCrossModule, t as transformNextSource, w as withCrossModuleStatics, b as collectNextTransformMetadata, d as createNextSafelistShardFromMetadata } from './shared/unplugin.CogPHmDs.mjs';
4
+ import { r as readPackageVersion, c as configWithImportedStaticSz, a as resolveNextCrossModule, t as transformNextSource, w as withCrossModuleStatics, b as collectNextTransformMetadata, d as createNextSafelistShardFromMetadata } from './shared/unplugin.DjRylBC_.mjs';
5
5
  import { c as createNextStateContext, w as writeNextSafelistShard, r as runNextWatcherCycle } from './shared/unplugin.BU0O4IkX.mjs';
6
- import { r as resolveTransformCacheDir, n as normalizePathSeparators } from './shared/unplugin.BB0iWSds.mjs';
6
+ import { r as resolveTransformCacheDir, n as normalizePathSeparators } from './shared/unplugin.DKcwO8O4.mjs';
7
7
  import '@csszyx/compiler';
8
8
  import '@csszyx/types';
9
9
  import './shared/unplugin.B3XoSRB8.mjs';
@@ -60,8 +60,7 @@ function runNextPrebuild(options) {
60
60
  cacheRoot,
61
61
  pluginVersion: csszyxVersion,
62
62
  compilerVersion,
63
- astBudget: options.astBudget,
64
- allowBabelFallback: options.allowBabelFallback
63
+ astBudget: options.astBudget
65
64
  });
66
65
  const metadata = collectNextTransformMetadata(transform.result, source, filename);
67
66
  transformedCount++;
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const node_crypto = require('node:crypto');
6
6
  const path = require('node:path');
7
- const themeGroupsFile = require('./shared/unplugin.X9a9SL_s.cjs');
8
- const nextTransformMetadata = require('./shared/unplugin.CUTa6bY9.cjs');
7
+ const themeGroupsFile = require('./shared/unplugin.CkNQjA4G.cjs');
8
+ const nextTransformMetadata = require('./shared/unplugin.BJiWWF6w.cjs');
9
9
  const nextWatcherCycle = require('./shared/unplugin.Cji6O5jv.cjs');
10
- const transformCache = require('./shared/unplugin.4du3qMst.cjs');
10
+ const transformCache = require('./shared/unplugin.BKGCkMgM.cjs');
11
11
  require('node:fs');
12
12
  require('./shared/unplugin.BkRah5Ot.cjs');
13
13
  require('@csszyx/compiler');
@@ -65,8 +65,7 @@ function runNextTurboLoader(source, loaderContext, explicitOptions = {}) {
65
65
  ),
66
66
  pluginVersion: options.csszyxVersion ?? nextTransformMetadata.readPackageVersion("../package.json", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('next-turbo-loader.cjs', document.baseURI).href))),
67
67
  compilerVersion: options.compilerVersion ?? nextTransformMetadata.readPackageVersion("../../compiler/package.json", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('next-turbo-loader.cjs', document.baseURI).href))),
68
- astBudget: options.astBudget,
69
- allowBabelFallback: options.allowBabelFallback
68
+ astBudget: options.astBudget
70
69
  });
71
70
  const injected = themeGroupsFile.injectNextRuntimeImports(transform.result.code, transform.result);
72
71
  const callsSzcn = transform.result.usesSzcn || /\bszcn\s*\(/.test(source);
@@ -85,14 +84,13 @@ function runNextTurboLoader(source, loaderContext, explicitOptions = {}) {
85
84
  source,
86
85
  loaderContext.resourcePath
87
86
  );
88
- let shardPath = null;
89
87
  let materialized = false;
90
88
  const shardResult = nextWatcherCycle.writeNextSafelistShard(
91
89
  context.safelist.shardsDir,
92
90
  nextTransformMetadata.createNextSafelistShardFromMetadata(metadata, createShardCacheKey(context, metadata)),
93
91
  options.writeOptions
94
92
  );
95
- shardPath = shardResult.filePath;
93
+ const shardPath = shardResult.filePath;
96
94
  if (options.materializeSafelist !== false && shardResult.changed) {
97
95
  nextWatcherCycle.runNextWatcherCycle(context, {
98
96
  writeOptions: options.writeOptions,
@@ -1,6 +1,6 @@
1
1
  import { TransformSourceCodeOptions } from '@csszyx/compiler';
2
2
  import { J as JsonLike, A as AtomicWriteOptions, N as NextStateContext } from './shared/unplugin.CPEWNSA0.cjs';
3
- import { a as NextSourceParserMode, N as NextSourceTransformOutput } from './shared/unplugin.CXV7fOa2.cjs';
3
+ import { a as NextSourceParserMode, N as NextSourceTransformOutput } from './shared/unplugin.B32Exn-K.cjs';
4
4
 
5
5
  /** Serializable options accepted by the Next Turbopack csszyx loader. */
6
6
  interface NextTurboLoaderOptions {
@@ -18,7 +18,6 @@ interface NextTurboLoaderOptions {
18
18
  nativeVersion?: string;
19
19
  mode?: 'development' | 'production';
20
20
  astBudget?: number;
21
- allowBabelFallback?: boolean;
22
21
  allowProductionMangling?: boolean;
23
22
  materializeSafelist?: boolean;
24
23
  writeOptions?: AtomicWriteOptions;
@@ -1,6 +1,6 @@
1
1
  import { TransformSourceCodeOptions } from '@csszyx/compiler';
2
2
  import { J as JsonLike, A as AtomicWriteOptions, N as NextStateContext } from './shared/unplugin.CPEWNSA0.mjs';
3
- import { a as NextSourceParserMode, N as NextSourceTransformOutput } from './shared/unplugin.CXV7fOa2.mjs';
3
+ import { a as NextSourceParserMode, N as NextSourceTransformOutput } from './shared/unplugin.B32Exn-K.mjs';
4
4
 
5
5
  /** Serializable options accepted by the Next Turbopack csszyx loader. */
6
6
  interface NextTurboLoaderOptions {
@@ -18,7 +18,6 @@ interface NextTurboLoaderOptions {
18
18
  nativeVersion?: string;
19
19
  mode?: 'development' | 'production';
20
20
  astBudget?: number;
21
- allowBabelFallback?: boolean;
22
21
  allowProductionMangling?: boolean;
23
22
  materializeSafelist?: boolean;
24
23
  writeOptions?: AtomicWriteOptions;
@@ -1,9 +1,9 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import * as path from 'node:path';
3
- import { i as injectNextRuntimeImports, e as ensureThemeGroupsFile, a as insertAfterUseDirective, t as themeGroupsSpecifier } from './shared/unplugin.5l4RHMQh.mjs';
4
- import { r as readPackageVersion, c as configWithImportedStaticSz, a as resolveNextCrossModule, t as transformNextSource, w as withCrossModuleStatics, n as normalizeProviderPaths, b as collectNextTransformMetadata, d as createNextSafelistShardFromMetadata } from './shared/unplugin.CogPHmDs.mjs';
3
+ import { i as injectNextRuntimeImports, e as ensureThemeGroupsFile, a as insertAfterUseDirective, t as themeGroupsSpecifier } from './shared/unplugin.BcsvXjIV.mjs';
4
+ import { r as readPackageVersion, c as configWithImportedStaticSz, a as resolveNextCrossModule, t as transformNextSource, w as withCrossModuleStatics, n as normalizeProviderPaths, b as collectNextTransformMetadata, d as createNextSafelistShardFromMetadata } from './shared/unplugin.DjRylBC_.mjs';
5
5
  import { c as createNextStateContext, w as writeNextSafelistShard, r as runNextWatcherCycle, v as validateNextGenerationManifest, a as readNextGenerationManifest } from './shared/unplugin.BU0O4IkX.mjs';
6
- import { r as resolveTransformCacheDir, n as normalizePathSeparators } from './shared/unplugin.BB0iWSds.mjs';
6
+ import { r as resolveTransformCacheDir, n as normalizePathSeparators } from './shared/unplugin.DKcwO8O4.mjs';
7
7
  import 'node:fs';
8
8
  import './shared/unplugin.B3XoSRB8.mjs';
9
9
  import '@csszyx/compiler';
@@ -46,8 +46,7 @@ function runNextTurboLoader(source, loaderContext, explicitOptions = {}) {
46
46
  ),
47
47
  pluginVersion: options.csszyxVersion ?? readPackageVersion("../package.json", import.meta.url),
48
48
  compilerVersion: options.compilerVersion ?? readPackageVersion("../../compiler/package.json", import.meta.url),
49
- astBudget: options.astBudget,
50
- allowBabelFallback: options.allowBabelFallback
49
+ astBudget: options.astBudget
51
50
  });
52
51
  const injected = injectNextRuntimeImports(transform.result.code, transform.result);
53
52
  const callsSzcn = transform.result.usesSzcn || /\bszcn\s*\(/.test(source);
@@ -66,14 +65,13 @@ function runNextTurboLoader(source, loaderContext, explicitOptions = {}) {
66
65
  source,
67
66
  loaderContext.resourcePath
68
67
  );
69
- let shardPath = null;
70
68
  let materialized = false;
71
69
  const shardResult = writeNextSafelistShard(
72
70
  context.safelist.shardsDir,
73
71
  createNextSafelistShardFromMetadata(metadata, createShardCacheKey(context, metadata)),
74
72
  options.writeOptions
75
73
  );
76
- shardPath = shardResult.filePath;
74
+ const shardPath = shardResult.filePath;
77
75
  if (options.materializeSafelist !== false && shardResult.changed) {
78
76
  runNextWatcherCycle(context, {
79
77
  writeOptions: options.writeOptions,
@@ -1,10 +1,10 @@
1
1
  import { SourceTransformResult } from '@csszyx/compiler';
2
2
 
3
3
  /** Parser implementation that produced a cache entry. */
4
- type TransformCacheProducer = 'babel' | 'babel-fallback' | 'oxc' | 'rust';
4
+ type TransformCacheProducer = 'rust' | 'wasm';
5
5
 
6
6
  /** Parser mode supported by the Next Turbopack source transformer. */
7
- type NextSourceParserMode = 'babel' | 'oxc' | 'rust';
7
+ type NextSourceParserMode = 'rust' | 'wasm';
8
8
  /** Result of one source transform plus cache metadata for loader diagnostics. */
9
9
  interface NextSourceTransformOutput {
10
10
  result: SourceTransformResult;
@@ -1,10 +1,10 @@
1
1
  import { SourceTransformResult } from '@csszyx/compiler';
2
2
 
3
3
  /** Parser implementation that produced a cache entry. */
4
- type TransformCacheProducer = 'babel' | 'babel-fallback' | 'oxc' | 'rust';
4
+ type TransformCacheProducer = 'rust' | 'wasm';
5
5
 
6
6
  /** Parser mode supported by the Next Turbopack source transformer. */
7
- type NextSourceParserMode = 'babel' | 'oxc' | 'rust';
7
+ type NextSourceParserMode = 'rust' | 'wasm';
8
8
  /** Result of one source transform plus cache metadata for loader diagnostics. */
9
9
  interface NextSourceTransformOutput {
10
10
  result: SourceTransformResult;
@@ -4,7 +4,7 @@ const fs = require('node:fs');
4
4
  const path = require('node:path');
5
5
  const compiler = require('@csszyx/compiler');
6
6
  const types = require('@csszyx/types');
7
- const transformCache = require('./unplugin.4du3qMst.cjs');
7
+ const transformCache = require('./unplugin.BKGCkMgM.cjs');
8
8
  const node_crypto = require('node:crypto');
9
9
  const htmlEscape = require('./unplugin.BkRah5Ot.cjs');
10
10
 
@@ -206,34 +206,16 @@ function isRegexLiteralStart(emitted) {
206
206
  }
207
207
  function runNextSourceTransform(input, filename) {
208
208
  const compilerOptions = input.compilerOptions;
209
- if (input.parserMode === "babel") {
210
- return {
211
- result: compiler.transformSourceCode(input.source, filename, compilerOptions),
212
- producer: "babel"
213
- };
214
- }
215
209
  if (input.parserMode === "rust") {
216
210
  return {
217
211
  result: compiler.transformRust(input.source, filename, compilerOptions),
218
212
  producer: "rust"
219
213
  };
220
214
  }
221
- try {
222
- return {
223
- result: compiler.transformOxc(input.source, filename, compilerOptions),
224
- producer: "oxc"
225
- };
226
- } catch (error) {
227
- if (input.allowBabelFallback === false) {
228
- throw error;
229
- }
230
- const result = compiler.transformSourceCode(input.source, filename, compilerOptions);
231
- const reason = transformCache.babelFallbackReason(error);
232
- result.diagnostics.push(
233
- `[csszyx] oxc parser fell back to Babel for ${filename}: ${reason}`
234
- );
235
- return { result, producer: "babel-fallback" };
236
- }
215
+ return {
216
+ result: compiler.transformWasm(input.source, filename, compilerOptions),
217
+ producer: "wasm"
218
+ };
237
219
  }
238
220
  function createNextSourceTransformCacheInput(input, filename, producer) {
239
221
  return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const compiler = require('@csszyx/compiler');
4
3
  const path = require('node:path');
4
+ const compiler = require('@csszyx/compiler');
5
5
  const fs = require('node:fs');
6
6
  const node_crypto = require('node:crypto');
7
7
 
@@ -25,13 +25,6 @@ function normalizePathSeparators(value) {
25
25
  return value.split(WINDOWS_PATH_SEPARATOR).join("/");
26
26
  }
27
27
 
28
- function babelFallbackReason(error) {
29
- if (error instanceof compiler.OxcNotImplementedError) {
30
- return error.detail;
31
- }
32
- return error instanceof Error ? error.message : String(error);
33
- }
34
-
35
28
  const TSCONFIG_CANDIDATES = ["tsconfig.json", "jsconfig.json", "tsconfig.app.json"];
36
29
  const MAX_EXTENDS_DEPTH = 8;
37
30
  function collectSpecifierAliases(rootDir, resolveAlias) {
@@ -301,7 +294,7 @@ function isReadableProviderFile(candidate) {
301
294
  }
302
295
  }
303
296
 
304
- const CACHE_SCHEMA_VERSION = 16;
297
+ const CACHE_SCHEMA_VERSION = 17;
305
298
  function resolveTransformCacheDir(rootDir, cacheDir) {
306
299
  return path__namespace.resolve(rootDir, cacheDir ?? ".csszyx/cache", "transform");
307
300
  }
@@ -423,6 +416,7 @@ function serializeResult(result) {
423
416
  usesColorVar: result.usesColorVar,
424
417
  usesSpacingVar: result.usesSpacingVar,
425
418
  usesUnitVar: result.usesUnitVar,
419
+ usesBoolClass: result.usesBoolClass,
426
420
  classes: [...result.classes],
427
421
  rawClassNames: [...result.rawClassNames],
428
422
  diagnostics: [...result.diagnostics],
@@ -444,6 +438,7 @@ function deserializeResult(result) {
444
438
  usesColorVar: result.usesColorVar,
445
439
  usesSpacingVar: result.usesSpacingVar,
446
440
  usesUnitVar: result.usesUnitVar,
441
+ usesBoolClass: result.usesBoolClass,
447
442
  classes: new Set(result.classes),
448
443
  rawClassNames: new Set(result.rawClassNames),
449
444
  diagnostics: [...result.diagnostics],
@@ -508,7 +503,6 @@ function evictMemoryCacheToBudget(cache, totalCodeChars, maxEntries, maxCodeChar
508
503
  return total;
509
504
  }
510
505
 
511
- exports.babelFallbackReason = babelFallbackReason;
512
506
  exports.collectSpecifierAliases = collectSpecifierAliases;
513
507
  exports.createTransformCacheKey = createTransformCacheKey;
514
508
  exports.evictMemoryCacheToBudget = evictMemoryCacheToBudget;
@@ -297,6 +297,7 @@ function runtimeHelperGroupsFromUsage(usage) {
297
297
  if (usage.usesColorVar) append("__szColorVar");
298
298
  if (usage.usesSpacingVar) append("__szSpacingVar");
299
299
  if (usage.usesUnitVar) append("__szUnitVar");
300
+ if (usage.usesBoolClass) append("__szBoolClass");
300
301
  return groups;
301
302
  }
302
303
  function injectNextRuntimeImports(code, usage) {