Nuxt/packages/nuxt/src/app/entry.async.ts

12 lines
279 B
TypeScript
Raw Normal View History

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