Skip to content

Commit f904a0f

Browse files
increase the time limit threshold to 20%
1 parent c99e7ab commit f904a0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bundle-size.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import fs from 'fs';
1818
// Intentionally strict to catch any bundle size changes early.
1919
// For intentional size increases, use bin/skip-bundle-size-check to bypass the CI check.
2020
const DEFAULT_THRESHOLD = 512;
21-
const DEFAULT_TIME_PERCENTAGE_THRESHOLD = 0.1;
21+
const DEFAULT_TIME_PERCENTAGE_THRESHOLD = 0.2;
2222
const DEFAULT_CONFIG = '.size-limit.json';
2323

2424
// ANSI color codes
@@ -175,7 +175,7 @@ ${colors.yellow}Options for set-limits:${colors.reset}
175175
--base <file> Path to base sizes JSON (required)
176176
--config <file> Path to .size-limit.json (default: .size-limit.json)
177177
--threshold <bytes> Size threshold in bytes (default: 512)
178-
--timePercentageThreshold <percentage> Acceptable increase percentage in total time
178+
--timePercentageThreshold <ratio between 0 and 1> Acceptable increase percentage in total time
179179
180180
${colors.yellow}Examples:${colors.reset}
181181
# Set dynamic limits from base sizes

0 commit comments

Comments
 (0)