chore: update ssr.format condition to unblock vite ci

fix/2989
Divyansh Singh 11 months ago
parent b16fb46e39
commit 0df88438c7

@ -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',

Loading…
Cancel
Save