From 4b2d6083febd351e2585ec6890ef58674dd2ce68 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 5 May 2020 11:55:32 -0400 Subject: [PATCH] ensure entry signatures --- src/build/bundle.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/build/bundle.ts b/src/build/bundle.ts index ebef37b4..951eb18f 100644 --- a/src/build/bundle.ts +++ b/src/build/bundle.ts @@ -86,9 +86,13 @@ export async function bundle( // the loading is done via filename conversion rules so that the // metadata doesn't need to be included in the main chunk. 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 || [])] }, rollupOutputOptions, + silent: !process.env.DEBUG, minify: !process.env.DEBUG } @@ -98,7 +102,6 @@ export async function bundle( console.log('building server bundle...') const serverResult = await ssrBuild({ ...viteOptions, - silent: true, outDir: config.tempDir })