-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use emotion instead of glamor as the backing library #91
Comments
it seems to be a big change, forcing users to change their dependencies. |
Hi @giraud. thanks for the work you've done on this project. This project is the biggest css in bucklescript project right? It's been a dream to work with. I think it's important to rally around the existing project instead of forking. The switch is easier to sell because the interface doesn't change, #92 is largely quality of life changes.
|
These are good arguments. Are you aware of any performance differences between the two libraries ? I'm thinking that there might be a way we could have a functor to create a Glamor module and an Emotion module from the same interface and keep some backward compatibility. |
I might dig in between the two on the weekend over this.
At least for now, for webpack users, aliasing emotion -> glamor would work for those continuing using glamor. The one spot where it would not work is the merge function. That's probably critical though. #92 potentially could be reworked to support both emotion and glamor's style merging (i.e. not using |
I played with the idea of having different backends : I pushed that test in the backend branch. |
@giraud I think that’s unnecessarily complicated. The author of glamor seems to now recommend using emotion (threepointone/glamor#360 (comment)) so I think the maintainers of |
And if we do a major release we could also do a breaking change to the |
ok, I'm with the move to emotion with a major update. |
Since #94 has been merged in, I'm going to close this. |
The last commit for glamor was over a year ago..
In the issue thread linked above, the maintainer mentions that emotion has mostly the same API. This mostly seems to be true, the differences being stuff around rule insertion and
@fontface
.The text was updated successfully, but these errors were encountered: