webpackbar
webpackbar copied to clipboard
Bar gets duplicated if a long line is printed during build
Environment
webpackbar: 7.0.0 Node: 22.14.0
Reproduction
In the playground example in the repo, change the setInterval at the end of webpack.config.dev to:
setTimeout(() => {
console.log("This is a verrrrrrrrrrryyyyyyyyyyy long message that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on");
}, 250);
Then resize your terminal so that it is fairly narrow (around 80 cols) and run the playground example. You will notice that after that line is logged, the progress bar starts getting duplicated:
Describe the bug
Webpackbar does not properly count extra lines that break to another line, so it does not clear the correct number of lines and results in duplicated progress bars.
Additional context
No response
+1 i noticed the same behavior. When fix will be delivered?
so many bars....
Yeah, I switched to using my modified version that I mentioned in the PR I submitted. Hopefully that gets reviewed and merged at some point so I can switch back to the official release.