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: Align Vite Build Config With Native ESM (#15495)

Danny Avila29e9d08163ce
diff --git a/client/src/components/Chat/Input/TokenUsage/Breakdown.tsx b/client/src/components/Chat/Input/TokenUsage/Breakdown.tsx
index 7a445e37fa..53959fafc9 100644
--- a/client/src/components/Chat/Input/TokenUsage/Breakdown.tsx
+++ b/client/src/components/Chat/Input/TokenUsage/Breakdown.tsx
@@ -204,7 +204,7 @@ export default function Breakdown({
: formatTokens(usedTokens)}
<ChevronDown
aria-hidden="true"
- className="ease-[cubic-bezier(0,0,0.2,1)] size-3.5 shrink-0 text-text-tertiary transition-transform duration-300 group-data-[state=open]:rotate-180 motion-reduce:transition-none"
+ className="size-3.5 shrink-0 text-text-tertiary transition-transform duration-300 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none"
/>
</span>
</CollapsibleTrigger>
diff --git a/client/vite.config.ts b/client/vite.config.ts
index a260f96369..4f39f2653c 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -85,7 +85,7 @@ export default defineConfig(({ command }) => ({
this.emitFile({
type: 'asset',
fileName: 'sw-heal.js',
- source: fs.readFileSync(path.resolve(__dirname, 'sw/heal.js'), 'utf8'),
+ source: fs.readFileSync(path.resolve(import.meta.dirname, 'sw/heal.js'), 'utf8'),
});
},
},
@@ -422,8 +422,8 @@ export default defineConfig(({ command }) => ({
},
resolve: {
alias: {
- '~': path.join(__dirname, 'src/'),
- $fonts: path.resolve(__dirname, 'public/fonts'),
+ '~': path.join(import.meta.dirname, 'src/'),
+ $fonts: path.resolve(import.meta.dirname, 'public/fonts'),
'micromark-extension-math': 'micromark-extension-llm-math',
},
},