File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/@stylexjs/babel-plugin/src Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ function evaluateThemeRef(
201201 { } ,
202202 {
203203 get ( _ , key : string ) {
204+ if ( key === '__IS_PROXY' ) {
205+ return true ;
206+ }
204207 return resolveKey ( key ) ;
205208 } ,
206209 set ( _ , key : string , value : string ) {
Original file line number Diff line number Diff line change @@ -217,7 +217,11 @@ export default function transformStylexProps(
217217 state ,
218218 evaluatePathFnConfig ,
219219 ) ;
220- if ( ! confident || styleValue == null ) {
220+ if (
221+ ! confident ||
222+ styleValue == null ||
223+ styleValue . __IS_PROXY === true
224+ ) {
221225 nonNullProps = true ;
222226 styleNonNullProps = true ;
223227 } else {
@@ -357,6 +361,9 @@ function parseNullableStyle(
357361 parsedObj . value != null &&
358362 typeof parsedObj . value === 'object'
359363 ) {
364+ if ( parsedObj . value . __IS_PROXY === true ) {
365+ return 'other' ;
366+ }
360367 return parsedObj . value ;
361368 }
362369
You can’t perform that action at this time.
0 commit comments