You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only defined properties that have class rest are all added to the output.
Expected behavior
It would be great to clean up this unnecessary CSS Properties from the bundle output. This is not affecting any UI or causing issue, its just end up in the final bundle which essentially increases the bundle size.
Steps to reproduce
Rollup
JavaScript(No framework)
@stylexjs/rollup-plugin
I defined stylex CSS with create API and used @stylexjs/rollup-plugin plugin. The output looked like above.
Test case
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Unless I'm mistaken, I think this behavior is intended in order to ensure that the last style always wins. It seems to be setting null here in order to override more specific styles that potentially come from other stylex.create() calls that are passed in.
if you had some styles that define background color
Setting these nulls allows you to use the less specific styles last, and still have them apply because lessSpecificStyles.container will set backgroundColor to null when it builds.
Describe the issue
CSS Properties that are not defined end up in the bundle output. Don't know if its a known issue.
E.g.
I only defined properties that have
class
rest are all added to the output.Expected behavior
It would be great to clean up this unnecessary CSS Properties from the bundle output. This is not affecting any UI or causing issue, its just end up in the final bundle which essentially increases the bundle size.
Steps to reproduce
I defined
stylex
CSS withcreate
API and used@stylexjs/rollup-plugin
plugin. The output looked like above.Test case
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered: