Nuxt/packages/nuxt/src/app/entry.async.ts
2022-04-20 10:52:39 +02:00

12 lines
266 B
TypeScript

import { CreateOptions } from '#app'
const entry = process.server
? (ctx?: CreateOptions['ssrContext']) => import('#app/entry').then(m => m.default(ctx))
: () => import('#app/entry').then(m => m.default)
if (process.client) {
entry()
}
export default entry