Skip to content

Commit c9ff40b

Browse files
committed
refactor: exclude pluginTimings logs
1 parent 474e996 commit c9ff40b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/bin/build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export async function build(options: Options): Promise<BuildStats> {
104104
],
105105
onLog: (level, log, handler) => {
106106
if (entry.onLog) entry.onLog(level, log, handler, buildLogs)
107-
else buildLogs.push({ level, log })
107+
else if (log.code !== 'PLUGIN_TIMINGS') {
108+
buildLogs.push({ level, log })
109+
}
108110
},
109111
resolve: entry.resolve,
110112
transform: {

0 commit comments

Comments
 (0)