Files
animate/webGl/my-threejs-test/node_modules/@parcel/utils/src/progress-message.js
2024-06-24 21:24:00 +12:00

23 lines
522 B
JavaScript

// @flow strict-local
import type {BuildProgressEvent} from '@parcel/types';
import path from 'path';
export function getProgressMessage(event: BuildProgressEvent): ?string {
switch (event.phase) {
case 'transforming':
return `Building ${path.basename(event.filePath)}...`;
case 'bundling':
return 'Bundling...';
case 'packaging':
return `Packaging ${event.bundle.displayName}...`;
case 'optimizing':
return `Optimizing ${event.bundle.displayName}...`;
}
return null;
}