You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
heft-webpack5-plugin binds to webpack-dev-server3.11.x. It looks like 3.11.x currently only provides basic compatibility with webpack 5.0, as open issues are only being addressed in version 4.x.x.
This ticket is a request to consider to update the dependency of webpack-dev-server in heft-webpack5-plugin from @3.11.x to @4.0.x which provides official webpack 5 compatibility.
As 4.x.x. includes breaking changes and just hit the RC.0 status an alternative could be to 'loosen' the semver binding of webpack-dev-server to allow major version overrides on a project/rig basis.
Repro steps
An example of a failure case of webpack-dev-server [3.11.x] is to handle es5 targets properly with HMR:
it looks like @types/webpack-dev-server are not yet available for 4.x so this likely would be blocking the transition, there is some push for back-porting the fixes to 3.x but no clarity on that either per webpack/webpack-dev-server#3271
The missing typings might not be a huge issue, unless the API changed in nontrivial ways. Do you know if it changed? Is it enough to just bump the dependency version?
Summary
heft-webpack5-plugin
binds towebpack-dev-server
3.11.x. It looks like 3.11.x currently only provides basic compatibility with webpack 5.0, as open issues are only being addressed in version 4.x.x.This ticket is a request to consider to update the dependency of
webpack-dev-server
inheft-webpack5-plugin
from@3.11.x
to@4.0.x
which provides official webpack 5 compatibility.As 4.x.x. includes breaking changes and just hit the RC.0 status an alternative could be to 'loosen' the semver binding of webpack-dev-server to allow major version overrides on a project/rig basis.
Repro steps
An example of a failure case of
webpack-dev-server
[3.11.x] is to handle es5 targets properly with HMR:target: ['web', 'es5']
Reference:
webpack/webpack-dev-server#2961
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@rushstack/heft
version?node -v
)?The text was updated successfully, but these errors were encountered: