-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(package): use prop-types package #1576
Conversation
package.json
Outdated
@@ -56,7 +56,8 @@ | |||
"babel-runtime": "^6.22.0", | |||
"classnames": "^2.1.5", | |||
"debug": "^2.6.3", | |||
"lodash": "^4.17.2" | |||
"lodash": "^4.17.2", | |||
"prop-types": "^15.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this, however, I'm followed recommendation there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, however, let's update to the latest:
Note: there are known issues in versions before 15.5.7 so we recommend using it as the minimal version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to 15.5.7
👍
Codecov Report
@@ Coverage Diff @@
## master #1576 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 141 141
Lines 2384 2384
=======================================
Hits 2378 2378
Misses 6 6
Continue to review full report at Codecov.
|
7501080
to
78928fd
Compare
webpack.umd.config.js
Outdated
@@ -13,6 +13,7 @@ const webpackUMDConfig = { | |||
[pkg.name]: paths.src('umd.js'), | |||
}, | |||
externals: { | |||
'prop-types': 'PropTypes', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe per their instructions we should bundle propTypes with the code as a dependency. Otherwise, users will also have to make it globally available. I'll update this.
Just as a heads up, the Codepen is powered by the UMD build as well so any UMD changes also require updates there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, made one minor change. Will merge on pass.
Released in |
Fixes #1564.
Ref.