Fix bug with getModules()
This commit is contained in:
parent
9d9826434c
commit
983a55f8d3
|
@ -287,7 +287,7 @@ const WebpackModules = new class Webpack extends EventEmitter {
|
|||
if (!(all ? foundModule.length : foundModule)) continue;
|
||||
|
||||
if (!all) return process(foundModule, id);
|
||||
result.push(foundModule);
|
||||
result.push(...foundModule);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue