From 4533910bce394e7a0ee6debfc05ca1221ee51899 Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 24 Oct 2026 15:57:01 +0200 Subject: Astra! --- vite.config.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 935dce8..08cb8e5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,16 @@ -import { defineConfig } from 'vitest/config'; +import { defineConfig } from 'vite'; export default defineConfig({ - // Keep original question/answer links navigable in production. - build: { assetsInlineLimit: 0 }, - test: { include: ['src/**/*.test.ts'] }, + build: { + rolldownOptions: { + output: { + codeSplitting: { + groups: [ + { name: 'three', test: /node_modules\/three\// }, + { name: 'math', test: /node_modules\/katex\// }, + ], + }, + }, + }, + }, }); -- cgit v1.2.3