mirror of https://github.com/webpack/webpack.git
fix: inner graph
This commit is contained in:
parent
214f7cd9fe
commit
4474dc4307
|
|
@ -134,8 +134,9 @@ class InnerGraphPlugin {
|
|||
const fn = InnerGraph.tagTopLevelSymbol(parser, name);
|
||||
const decl = statement.declaration;
|
||||
if (
|
||||
decl.type === "ClassExpression" ||
|
||||
decl.type === "ClassDeclaration"
|
||||
(decl.type === "ClassExpression" ||
|
||||
decl.type === "ClassDeclaration") &&
|
||||
parser.isPure(decl, decl.range[0])
|
||||
) {
|
||||
classWithTopLevelSymbol.set(decl, fn);
|
||||
} else if (parser.isPure(decl, statement.range[0])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue