File tree Expand file tree Collapse file tree 3 files changed +305
-19
lines changed Expand file tree Collapse file tree 3 files changed +305
-19
lines changed Original file line number Diff line number Diff line change 55
55
},
56
56
"devDependencies" : {
57
57
"@cypress/code-coverage" : " 3.14.1" ,
58
+ "@vitejs/plugin-react" : " 4.4.1" ,
58
59
"@vitejs/plugin-vue" : " 5.2.4" ,
59
60
"@vitest/coverage-istanbul" : " 3.1.3" ,
60
61
"@vue/test-utils" : " 2.4.6" ,
Original file line number Diff line number Diff line change 18
18
import { defineConfig } from 'vite'
19
19
import vue from '@vitejs/plugin-vue'
20
20
import vuetify from 'vite-plugin-vuetify'
21
+ import react from '@vitejs/plugin-react'
21
22
import eslint from 'vite-plugin-eslint'
22
23
import IstanbulPlugin from 'vite-plugin-istanbul'
23
24
import dns from 'dns'
@@ -33,6 +34,8 @@ export default defineConfig(({ mode }) => {
33
34
eslint ( {
34
35
failOnError : mode === 'production'
35
36
} ) ,
37
+ // GraphiQL is a React app:
38
+ react ( ) ,
36
39
]
37
40
38
41
if ( mode !== 'production' && process . env . COVERAGE ) {
@@ -56,6 +59,7 @@ export default defineConfig(({ mode }) => {
56
59
'@' : path . resolve ( __dirname , './src' ) ,
57
60
$tests : path . resolve ( __dirname , './tests' ) ,
58
61
lodash : 'lodash-es' ,
62
+ // GraphiQL is a React app (use Preact as it's smaller):
59
63
react : 'preact/compat' ,
60
64
'react-dom' : 'preact/compat' ,
61
65
}
You can’t perform that action at this time.
0 commit comments