@stylexswc/rs-compiler 0.6.6 → 0.7.0-dev.1
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/README.md +1 -1
- package/dist/index.d.ts +4 -0
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ generated styles, and an optional source map.
|
|
|
73
73
|
|
|
74
74
|
```json
|
|
75
75
|
{
|
|
76
|
-
"code": "import stylex from '@stylexjs/stylex';\nexport const styles = {\n default: {\n backgroundColor: \"xrkmrrc\",\n color: \"xju2f9n\",\n $$css: true\n }\n};\n",
|
|
76
|
+
"code": "import * as stylex from '@stylexjs/stylex';\nexport const styles = {\n default: {\n backgroundColor: \"xrkmrrc\",\n color: \"xju2f9n\",\n $$css: true\n }\n};\n",
|
|
77
77
|
"metadata": {
|
|
78
78
|
"stylex": {
|
|
79
79
|
"styles": [
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface TransformOutput {
|
|
|
7
7
|
code: string
|
|
8
8
|
map?: string
|
|
9
9
|
output?: string
|
|
10
|
+
diagnostics: Array<string>
|
|
10
11
|
}
|
|
11
12
|
export interface StyleXModuleResolution {
|
|
12
13
|
type: string
|
|
@@ -30,6 +31,9 @@ export interface StyleXOptions {
|
|
|
30
31
|
dev?: boolean
|
|
31
32
|
test?: boolean
|
|
32
33
|
debug?: boolean
|
|
34
|
+
enableDebugClassNames?: boolean
|
|
35
|
+
enableDebugDataProp?: boolean
|
|
36
|
+
enableDevClassNames?: boolean
|
|
33
37
|
aliases?: Record<string, string[]>
|
|
34
38
|
unstable_moduleResolution?: StyleXModuleResolution
|
|
35
39
|
sourceMap?: SourceMaps
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/rs-compiler",
|
|
3
3
|
"description": "NAPI-RS compiler for transform StyleX code",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0-dev.1",
|
|
5
5
|
"ava": {
|
|
6
6
|
"extensions": {
|
|
7
7
|
"ts": "module"
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@napi-rs/cli": "^2.18.4",
|
|
26
|
-
"@stylexjs/open-props": "^0.
|
|
27
|
-
"@stylexjs/stylex": "^0.
|
|
28
|
-
"@stylexswc/shared": "0.
|
|
26
|
+
"@stylexjs/open-props": "^0.11.1",
|
|
27
|
+
"@stylexjs/stylex": "^0.11.1",
|
|
28
|
+
"@stylexswc/shared": "0.7.0-dev.1",
|
|
29
29
|
"@swc-node/register": "^1.10.6",
|
|
30
|
-
"@swc/core": "^1.
|
|
30
|
+
"@swc/core": "^1.11.7",
|
|
31
31
|
"@taplo/cli": "^0.7.0",
|
|
32
|
-
"@types/node": "^22.
|
|
33
|
-
"ava": "^6.
|
|
32
|
+
"@types/node": "^22.13.9",
|
|
33
|
+
"ava": "^6.2.0",
|
|
34
34
|
"benchmark": "^2.1.2",
|
|
35
|
-
"chalk": "^5.
|
|
36
|
-
"husky": "^9.
|
|
37
|
-
"lint-staged": "^15.
|
|
38
|
-
"npm-run-all2": "^
|
|
39
|
-
"oxlint": "^0.
|
|
40
|
-
"prettier": "^3.
|
|
41
|
-
"tinybench": "^
|
|
42
|
-
"typescript": "^5.
|
|
35
|
+
"chalk": "^5.4.1",
|
|
36
|
+
"husky": "^9.1.7",
|
|
37
|
+
"lint-staged": "^15.4.3",
|
|
38
|
+
"npm-run-all2": "^7.0.2",
|
|
39
|
+
"oxlint": "^0.15.13",
|
|
40
|
+
"prettier": "^3.5.3",
|
|
41
|
+
"tinybench": "^3.1.1",
|
|
42
|
+
"typescript": "^5.8.2"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">= 18"
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
},
|
|
81
81
|
"repository": "https://github.com/Dwlad90/stylex-swc-plugin",
|
|
82
82
|
"optionalDependencies": {
|
|
83
|
-
"@stylexswc/rs-compiler-win32-x64-msvc": "0.
|
|
84
|
-
"@stylexswc/rs-compiler-darwin-x64": "0.
|
|
85
|
-
"@stylexswc/rs-compiler-linux-x64-gnu": "0.
|
|
86
|
-
"@stylexswc/rs-compiler-darwin-arm64": "0.
|
|
87
|
-
"@stylexswc/rs-compiler-linux-arm64-gnu": "0.
|
|
88
|
-
"@stylexswc/rs-compiler-linux-x64-musl": "0.
|
|
83
|
+
"@stylexswc/rs-compiler-win32-x64-msvc": "0.7.0-dev.1",
|
|
84
|
+
"@stylexswc/rs-compiler-darwin-x64": "0.7.0-dev.1",
|
|
85
|
+
"@stylexswc/rs-compiler-linux-x64-gnu": "0.7.0-dev.1",
|
|
86
|
+
"@stylexswc/rs-compiler-darwin-arm64": "0.7.0-dev.1",
|
|
87
|
+
"@stylexswc/rs-compiler-linux-arm64-gnu": "0.7.0-dev.1",
|
|
88
|
+
"@stylexswc/rs-compiler-linux-x64-musl": "0.7.0-dev.1"
|
|
89
89
|
},
|
|
90
90
|
"scripts": {
|
|
91
91
|
"artifacts": "napi artifacts",
|