File tree Expand file tree Collapse file tree 2 files changed +49
-10
lines changed Expand file tree Collapse file tree 2 files changed +49
-10
lines changed Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"target" : " ES2020" ,
4
4
"useDefineForClassFields" : true ,
5
- "lib" : [" ES2020" , " DOM" , " DOM.Iterable" ],
5
+ "lib" : [
6
+ " ES2020" ,
7
+ " DOM" ,
8
+ " DOM.Iterable"
9
+ ],
6
10
"module" : " ESNext" ,
7
11
"skipLibCheck" : true ,
8
-
9
12
/* Bundler mode */
10
13
"moduleResolution" : " bundler" ,
11
14
"allowImportingTsExtensions" : true ,
12
15
"resolveJsonModule" : true ,
13
16
"isolatedModules" : true ,
14
17
"noEmit" : true ,
15
18
"jsx" : " react-jsx" ,
16
-
17
19
/* Linting */
18
20
"strict" : true ,
19
21
"noUnusedLocals" : true ,
20
22
"noUnusedParameters" : true ,
21
- "noFallthroughCasesInSwitch" : true
23
+ "noFallthroughCasesInSwitch" : true ,
24
+ "baseUrl" : " ." ,
25
+ "paths" : {
26
+ "#assets/*" : [
27
+ " src/assets/*"
28
+ ],
29
+ "#components/*" : [
30
+ " src/components/*"
31
+ ],
32
+ "#data/*" : [
33
+ " src/data/*"
34
+ ],
35
+ "#routes/*" : [
36
+ " src/routes/*"
37
+ ],
38
+ "#store/*" : [
39
+ " src/store/*"
40
+ ],
41
+ "#/*" : [
42
+ " src/*"
43
+ ]
44
+ }
22
45
},
23
- "include" : [" src" ],
24
- "references" : [{ "path" : " ./tsconfig.node.json" }]
25
- }
46
+ "include" : [
47
+ " src"
48
+ ],
49
+ "references" : [
50
+ {
51
+ "path" : " ./tsconfig.node.json"
52
+ }
53
+ ]
54
+ }
Original file line number Diff line number Diff line change 1
1
import react from '@vitejs/plugin-react-swc' ;
2
+ import dns from 'dns' ;
2
3
import { defineConfig } from 'vite' ;
4
+ import { ViteAliases } from 'vite-aliases' ;
5
+ import mkcert from 'vite-plugin-mkcert' ;
3
6
import svgr from 'vite-plugin-svgr' ;
4
7
5
- // https://vitejs.dev/config/
8
+ dns . setDefaultResultOrder ( 'verbatim' ) ;
9
+
6
10
export default defineConfig ( {
7
- plugins : [ react ( ) , svgr ( ) ] ,
11
+ plugins : [
12
+ react ( ) ,
13
+ svgr ( ) ,
14
+ mkcert ( ) ,
15
+ ViteAliases ( {
16
+ prefix : '#' ,
17
+ } ) ,
18
+ ] ,
8
19
server : {
9
20
port : 5555 ,
10
- strictPort : true ,
11
21
open : true ,
12
22
} ,
13
23
preview : {
You can’t perform that action at this time.
0 commit comments