-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathvite.config.js
More file actions
36 lines (35 loc) · 918 Bytes
/
Copy pathvite.config.js
File metadata and controls
36 lines (35 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
import { exampleImportPlugin } from './scripts/vite/example-import.js';
import {
minifiedSizeAnalyzingPlugin,
manualChunksForAnalyzing
} from './scripts/vite/minified-size-analyzing.js';
/** @type {import('vite').UserConfig} */
export default defineConfig({
plugins: [sveltekit(), exampleImportPlugin(), minifiedSizeAnalyzingPlugin()],
optimizeDeps: {
include: ['highlight.js', 'highlight.js/lib/core']
},
esbuild: {
legalComments: 'none'
},
build: {
minify: true,
reportCompressedSize: true,
rollupOptions: {
output: {
manualChunks: manualChunksForAnalyzing
}
}
},
ssr: {
noExternal: []
},
test: {
include: ['tests/unit/**/*.{test,spec}.{js,ts}'],
benchmark: {
include: ['tests/benchmarks/**/*.{bench,benchmark}.{js,ts}']
}
}
});