Commit 050ae04 1 parent 0836050 commit 050ae04 Copy full SHA for 050ae04
File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const PWAConfig = {
36
36
} ;
37
37
38
38
// https://vitejs.dev/config/
39
- export default defineConfig ( {
39
+ export default defineConfig ( ( { mode } ) => ( {
40
40
build : {
41
41
outDir : './build' ,
42
42
target : 'esnext' ,
@@ -57,7 +57,7 @@ export default defineConfig({
57
57
} ,
58
58
} ,
59
59
plugins : [
60
- eslint ( { cache : false , formatter : 'stylish' } ) ,
60
+ mode === 'development' && eslint ( ) ,
61
61
react ( ) ,
62
62
svgr ( { exportAsDefault : true } ) ,
63
63
VitePWA ( PWAConfig ) ,
@@ -67,10 +67,5 @@ export default defineConfig({
67
67
globals : true ,
68
68
environment : 'jsdom' ,
69
69
setupFiles : './tests/setup.js' ,
70
- server : {
71
- // Prevents Vitest from crashing when it
72
- // encounters a module that exports CSS.
73
- deps : { inline : true } ,
74
- } ,
75
70
} ,
76
- } ) ;
71
+ } ) ) ;
You can’t perform that action at this time.
0 commit comments