mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix: _interopDefault potential cjs files
This commit is contained in:
parent
0b886cf57f
commit
4f09b514f1
@ -4,14 +4,16 @@ import config from './config'
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { renderToString } from '~renderer'
|
import { renderToString } from '~renderer'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import server from '~build/dist/server/server'
|
import createApp from '~build/dist/server/server'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import clientManifest from '~build/dist/server/client.manifest.json'
|
import clientManifest from '~build/dist/server/client.manifest.json'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import htmlTemplate from '~build/views/document.template.js'
|
import htmlTemplate from '~build/views/document.template.js'
|
||||||
|
|
||||||
const renderer = createRenderer(server, {
|
function _interopDefault (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e } }
|
||||||
clientManifest,
|
|
||||||
|
const renderer = createRenderer(_interopDefault(createApp), {
|
||||||
|
clientManifest: _interopDefault(clientManifest),
|
||||||
renderToString
|
renderToString
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user