From 0df88438c79f9a9a7d11e31f1b284f9f17608545 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:15:27 +0530 Subject: [PATCH] chore: update ssr.format condition to unblock vite ci --- src/node/plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 77e39258..8b58f238 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -320,7 +320,8 @@ export async function createVitePressPlugin( generateBundle(_options, bundle) { if (ssr) { - if (config.ssr?.format === 'esm') { + // @ts-ignore will be removed in vite 5 + if (config.ssr?.format !== 'cjs') { this.emitFile({ type: 'asset', fileName: 'package.json',