-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: replace styled-components with react-emotion #184
Conversation
// so that they do not end up in the bundle. | ||
// See also https://medium.com/@kelin2025/so-you-wanna-use-es6-modules-714f48b3a953 | ||
peerDepsExternal(), | ||
peerDepsExternal({ | ||
dependencies: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is a reasonable default for KCD, it's good enough for us?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't we had this before and then it got removed?
I'm fine having this btw 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I misunderstood how it worked 😢. I think it's better now. If we had UMD bundles, it would make sense to bundle non peer deps.
a9ea07c
to
67818fa
Compare
67818fa
to
fe39401
Compare
Drops direct usage of emotion. Drops emotion as a peer-dep as we're not using it directly anymore.
980a389
to
25bdce4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
// so that they do not end up in the bundle. | ||
// See also https://medium.com/@kelin2025/so-you-wanna-use-es6-modules-714f48b3a953 | ||
peerDepsExternal(), | ||
peerDepsExternal({ | ||
dependencies: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't we had this before and then it got removed?
I'm fine having this btw 😉
Summary
Storybook in production was broken since we removed
styled-components
.Approach
react-emotion
is pretty much a plug and play replacement for how we are using sc. Let's use that instead.