mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
22 lines
374 B
TypeScript
22 lines
374 B
TypeScript
import type {Stats, MultiStats} from 'webpack';
|
|
|
|
export function runner(error?: Error | null, stats?: Stats | MultiStats) {
|
|
/* eslint-disable no-console */
|
|
if (error) {
|
|
console.error(error);
|
|
return;
|
|
}
|
|
|
|
if (!stats) {
|
|
return;
|
|
}
|
|
|
|
console.log(
|
|
stats.toString({
|
|
chunks: false,
|
|
colors: true,
|
|
}),
|
|
);
|
|
/* eslint-enable no-console */
|
|
}
|