diff options
Diffstat (limited to '')
| -rw-r--r-- | vite.config.ts | 17 |
1 files changed, 13 insertions, 4 deletions
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\// }, + ], + }, + }, + }, + }, }); |