-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
35 lines (33 loc) · 1.21 KB
/
vite.config.ts
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
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import eslintPlugin from 'vite-plugin-eslint';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), eslintPlugin()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/tests/setup.ts']
},
resolve: {
alias: {
Assets: path.resolve(__dirname, './src/assets'),
Components: path.resolve(__dirname, './src/components'),
Elements: path.resolve(__dirname, './src/elements'),
Features: path.resolve(__dirname, './src/features'),
Hooks: path.resolve(__dirname, './src/hooks'),
Libs: path.resolve(__dirname, './src/libs'),
Pages: path.resolve(__dirname, './src/pages'),
Routes: path.resolve(__dirname, './src/routes'),
Services: path.resolve(__dirname, './src/services'),
State: path.resolve(__dirname, './src/state'),
Stories: path.resolve(__dirname, './src/stories'),
Tests: path.resolve(__dirname, './src/tests'),
Types: path.resolve(__dirname, './src/types'),
Utils: path.resolve(__dirname, './src/utils')
}
}
});