-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Up webpack, dev-server, merge, eslint-plugin-compat, react-dev-utils add webpack to peer #1180
Up webpack, dev-server, merge, eslint-plugin-compat, react-dev-utils add webpack to peer #1180
Conversation
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.
Thanks for the PR!
package.json
Outdated
}, | ||
"peerDependencies": { | ||
"react": ">=15", | ||
"react-dom": ">=15" | ||
"react-dom": ">=15", | ||
"webpack": ">=4" |
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.
webpack isn't in peerDependencies to support tools like Create React App that have their own webpack. We have a version check to be sure that the user has the supported webpack 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.
if the user does not use webpack. he will see install:
warning "react-styleguidist > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "react-styleguidist > [email protected]" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
warning "react-styleguidist > webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
if build:
Webpack is required for Styleguidist, please add it to your project:
npm install --save-dev webpack
See how to configure it for your style guide:
https://react-styleguidist.js.org/docs/webpack.html
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I thought it was true to talk about this dependency when installing.
Ok I will remove from peer.
…react-dev-utils add webpack to peer
3fc6c75
to
0169b98
Compare
## Breaking changes ### Drop webpack 3 support Webpack 3 is no longer supported, webpack 4 is the minimum required version. As a side effect you shouldn’t see any webpack warnings when you run Styleguidist. We’ve also replaced no longer maintainer uglify-es with Terser to minify production JavaScript bundle. * #1175, #1178 by @derz * #1165 by @elevatebart * #1148 by @elevatebart * #915, #1023 by @stepancar * #1180 by @AndreyGladkov
😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature. |
yarn install shows warnings
Remote Code Execution in
react-dev-utils
Add webpack to peerDependencies.