When build-time optimizations are enabled (both babel and webpack plugins), passing an empty string as the value of a CSS property generates a void 0 style that can cause errors when inserted into the stylesheet in certain environments.
For example, the code:
import { makeStyles } from '@griffel/react';
export const useStyles = makeStyles({
test: {
color: '',
},
});
Produces output:
import { __styles } from '@griffel/react';
export const useStyles = /*#__PURE__*/__styles({
"test": {
"sj55zd": "fsj55zd"
}
}, {
"d": [void 0]
});
//# sourceMappingURL=useTestStyles.js.map
This is the error being thrown for a similar style in an app:

A possible solution would be to ignore rules like this, similar to how we ignore undefined values being passed to a property.
When build-time optimizations are enabled (both babel and webpack plugins), passing an empty string as the value of a CSS property generates a
void 0style that can cause errors when inserted into the stylesheet in certain environments.For example, the code:
Produces output:
This is the error being thrown for a similar style in an app:
A possible solution would be to ignore rules like this, similar to how we ignore
undefinedvalues being passed to a property.