-
Notifications
You must be signed in to change notification settings - Fork 588
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
[heft-webpack5-plugin] Upgrade to webpack-dev-server 4.x #2872
[heft-webpack5-plugin] Upgrade to webpack-dev-server 4.x #2872
Conversation
cachedAssets: false, | ||
colors: supportsColor | ||
} | ||
}, |
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.
Overall this LGTM.
@iclanton we good with this config change?
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.
Yeah seems fine.
...s/@rushstack/heft-webpack5-plugin/bartvandenende-wm-webpack-dev-update_2021-08-24-16-18.json
Outdated
Show resolved
Hide resolved
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.
Approved with suggestions.
…wm-webpack-dev-update_2021-08-24-16-18.json Co-authored-by: Ian Clanton-Thuon <[email protected]>
...s/@rushstack/heft-webpack5-plugin/bartvandenende-wm-webpack-dev-update_2021-08-24-16-18.json
Outdated
Show resolved
Hide resolved
…wm-webpack-dev-update_2021-08-24-16-18.json
Summary
This PR updates webpack-dev-server from 3.x to version 4.x to which brings official webpack 5.x support.
Details
impact
There are several breaking changes when migrating to webpack-dev-server 4.x, a full migration guide is available below:
https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
To reduce the change impact this update has only been applied for the
heft-webpack5-plugin
plugin, though per above could in theory also be ported to heft-webpack4-plugin.background
The usage of webpack-dev-server 3.x was 'mostly' compatible with webpack 5.x , but there where a number of open issues that only have only been addressed in webpack-dev-server 4.x.
It has been a longer recommendation from the webpack-dev-server team to use the 4.x beta or RC builds, though due to lack of type declarations these could not be used. As of last week the official 4.0 version has been published including the types.
what does it fix
An example of an issue that is resolved is with this upgrade is the support of HMR for projects that targeted ES5 codebase: #2818
code change
package.json
to update webpack-dev-server and the typesHow it was tested
Running
rush install
andrush rebuild
to re-run all existing tests.