Open eugef opened 5 years ago
prop-types are used in prod build, but react-dom is not. So they have to be in deps. Alternatively in peer deps
react
is also used in prod build but it is not in dependencies
list. This makes sense and allows to avoid transitive dependencies and ending up with multiple instances of react
in one project.
The same approach should work for prop-types
- moving it to devDependencies
and peerDependencies
yeah, peer deps would do just fine
@nkbt please review my PR #56
As
react
andreact-dom
are already defined asdevDependencies
i propose to to the same withprop-types
.Are there any cons?