File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -221,18 +221,18 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
221221 dedupe : config . build ?. ssr ? [ ] : [ 'vue' ] ,
222222 } ,
223223 define : {
224- __VUE_OPTIONS_API__ :
225- ( options . value . features ?. optionsAPI ||
226- config . define ?. __VUE_OPTIONS_API__ ) ??
227- true ,
228- __VUE_PROD_DEVTOOLS__ :
229- ( options . value . features ?. prodDevtools ||
230- config . define ?. __VUE_PROD_DEVTOOLS__ ) ??
231- false ,
232- __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ :
233- ( options . value . features ?. prodHydrationMismatchDetails ||
234- config . define ?. __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ) ??
235- false ,
224+ __VUE_OPTIONS_API__ : ! ! (
225+ ( options . value . features ?. optionsAPI ?? true ) ||
226+ config . define ?. __VUE_OPTIONS_API__
227+ ) ,
228+ __VUE_PROD_DEVTOOLS__ : ! ! (
229+ options . value . features ?. prodDevtools ||
230+ config . define ?. __VUE_PROD_DEVTOOLS__
231+ ) ,
232+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ : ! ! (
233+ options . value . features ?. prodHydrationMismatchDetails ||
234+ config . define ?. __VUE_PROD_HYDRATION_MISMATCH_DETAILS__
235+ ) ,
236236 } ,
237237 ssr : {
238238 // @ts -ignore -- config.legacy.buildSsrCjsExternalHeuristics will be removed in Vite 5
You can’t perform that action at this time.
0 commit comments