diff --git a/web/vite.config.ts b/web/vite.config.ts index 493470b..468e7ff 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -6,6 +6,17 @@ export default defineConfig({ base: "./", build: { target: ["esnext", "firefox128"], + rollupOptions: { + output: { + manualChunks: id => { + if (id.includes("node_modules") && !id.includes("katex")) { + return "vendor" + } else if (id.endsWith("/emoji/data.json")) { + return "emoji" + } + }, + }, + }, }, plugins: [ react(),