Skip to content

Commit 6d977c9

Browse files
refactor(types): leave the unreachable concatenation branch as it was
1 parent 40ef06b commit 6d977c9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎lib/optimize/ConcatenatedModule.js‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,11 +3032,8 @@ ${defineGetters}`
30323032
break;
30333033
}
30343034
default:
3035-
throw new Error(
3036-
`Unsupported concatenation entry type ${
3037-
/** @type {{ type: string }} */ (info).type
3038-
}`
3039-
);
3035+
// @ts-expect-error never is expected here
3036+
throw new Error(`Unsupported concatenation entry type ${info.type}`);
30403037
}
30413038
// Building a wrapped module's interop object here would evaluate its body
30423039
// at the top level and break require() cycles, so it is deferred behind a

0 commit comments

Comments
 (0)