-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathvite.config.mts
More file actions
26 lines (25 loc) · 614 Bytes
/
vite.config.mts
File metadata and controls
26 lines (25 loc) · 614 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
import { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
build: {
target: 'esnext',
lib: {
entry: 'src/index.ts',
name: 'magick-wasm',
fileName: 'index',
},
},
test: {
globals: true,
setupFiles: './tests/custom-environment.ts',
logHeapUsage: true,
testTimeout: 60000,
isolate: true,
},
resolve: {
alias: {
'@src': resolve(__dirname, './src'),
'@test': resolve(__dirname, './tests'),
},
},
});