Skip to content

Commit 9872a91

Browse files
committed
fix: don't fail on PLUGIN_TIMINGS warnings when failOnWarn is enabled
1 parent c114a8c commit 9872a91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/features/rolldown.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,12 @@ async function resolveInputOptions(
212212
onLog(level, log, defaultHandler) {
213213
// suppress mixed export warnings if cjsDefault is enabled
214214
if (cjsDefault && log.code === 'MIXED_EXPORT') return
215-
if (logger.options?.failOnWarn && level === 'warn') {
215+
if (
216+
logger.options?.failOnWarn &&
217+
level === 'warn' &&
218+
log.code !== 'PLUGIN_TIMINGS'
219+
)
216220
defaultHandler('error', log)
217-
}
218221
defaultHandler(level, log)
219222
},
220223
devtools: devtools || undefined,

0 commit comments

Comments
 (0)