Skip to content

Commit 1705c17

Browse files
committed
chore: vite no longer emits assets on ssr by default
1 parent b4a8990 commit 1705c17

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/node/plugin.ts

-8
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,6 @@ export async function createVitePressPlugin(
300300

301301
generateBundle(_options, bundle) {
302302
if (ssr) {
303-
// ssr build:
304-
// delete all asset chunks
305-
for (const name in bundle) {
306-
if (bundle[name].type === 'asset') {
307-
delete bundle[name]
308-
}
309-
}
310-
311303
if (config.ssr?.format === 'esm') {
312304
this.emitFile({
313305
type: 'asset',

0 commit comments

Comments
 (0)