Skip to content

Commit 0df8843

Browse files
committed
chore: update ssr.format condition to unblock vite ci
1 parent b16fb46 commit 0df8843

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/node/plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ export async function createVitePressPlugin(
320320

321321
generateBundle(_options, bundle) {
322322
if (ssr) {
323-
if (config.ssr?.format === 'esm') {
323+
// @ts-ignore will be removed in vite 5
324+
if (config.ssr?.format !== 'cjs') {
324325
this.emitFile({
325326
type: 'asset',
326327
fileName: 'package.json',

0 commit comments

Comments
 (0)