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

Catch duplicate entries #100

Open
bebraw opened this issue May 22, 2016 · 0 comments
Open

Catch duplicate entries #100

bebraw opened this issue May 22, 2016 · 0 comments

Comments

@bebraw
Copy link
Contributor

bebraw commented May 22, 2016

Webpack will fail rather messily if you have an entry configuration like this:

{
  app: path.join(__dirname, 'app'),
  style: [
    path.join(__dirname, 'app')
  ],

This leads to

Error: module cannot be added as entry point, because it's already in the bundle

It would be a very good idea to check against this as it can be hard to notice and it's one of those checks we can make.

It would be possible to do something similar against the source too but that would be far harder to pull off and goes beyond the scope of this issue.

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

No branches or pull requests

1 participant