mirror of
https://github.com/Equicord/Equicord.git
synced 2025-05-11 18:05:37 +02:00
Add shortcut for lazy loading chunks
This commit is contained in:
parent
8fd5d068da
commit
ed5ae2ba5c
8 changed files with 191 additions and 162 deletions
|
@ -241,17 +241,26 @@ page.on("console", async e => {
|
|||
error: await maybeGetError(e.args()[3]) ?? "Unknown error"
|
||||
});
|
||||
|
||||
break;
|
||||
case "LazyChunkLoader:":
|
||||
console.error(await getText());
|
||||
|
||||
switch (message) {
|
||||
case "A fatal error occurred:":
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
break;
|
||||
case "Reporter:":
|
||||
console.error(await getText());
|
||||
|
||||
switch (message) {
|
||||
case "A fatal error occurred:":
|
||||
process.exit(1);
|
||||
case "Webpack Find Fail:":
|
||||
process.exitCode = 1;
|
||||
report.badWebpackFinds.push(otherMessage);
|
||||
break;
|
||||
case "A fatal error occurred:":
|
||||
process.exit(1);
|
||||
case "Finished test":
|
||||
await browser.close();
|
||||
await printReport();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue