mirror of https://github.com/webpack/webpack.git
refactor: remove unused code (#19850)
This commit is contained in:
parent
8ea693e6a0
commit
8092e42124
|
@ -3989,12 +3989,10 @@ Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
|
|||
if (name) {
|
||||
const entrypoint = this.namedChunkGroups.get(name);
|
||||
if (entrypoint instanceof Entrypoint) {
|
||||
if (entrypoint !== undefined) {
|
||||
if (module) {
|
||||
entrypoint.addOrigin(module, loc, request);
|
||||
}
|
||||
return entrypoint;
|
||||
}
|
||||
} else if (entrypoint) {
|
||||
throw new Error(
|
||||
`Cannot add an async entrypoint with the name '${name}', because there is already an chunk group with this name`
|
||||
|
|
Loading…
Reference in New Issue