@stylexswc/rs-compiler 0.4.1-dev.1 → 0.4.1-rc.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.d.ts +6 -5
- package/dist/index.js +2 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
/* auto-generated by NAPI-RS */
|
|
5
5
|
|
|
6
|
-
export interface TransformOutput {
|
|
7
|
-
code: string
|
|
8
|
-
map?: string
|
|
9
|
-
output?: string
|
|
10
|
-
}
|
|
11
6
|
export interface StyleXModuleResolution {
|
|
12
7
|
type: string
|
|
13
8
|
rootDir?: string
|
|
14
9
|
themeFileExtension?: string
|
|
15
10
|
}
|
|
11
|
+
export const enum SourceMaps {
|
|
12
|
+
True = 'True',
|
|
13
|
+
False = 'False',
|
|
14
|
+
Inline = 'Inline'
|
|
15
|
+
}
|
|
16
16
|
export interface StyleXOptions {
|
|
17
17
|
styleResolution?: string
|
|
18
18
|
useRemForFontSize?: boolean
|
|
@@ -27,6 +27,7 @@ export interface StyleXOptions {
|
|
|
27
27
|
debug?: boolean
|
|
28
28
|
aliases?: Record<string, string[]>
|
|
29
29
|
unstable_moduleResolution?: StyleXModuleResolution
|
|
30
|
+
sourceMap?: SourceMaps
|
|
30
31
|
}
|
|
31
32
|
export interface StyleXMetadata {
|
|
32
33
|
stylex: ([string, { ltr: string; rtl?: null | string }, number])[]
|
package/dist/index.js
CHANGED
|
@@ -310,6 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { transform } = nativeBinding
|
|
313
|
+
const { SourceMaps, transform } = nativeBinding
|
|
314
314
|
|
|
315
|
+
module.exports.SourceMaps = SourceMaps
|
|
315
316
|
module.exports.transform = transform
|
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.1-
|
|
4
|
+
"version": "0.4.1-rc.2",
|
|
5
5
|
"ava": {
|
|
6
6
|
"extensions": {
|
|
7
7
|
"ts": "module"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@swc-node/register": "^1.10.6",
|
|
24
24
|
"@swc/core": "^1.6.13",
|
|
25
25
|
"@taplo/cli": "^0.7.0",
|
|
26
|
-
"@types/node": "^
|
|
26
|
+
"@types/node": "^22.5.1",
|
|
27
27
|
"ava": "^6.1.3",
|
|
28
28
|
"benchmark": "^2.1.2",
|
|
29
29
|
"chalk": "^5.3.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"oxlint": "^0.9.0",
|
|
34
34
|
"prettier": "^3.3.3",
|
|
35
35
|
"tinybench": "^2.8.0",
|
|
36
|
-
"typescript": "^5.5.
|
|
36
|
+
"typescript": "^5.5.4"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">= 18"
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
},
|
|
75
75
|
"repository": "https://github.com/Dwlad90/stylex-swc-plugin",
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@stylexswc/rs-compiler-win32-x64-msvc": "0.4.1-
|
|
78
|
-
"@stylexswc/rs-compiler-darwin-x64": "0.4.1-
|
|
79
|
-
"@stylexswc/rs-compiler-linux-x64-gnu": "0.4.1-
|
|
80
|
-
"@stylexswc/rs-compiler-darwin-arm64": "0.4.1-
|
|
81
|
-
"@stylexswc/rs-compiler-linux-arm64-gnu": "0.4.1-
|
|
82
|
-
"@stylexswc/rs-compiler-linux-x64-musl": "0.4.1-
|
|
77
|
+
"@stylexswc/rs-compiler-win32-x64-msvc": "0.4.1-rc.2",
|
|
78
|
+
"@stylexswc/rs-compiler-darwin-x64": "0.4.1-rc.2",
|
|
79
|
+
"@stylexswc/rs-compiler-linux-x64-gnu": "0.4.1-rc.2",
|
|
80
|
+
"@stylexswc/rs-compiler-darwin-arm64": "0.4.1-rc.2",
|
|
81
|
+
"@stylexswc/rs-compiler-linux-arm64-gnu": "0.4.1-rc.2",
|
|
82
|
+
"@stylexswc/rs-compiler-linux-x64-musl": "0.4.1-rc.2"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"artifacts": "napi artifacts",
|