-
-
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
[Webpack 5] webpack dev server client entry is being returned instead of the main entry when outputting a library. #2719
Comments
Feel free to send a PR |
I managed to make it work when I moved |
Can you try #2699? |
It's wrong to prepend original entry points to additional ones like done in this pr. |
Possible duplicate of #2484? |
Indeed it is. |
Bug report
What is the current behavior?
When building a library in dev mode (via
webpack-dev-server
) the dev server client is being returned as a library (which is actually an empty object as the client does not export anything).If the current behavior is a bug, please provide the steps to reproduce.
Use
library: 'MainLib'
for example and runnpx webpack-dev-server
.Observe returned library is an empty object.
Running
npx webpack
does not have this issue.Repro:
https://github.com/dmitrysteblyuk/webpack-entry-point-bug-repro
When you run
npx webpack-dev-server
you can check the./dist/main.js.
.It will be like this (dev client entry is returned):
What is the expected behavior?
The provided main entry is returned as a library.
Other relevant information:
webpack version: ^5.0.0-beta.28
Node.js version: v13.12.0
Operating System: Mac OS X 10.15.5
Additional tools:
webpack-dev-server: ^3.11.0
webpack-cli: ^3.3.12
The text was updated successfully, but these errors were encountered: