mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 15:18:50 +01:00
🔧 chore: Remove rollup-plugin-visualizer
This commit is contained in:
parent
939b4ce659
commit
c517f668fc
3 changed files with 14 additions and 79 deletions
|
|
@ -2,7 +2,6 @@ import path from 'path';
|
|||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import { visualizer } from 'rollup-plugin-visualizer';
|
||||
import { compression } from 'vite-plugin-compression2';
|
||||
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
||||
import type { Plugin } from 'vite';
|
||||
|
|
@ -93,15 +92,7 @@ export default defineConfig(({ command }) => ({
|
|||
compression({
|
||||
threshold: 10240,
|
||||
}),
|
||||
process.env.VITE_BUNDLE_ANALYSIS === 'true' &&
|
||||
visualizer({
|
||||
filename: 'dist/bundle-analysis.html',
|
||||
open: true,
|
||||
gzipSize: true,
|
||||
brotliSize: true,
|
||||
template: 'treemap', // 'treemap' | 'sunburst' | 'network'
|
||||
}),
|
||||
].filter(Boolean),
|
||||
],
|
||||
publicDir: command === 'serve' ? './public' : false,
|
||||
build: {
|
||||
sourcemap: process.env.NODE_ENV === 'development',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue