Skip to content
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

Merged
merged 3 commits into from
Oct 23, 2018
Merged

Conversation

montezume
Copy link
Contributor

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.

@montezume montezume self-assigned this Oct 23, 2018
// 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,
Copy link
Contributor Author

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?

Copy link
Member

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 😉

Copy link
Contributor Author

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.

Drops direct usage of emotion. Drops emotion as a peer-dep as we're not using it directly anymore.
Copy link
Contributor

@dferber90 dferber90 left a 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,
Copy link
Member

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 😉

@dferber90 dferber90 merged commit 869a036 into master Oct 23, 2018
@dferber90 dferber90 deleted the ml-replace-sc branch October 23, 2018 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants