Skip to content

Catch duplicate entries #100

@bebraw

Description

@bebraw

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions