chore: update ssr.format condition to unblock vite ci

fix/2989
Divyansh Singh 1 year ago
parent b16fb46e39
commit 0df88438c7

@ -320,7 +320,8 @@ export async function createVitePressPlugin(
generateBundle(_options, bundle) { generateBundle(_options, bundle) {
if (ssr) { if (ssr) {
if (config.ssr?.format === 'esm') { // @ts-ignore will be removed in vite 5
if (config.ssr?.format !== 'cjs') {
this.emitFile({ this.emitFile({
type: 'asset', type: 'asset',
fileName: 'package.json', fileName: 'package.json',

Loading…
Cancel
Save