Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

React and ReactMotion should be peerDependencies #159

Merged
merged 1 commit into from
Oct 31, 2016
Merged

Conversation

pirelenito
Copy link
Contributor

Otherwise we might bundle two distinct versions of React due to the way npm installs dependencies.

Otherwise we might bundle two distinct versions of React due to the way NPM install dependencies.
@pirelenito
Copy link
Contributor Author

I guess the idea is that any "big enough" library should be turned into a peerDependency.

@pirelenito
Copy link
Contributor Author

React was introduced as a dependency recently at https://github.com/klarna/ui/pull/139/files

Copy link
Contributor

@xaviervia xaviervia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can talk later what approach is correct but this is what it was expected by the consumers and used up until now.

@xaviervia xaviervia merged commit 309f81a into master Oct 31, 2016
@xaviervia xaviervia deleted the fix-dependencies branch October 31, 2016 15:50
@joaomilho
Copy link

Yes, I removed react as a peerDependency so if one uses Preact he doesn't even need to install it... but if you know this is really needed, ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants