Skip to content

Commit c581b55

Browse files
authored
build: replace deprecated onwarn with onLog (#22741)
1 parent ea22fb3 commit c581b55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/vite/rolldown.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ const sharedNodeOptions = defineConfig({
6161
format: 'esm',
6262
externalLiveBindings: false,
6363
},
64-
onwarn(warning, warn) {
65-
if (warning.message.includes('Circular dependency')) {
64+
onLog(level, log, defaultHandler) {
65+
if (level === 'warn' && log.message.includes('Circular dependency')) {
6666
return
6767
}
68-
warn(warning)
68+
defaultHandler(level, log)
6969
},
7070
})
7171

0 commit comments

Comments
 (0)