-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
33 lines (32 loc) · 991 Bytes
/
vite.config.js
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
import legacy from '@vitejs/plugin-legacy';
import react from '@vitejs/plugin-react';
import path from 'path';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@components': path.resolve(__dirname, './src/components'),
'@demos': path.resolve(__dirname, './src/demos'),
'@icons': path.resolve(__dirname, './src/components/lib/icons'),
'@styles': path.resolve(__dirname, './src/styles'),
'@transitions': path.resolve(__dirname, './src/components/utils/transitions'),
'@BaseList': path.resolve(__dirname, './src/Components/Display/List/BaseList')
}
},
plugins: [
react({
babel: {
plugins: ['babel-plugin-styled-components', 'babel-plugin-macros']
},
exclude: /\.stories\.(t|j)sx?$/
}),
legacy({
targets: ['defaults', 'not IE 11']
})
],
esbuild: {
logLevel: 'error'
}
});