styled-components / babel-plugin-styled-components

Improve the debugging experience and add server-side rendering support to styled-components
MIT License
1.07k stars 140 forks source link

Is styled-components peer dependency actually required? #319

Closed otakustay closed 3 years ago

otakustay commented 3 years ago

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 3 years ago

Peer dependencies are just a hint on what version of the library works with the plugin

otakustay commented 3 years ago

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