Skip to content

Commit

Permalink
chore: ignore rollup warn for react-helmet-async
Browse files Browse the repository at this point in the history
  • Loading branch information
Daydreamer-riri committed Oct 15, 2024
1 parent 6d2bfd1 commit 5e74c5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ export async function build(ssgOptions: Partial<ViteReactSSGOptions> = {}, viteC
entryFileNames: '[name].cjs',
format: 'cjs',
},
// @ts-expect-error rollup type
onLog(level, log, handler) {
if (log.message.includes('react-helmet-async'))
return
handler(level, log)
},
},
},
mode: config.mode,
Expand Down

0 comments on commit 5e74c5f

Please sign in to comment.