Skip to content

Commit

Permalink
fix ssr plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
csr632 committed Dec 17, 2022
1 parent 32bea78 commit 34c1091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-pages/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export const IS_SSR = process.env.VITE_PAGES_IS_SSR === 'true'
*/
export function registerSSRPlugin(importSSRPlugin: () => Promise<SSRPlugin>) {
const impl = (global as any)['register_vite_pages_ssr_plugin']
return impl(importSSRPlugin)
return impl?.(importSSRPlugin)
}

0 comments on commit 34c1091

Please sign in to comment.