Found and fixed a bug in the optimisation step for optimising stylex.props() and stylex() calls within a for-of loop.
The custom evaluate logic would fail to bail out and throw a null pointer exception instead.
The fix was to check for that null value and bail out instead.
Also, internally there are some rare example of non-existent styles (styles.unknown) being used which can cause the Babel plugin to throw an error.
Added a check to bail out instead of throwing an error for such cases and added a couple of test cases to verify that the fix works for stylex(), stylex.props() and stylex.attrs().
Found and fixed a bug in the optimisation step for optimising
stylex.props()
andstylex()
calls within afor-of
loop.The custom
evaluate
logic would fail to bail out and throw a null pointer exception instead.The fix was to check for that null value and bail out instead.
Also, internally there are some rare example of non-existent styles (
styles.unknown
) being used which can cause the Babel plugin to throw an error.Added a check to bail out instead of throwing an error for such cases and added a couple of test cases to verify that the fix works for
stylex()
,stylex.props()
andstylex.attrs()
.