Skip to content

Commit

Permalink
[DevTools] Disable sizeBot on DevTools Rull Request
Browse files Browse the repository at this point in the history
Because DevTools code doesn't affect production bundle size.
Meaningless sizeBot comment give us frastration within Pull Request discussion.
  • Loading branch information
ryota-murakami committed Jul 15, 2021
1 parent d5de458 commit a43aab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ function row(result) {
return;
}

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

const resultsMap = new Map();

// Find all the head (current) artifacts paths.
Expand Down

0 comments on commit a43aab9

Please sign in to comment.