From 5e74c5f4c13de25f258bd7b80178f9115b2bfeab Mon Sep 17 00:00:00 2001 From: Riri Date: Wed, 16 Oct 2024 01:10:58 +0800 Subject: [PATCH] chore: ignore rollup warn for react-helmet-async --- src/node/build.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/node/build.ts b/src/node/build.ts index 8586359..969aaaa 100644 --- a/src/node/build.ts +++ b/src/node/build.ts @@ -126,6 +126,12 @@ export async function build(ssgOptions: Partial = {}, 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,