mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
Update dev-server.ts
This commit is contained in:
parent
25f87dd0b2
commit
8e752915bf
@ -172,6 +172,7 @@ const useProgressReporting = async (
|
||||
value = Math.max(newValue, value); // never go backwards
|
||||
const progress = { value, message: message.charAt(0).toUpperCase() + message.slice(1) };
|
||||
if (message === 'building') {
|
||||
// arg3 undefined in webpack5
|
||||
const counts = arg3 && arg3.match(/(\d+)\/(\d+)/) || [];
|
||||
const complete = parseInt(counts[1], 10);
|
||||
const total = parseInt(counts[2], 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user