File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -48,21 +48,15 @@ function vueJsxPlugin(options = {}) {
4848 name : 'vite:vue-jsx' ,
4949
5050 config ( config ) {
51- const optionsApi = config . define
52- ? config . define . __VUE_OPTIONS_API__
53- : undefined
54- const devTools = config . define
55- ? config . define . __VUE_PROD_DEVTOOLS__
56- : undefined
5751 return {
5852 // only apply esbuild to ts files
5953 // since we are handling jsx and tsx now
6054 esbuild : {
6155 include : / \. t s $ /
6256 } ,
6357 define : {
64- __VUE_OPTIONS_API__ : optionsApi != null ? optionsApi : true ,
65- __VUE_PROD_DEVTOOLS__ : devTools != null ? devTools : false
58+ __VUE_OPTIONS_API__ : config . define ?. __VUE_OPTIONS_API__ ?? true ,
59+ __VUE_PROD_DEVTOOLS__ : config . define ?. __VUE_PROD_DEVTOOLS__ ?? false
6660 }
6761 }
6862 } ,
You can’t perform that action at this time.
0 commit comments