Closed otakustay closed 3 years ago
Peer dependencies are just a hint on what version of the library works with the plugin
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
babel-plugin-styled-components
has a peer dependency of"styled-components": ">= 2"
, however it seems to work perfectly withoutstyled-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.