Skip to content
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

"browserslist" is missing as target to auto-inject client/hot runtimes #2980

Closed
1 of 2 tasks
cdoublev opened this issue Jan 29, 2021 · 2 comments
Closed
1 of 2 tasks

Comments

@cdoublev
Copy link

  • Operating System: Debian Buster
  • Node Version: 15.5.0
  • NPM Version: 7.3.0
  • webpack Version: 5.18.0
  • webpack-dev-server Version: 3.11.2 / 4.0.0-beta-0
  • Browser: Chrome
  • This is a bug
  • This is a modification request

Code

https://github.com/cdoublev/webpack-dev-server-issue

Expected Behavior

Hot Module Replacement enabled.

Actual Behavior

Waiting for update signal from WDS.

For Bugs; How can we reproduce the behavior?

Run npm start after cloning the repo, and open console.

Additional

I believe 'browserslist (default webpack config target) is missing here (3.11.2) and here (4 beta), as well as in the corresponding tests.

@alexander-akait
Copy link
Member

https://github.com/webpack/webpack-dev-server/blob/master/lib/utils/DevServerPlugin.js#L132 this code for webpack@4, no browserslist target in webpack v4, for webpack@5 we use https://github.com/webpack/webpack-dev-server/blob/master/lib/utils/DevServerPlugin.js#L131, webpack-dev-server v3 has some limitations with webpack@5, we are working on stable webpack-dev-server v4, release will be soon

@cdoublev
Copy link
Author

Alright, thank you, and sorry for the wrong report concerning wepback@v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants