ensure entry signatures

pull/14/head
Evan You 5 years ago
parent 7beb172b00
commit 4b2d6083fe

@ -86,9 +86,13 @@ export async function bundle(
// the loading is done via filename conversion rules so that the // the loading is done via filename conversion rules so that the
// metadata doesn't need to be included in the main chunk. // metadata doesn't need to be included in the main chunk.
input: [path.resolve(APP_PATH, 'index.js'), ...pages], input: [path.resolve(APP_PATH, 'index.js'), ...pages],
// important so that each page chunk and the index export things for each
// other
preserveEntrySignatures: 'allow-extension',
plugins: [VitePressPlugin, ...(rollupInputOptions.plugins || [])] plugins: [VitePressPlugin, ...(rollupInputOptions.plugins || [])]
}, },
rollupOutputOptions, rollupOutputOptions,
silent: !process.env.DEBUG,
minify: !process.env.DEBUG minify: !process.env.DEBUG
} }
@ -98,7 +102,6 @@ export async function bundle(
console.log('building server bundle...') console.log('building server bundle...')
const serverResult = await ssrBuild({ const serverResult = await ssrBuild({
...viteOptions, ...viteOptions,
silent: true,
outDir: config.tempDir outDir: config.tempDir
}) })

Loading…
Cancel
Save