Skip to content

Commit a43aab9

Browse files
[DevTools] Disable sizeBot on DevTools Rull Request
Because DevTools code doesn't affect production bundle size. Meaningless sizeBot comment give us frastration within Pull Request discussion.
1 parent d5de458 commit a43aab9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dangerfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ function row(result) {
113113
return;
114114
}
115115

116+
// Disable sizeBot in a Devtools PR like bellow title. Because that doesn't affect production bundle size.
117+
// [Fix DevTools console announcement being suppressed by Fast Refresh #21864](https://github.com/facebook/react/pull/21864)
118+
if (new RegExp('devtools?', 'i').test(danger.github.pr.title)) return;
119+
116120
const resultsMap = new Map();
117121

118122
// Find all the head (current) artifacts paths.

0 commit comments

Comments
 (0)