Skip to content

Commit

Permalink
chore: update ssr.format condition to unblock vite ci
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Sep 18, 2023
1 parent b16fb46 commit 0df8843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 0df8843

Please sign in to comment.