@stylexjs/babel-plugin 0.9.2 → 0.10.0-beta.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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
6
7
|
* @flow strict
|
|
7
8
|
*/
|
|
8
9
|
|
|
@@ -3809,8 +3810,8 @@ declare export var getBindingIdentifiers: {
|
|
|
3809
3810
|
): Dups extends true
|
|
3810
3811
|
? Record<string, Array<Identifier>>
|
|
3811
3812
|
: Dups extends false
|
|
3812
|
-
|
|
3813
|
-
|
|
3813
|
+
? Record<string, Identifier>
|
|
3814
|
+
: Record<string, Array<Identifier>> | Record<string, Identifier>,
|
|
3814
3815
|
|
|
3815
3816
|
+keys: $ReadOnly<{
|
|
3816
3817
|
DeclareClass: $ReadOnlyArray<string>,
|
package/lib/index.js
CHANGED
|
@@ -1423,6 +1423,9 @@ function evaluateThemeRef(fileName, exportName, state) {
|
|
|
1423
1423
|
key
|
|
1424
1424
|
});
|
|
1425
1425
|
const varName = state.traversalState.options.classNamePrefix + shared.utils.hash(strToHash);
|
|
1426
|
+
if (key === '__themeName__') {
|
|
1427
|
+
return varName;
|
|
1428
|
+
}
|
|
1426
1429
|
return `var(--${varName})`;
|
|
1427
1430
|
};
|
|
1428
1431
|
const proxy = new Proxy({}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexjs/babel-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-beta.1",
|
|
4
4
|
"description": "StyleX babel plugin.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": "https://github.com/facebook/stylex",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/helper-module-imports": "^7.22.15",
|
|
17
|
-
"@stylexjs/shared": "0.
|
|
18
|
-
"@stylexjs/stylex": "0.
|
|
17
|
+
"@stylexjs/shared": "0.10.0-beta.1",
|
|
18
|
+
"@stylexjs/stylex": "0.10.0-beta.1",
|
|
19
19
|
"@babel/core": "^7.25.8",
|
|
20
20
|
"@babel/traverse": "^7.25.7",
|
|
21
21
|
"@babel/types": "^7.25.8",
|