Using the node API fails when app is bundled using @vercel/ncc #87
-
Hi friends!!!
Do you know if there is something that could be done from the vuepress side to work around this issue? This is the bundle script:
Versions:
For some reason, ncc doesn't seem to create the lib directory after it bundles things up. I'm running the script to build the docs using the node API. Looks a bit like this: import path from 'path'
import { createApp } from 'vuepress'
const buildDocs = async (space: string) => {
const source = path.resolve(__dirname, '.temp-docs')
const app = createApp({
source,
title: `${capitalize(space)} Documentation`,
description: `Documentation for ${capitalize(space)} space`,
base: '/',
themeConfig: {
sidebarDepth: 2,
sidebar: 'auto'
}
})
await app.init()
await app.prepare()
return app.build()
} Any help here is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So everything works well without If so, that could be an issue of |
Beta Was this translation helpful? Give feedback.
So everything works well without
@vercel/ncc
?If so, that could be an issue of
@vercel/ncc
. I'm not familiar with that project, but if you want to bundle your dist files, consider using rollup.