Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🔧 chore: Remove `rollup-plugin-visualizer`

Danny Avilac517f668fc42
diff --git a/client/package.json b/client/package.json
index 8e4be78764..7cb983d218 100644
--- a/client/package.json
+++ b/client/package.json
@@ -139,7 +139,6 @@
"postcss": "^8.4.31",
"postcss-loader": "^7.1.0",
"postcss-preset-env": "^8.2.0",
- "rollup-plugin-visualizer": "^6.0.0",
"tailwindcss": "^3.4.1",
"ts-jest": "^29.2.5",
"typescript": "^5.3.3",
diff --git a/client/vite.config.ts b/client/vite.config.ts
index e1fe5aded5..98451b6c06 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -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',
diff --git a/package-lock.json b/package-lock.json
index fa49421c86..2a863009ef 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2632,7 +2632,6 @@
"postcss": "^8.4.31",
"postcss-loader": "^7.1.0",
"postcss-preset-env": "^8.2.0",
- "rollup-plugin-visualizer": "^6.0.0",
"tailwindcss": "^3.4.1",
"ts-jest": "^29.2.5",
"typescript": "^5.3.3",
@@ -19835,6 +19834,19 @@
"sparse-bitfield": "^3.0.3"
}
},
+ "node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/@node-saml/node-saml": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@node-saml/node-saml/-/node-saml-5.0.0.tgz",
@@ -19932,19 +19944,6 @@
"node": ">=0.6.0"
}
},
- "node_modules/@noble/hashes": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
- "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^14.21.3 || >=16"
- },
- "funding": {
- "url": "https://paulmillr.com/funding/"
- }
- },
"node_modules/@node-saml/passport-saml": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@node-saml/passport-saml/-/passport-saml-5.0.0.tgz",
@@ -41160,60 +41159,6 @@
"node": ">= 10.0.0"
}
},
- "node_modules/rollup-plugin-visualizer": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-6.0.0.tgz",
- "integrity": "sha512-9aXBJh1uzI6XNmAeATox2z5MWrEPzL6hQgEMOYxTltWOy5x2ycQCec0Y9fC19sBgf3FvIF36aG9DrvUcdnXPew==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "open": "^10.1.2",
- "picomatch": "^4.0.2",
- "source-map": "^0.7.4",
- "yargs": "^17.5.1"
- },
- "bin": {
- "rollup-plugin-visualizer": "dist/bin/cli.js"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "rolldown": "1.x",
- "rollup": "2.x || 3.x || 4.x"
- },
- "peerDependenciesMeta": {
- "rolldown": {
- "optional": true
- },
- "rollup": {
- "optional": true
- }
- }
- },
- "node_modules/rollup-plugin-visualizer/node_modules/picomatch": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
- "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/rollup-plugin-visualizer/node_modules/source-map": {
- "version": "0.7.4",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
- "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">= 8"
- }
- },
"node_modules/router": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",