You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/en/api/plugin-api/compiler-hooks.mdx
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -632,3 +632,37 @@ Called when a watching compilation has stopped.
632
632
Called when the compiler is closing.
633
633
634
634
-**Type:**`AsyncSeriesHook<[]>`
635
+
636
+
## infrastructureLog
637
+
638
+
Called when infrastructure logging is triggered, allowing plugins to intercept, modify, or handle log messages.
639
+
640
+
This hook provides a way to customize Rspack's infrastructure logs - you can filter specific log types, add custom formatting, or completely override the default logging behavior.
641
+
642
+
If the hook returns `true`, the default infrastructure logging will be prevented. If it returns `undefined`, the default logging will proceed.
0 commit comments