mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
Small tweak
This commit is contained in:
parent
369707e23b
commit
267d001e3b
@ -39,12 +39,12 @@ export const executor = {
|
||||
get: webpack,
|
||||
};
|
||||
|
||||
export const makeStatsFromError = (err: string) =>
|
||||
(({
|
||||
export const makeStatsFromError: (err: string) => Stats = (err) =>
|
||||
({
|
||||
hasErrors: () => true,
|
||||
hasWarnings: () => false,
|
||||
toJson: () => ({ warnings: [] as any[], errors: [err] }),
|
||||
} as any) as Stats);
|
||||
} as any);
|
||||
|
||||
export const start: WebpackBuilder['start'] = async ({ startTime, options, router }) => {
|
||||
const config = await getConfig(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user