aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
blob: 08cb8e5bf8bf07e512b6a0910f34ba7c50c656b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { defineConfig } from 'vite';

export default defineConfig({
  build: {
    rolldownOptions: {
      output: {
        codeSplitting: {
          groups: [
            { name: 'three', test: /node_modules\/three\// },
            { name: 'math', test: /node_modules\/katex\// },
          ],
        },
      },
    },
  },
});