Skip to content

Commit

Permalink
chore: format (#5459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Oct 28, 2021
1 parent e6340c1 commit 0623832
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {

// Temporal handling for 2.7 breaking change
const isSSR = (opt: { ssr?: boolean } | boolean | undefined) =>
opt === undefined ? !!options.ssr :
(typeof opt === 'boolean' ? opt : opt?.ssr === true)
opt === undefined
? !!options.ssr
: typeof opt === 'boolean'
? opt
: opt?.ssr === true

return {
name: 'vite:vue',
Expand Down

0 comments on commit 0623832

Please sign in to comment.