-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade webpack from 1.15.0 to 2.2.0 #561
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"private": true, | ||
"name": "webpack-prod-fixture", | ||
"dependencies": { | ||
"webpack": "^1.14.0" | ||
"webpack": "^2.2.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR only upgrades the webpack dependency for the To fully address the security vulnerability and maintain consistency, the |
||
}, | ||
"scripts": { | ||
"build": "rm -f output.js && webpack --config config.js" | ||
|
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.
Upgrading webpack from v1 to v2 is a major version bump that introduces breaking changes. The current webpack configuration in
fixtures/packaging/webpack/prod/config.js
is not compatible with webpack v2 and will cause the build for this fixture to fail.Specifically, the
resolve.root
option used in the config has been removed in webpack v2. It should be replaced withresolve.modules
.The configuration file needs to be updated for this dependency upgrade to work. For example:
Without this change, the
yarn build
script for this fixture will fail.