Is styled-components peer dependency actually required?
otakustay opened this issue · 2 comments
otakustay commented
babel-plugin-styled-components
has a peer dependency of "styled-components": ">= 2"
, however it seems to work perfectly without styled-components
installed.
This can be a confusing issue when we provides a team-wide universal babel config, our developers may or may not use styled-components
in their apps, but we're trying to satisfy all situation so we have to include this plugin.
quantizor commented
Peer dependencies are just a hint on what version of the library works with the plugin
otakustay commented
If this is the only purpose, can we add a peerDependenciesMeta to mark it as optional? If acceptable I'm going to create a pull request for it