We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4701dcb commit 2dbc286Copy full SHA for 2dbc286
src/loader.mjs
@@ -29,11 +29,13 @@ const createLoader = () => {
29
);
30
31
const progressBar = createProgressBar('Loading files');
32
+
33
progressBar.start(resolvedFiles.length, 0);
34
35
return resolvedFiles.map(async filePath => {
36
const fileContents = await readFile(filePath, 'utf-8');
37
progressBar.increment();
38
39
// normally we stop the progress bar when the loop is done
40
// but here we return the loop so we need to stop it when the last file is loaded
41
if (progressBar.value === progressBar.total) {
0 commit comments