chore: vite no longer emits assets on ssr by default

pull/2876/head
Divyansh Singh 2 years ago
parent b4a899091e
commit 1705c179df

@ -300,14 +300,6 @@ export async function createVitePressPlugin(
generateBundle(_options, bundle) { generateBundle(_options, bundle) {
if (ssr) { if (ssr) {
// ssr build:
// delete all asset chunks
for (const name in bundle) {
if (bundle[name].type === 'asset') {
delete bundle[name]
}
}
if (config.ssr?.format === 'esm') { if (config.ssr?.format === 'esm') {
this.emitFile({ this.emitFile({
type: 'asset', type: 'asset',

Loading…
Cancel
Save