From a43aab9207d4abc85b60c22b21a374fc54b1c6ea Mon Sep 17 00:00:00 2001 From: ryota-murakami Date: Thu, 15 Jul 2021 18:54:47 +0900 Subject: [PATCH] [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. --- dangerfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dangerfile.js b/dangerfile.js index 515e09536e..95e1c52beb 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -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.