forked from wger-project/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 712 Bytes
/
vite.config.ts
File metadata and controls
29 lines (28 loc) · 712 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
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import viteTsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig(() => {
return {
build: {
outDir: 'build',
},
server: {
open: true,
port: 3000,
},
plugins: [
react({
jsxImportSource: '@emotion/react',
babel: {
plugins: ['@emotion/babel-plugin'],
},
}),
viteTsconfigPaths(),
],
test: {
environment: 'jsdom',
globals: true,
setupFiles: './src/tests/setup.ts',
},
};
});