@csszyx/types 0.8.0 → 0.9.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.
- package/dist/config.cjs +2 -1
- package/dist/config.d.cts +15 -4
- package/dist/config.d.mts +15 -4
- package/dist/config.mjs +2 -1
- package/package.json +10 -6
package/dist/config.cjs
CHANGED
|
@@ -15,8 +15,9 @@ const DEFAULT_BUILD_CONFIG = {
|
|
|
15
15
|
tailwindConfig: "tailwind.config.js",
|
|
16
16
|
outputDir: ".csszyx",
|
|
17
17
|
cacheDir: ".csszyx/cache",
|
|
18
|
+
cache: true,
|
|
18
19
|
astBudgetLimit: 5e4,
|
|
19
|
-
parser: "
|
|
20
|
+
parser: "rust"
|
|
20
21
|
};
|
|
21
22
|
const DEFAULT_HYDRATION_CONFIG = {
|
|
22
23
|
strict: true,
|
package/dist/config.d.cts
CHANGED
|
@@ -85,6 +85,12 @@ interface BuildConfig {
|
|
|
85
85
|
* @default ".csszyx/cache"
|
|
86
86
|
*/
|
|
87
87
|
cacheDir?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Enable the per-file transform cache.
|
|
90
|
+
*
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
cache?: boolean;
|
|
88
94
|
/**
|
|
89
95
|
* Maximum AST nodes per file before warning.
|
|
90
96
|
*
|
|
@@ -94,12 +100,17 @@ interface BuildConfig {
|
|
|
94
100
|
/**
|
|
95
101
|
* Source parser used for JSX/TSX sz transforms.
|
|
96
102
|
*
|
|
97
|
-
* `
|
|
98
|
-
*
|
|
103
|
+
* `rust` is the default parser. The Rust engine ships through the
|
|
104
|
+
* matching optional `@csszyx/core-*` platform package. The package
|
|
105
|
+
* installs automatically as an optional dependency on supported
|
|
106
|
+
* platforms; when missing, csszyx fails loudly with an actionable error
|
|
107
|
+
* rather than silently falling back. Set this option to `oxc` to keep
|
|
108
|
+
* the previous JavaScript oxc-parser path, or to `babel` as a final
|
|
109
|
+
* compatibility escape hatch.
|
|
99
110
|
*
|
|
100
|
-
* @default "
|
|
111
|
+
* @default "rust"
|
|
101
112
|
*/
|
|
102
|
-
parser?: 'babel' | 'oxc';
|
|
113
|
+
parser?: 'babel' | 'oxc' | 'rust';
|
|
103
114
|
/**
|
|
104
115
|
* CSS file(s) to scan for Tailwind v4 @theme blocks.
|
|
105
116
|
* When set, the plugin generates .csszyx/theme.d.ts with TypeScript augmentation
|
package/dist/config.d.mts
CHANGED
|
@@ -85,6 +85,12 @@ interface BuildConfig {
|
|
|
85
85
|
* @default ".csszyx/cache"
|
|
86
86
|
*/
|
|
87
87
|
cacheDir?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Enable the per-file transform cache.
|
|
90
|
+
*
|
|
91
|
+
* @default true
|
|
92
|
+
*/
|
|
93
|
+
cache?: boolean;
|
|
88
94
|
/**
|
|
89
95
|
* Maximum AST nodes per file before warning.
|
|
90
96
|
*
|
|
@@ -94,12 +100,17 @@ interface BuildConfig {
|
|
|
94
100
|
/**
|
|
95
101
|
* Source parser used for JSX/TSX sz transforms.
|
|
96
102
|
*
|
|
97
|
-
* `
|
|
98
|
-
*
|
|
103
|
+
* `rust` is the default parser. The Rust engine ships through the
|
|
104
|
+
* matching optional `@csszyx/core-*` platform package. The package
|
|
105
|
+
* installs automatically as an optional dependency on supported
|
|
106
|
+
* platforms; when missing, csszyx fails loudly with an actionable error
|
|
107
|
+
* rather than silently falling back. Set this option to `oxc` to keep
|
|
108
|
+
* the previous JavaScript oxc-parser path, or to `babel` as a final
|
|
109
|
+
* compatibility escape hatch.
|
|
99
110
|
*
|
|
100
|
-
* @default "
|
|
111
|
+
* @default "rust"
|
|
101
112
|
*/
|
|
102
|
-
parser?: 'babel' | 'oxc';
|
|
113
|
+
parser?: 'babel' | 'oxc' | 'rust';
|
|
103
114
|
/**
|
|
104
115
|
* CSS file(s) to scan for Tailwind v4 @theme blocks.
|
|
105
116
|
* When set, the plugin generates .csszyx/theme.d.ts with TypeScript augmentation
|
package/dist/config.mjs
CHANGED
|
@@ -13,8 +13,9 @@ const DEFAULT_BUILD_CONFIG = {
|
|
|
13
13
|
tailwindConfig: "tailwind.config.js",
|
|
14
14
|
outputDir: ".csszyx",
|
|
15
15
|
cacheDir: ".csszyx/cache",
|
|
16
|
+
cache: true,
|
|
16
17
|
astBudgetLimit: 5e4,
|
|
17
|
-
parser: "
|
|
18
|
+
parser: "rust"
|
|
18
19
|
};
|
|
19
20
|
const DEFAULT_HYDRATION_CONFIG = {
|
|
20
21
|
strict: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "TypeScript definitions for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -25,19 +25,23 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"types": "./dist/index.d.mts",
|
|
28
|
-
"import": "./dist/index.mjs"
|
|
28
|
+
"import": "./dist/index.mjs",
|
|
29
|
+
"require": "./dist/index.cjs"
|
|
29
30
|
},
|
|
30
31
|
"./config": {
|
|
31
32
|
"types": "./dist/config.d.mts",
|
|
32
|
-
"import": "./dist/config.mjs"
|
|
33
|
+
"import": "./dist/config.mjs",
|
|
34
|
+
"require": "./dist/config.cjs"
|
|
33
35
|
},
|
|
34
36
|
"./runtime": {
|
|
35
37
|
"types": "./dist/runtime.d.mts",
|
|
36
|
-
"import": "./dist/runtime.mjs"
|
|
38
|
+
"import": "./dist/runtime.mjs",
|
|
39
|
+
"require": "./dist/runtime.cjs"
|
|
37
40
|
},
|
|
38
41
|
"./compiler": {
|
|
39
42
|
"types": "./dist/compiler.d.mts",
|
|
40
|
-
"import": "./dist/compiler.mjs"
|
|
43
|
+
"import": "./dist/compiler.mjs",
|
|
44
|
+
"require": "./dist/compiler.cjs"
|
|
41
45
|
},
|
|
42
46
|
"./jsx": {
|
|
43
47
|
"types": "./dist/jsx.d.ts"
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
"@types/node": "^20.11.0",
|
|
51
55
|
"typescript": "^6.0.3",
|
|
52
56
|
"unbuild": "^3.6.1",
|
|
53
|
-
"@csszyx/compiler": "0.
|
|
57
|
+
"@csszyx/compiler": "0.9.0"
|
|
54
58
|
},
|
|
55
59
|
"sideEffects": false,
|
|
56
60
|
"engines": {
|