Skip to content

Commit 0623832

Browse files
authored
chore: format (#5459)
1 parent e6340c1 commit 0623832

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: packages/plugin-vue/src/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
106106

107107
// Temporal handling for 2.7 breaking change
108108
const isSSR = (opt: { ssr?: boolean } | boolean | undefined) =>
109-
opt === undefined ? !!options.ssr :
110-
(typeof opt === 'boolean' ? opt : opt?.ssr === true)
109+
opt === undefined
110+
? !!options.ssr
111+
: typeof opt === 'boolean'
112+
? opt
113+
: opt?.ssr === true
111114

112115
return {
113116
name: 'vite:vue',

0 commit comments

Comments
 (0)