visualizer.ts 391 B

1234567891011121314151617
  1. /**
  2. * Package file volume analysis
  3. */
  4. import visualizer from 'rollup-plugin-visualizer';
  5. import { isReportMode } from '../../utils';
  6. export function configVisualizerConfig() {
  7. if (isReportMode()) {
  8. return visualizer({
  9. filename: './node_modules/.cache/visualizer/stats.html',
  10. open: true,
  11. gzipSize: true,
  12. brotliSize: true,
  13. }) as Plugin;
  14. }
  15. return [];
  16. }