diff options
| author | victor | 2026-10-24 15:57:01 +0200 |
|---|---|---|
| committer | victor | 2026-10-24 15:57:01 +0200 |
| commit | 4533910bce394e7a0ee6debfc05ca1221ee51899 (patch) | |
| tree | 73aaa5b2c7a48dbf226e6b81d499ba1a8ecc33a1 /vite.config.ts | |
| parent | Tilføj dansk (diff) | |
| download | 3D-Electrophysics-ny-start.tar.gz 3D-Electrophysics-ny-start.zip | |
Astra!ny-start
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\// }, + ], + }, + }, + }, + }, }); |