Skip to content

Commit e437c5b

Browse files
committed
build: raise dist/brackets.js prod size limit to 11 MB
The LSP framework grew the minified bundle to ~10.02 MB, tripping the 10 MB prod limit. Bump to 11 MB to restore the ~1 MB individual-file margin, and document the margin policy (1 MB per file, 5 MB aggregate).
1 parent 12e174a commit e437c5b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

gulpfile.js/validate-build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ const LARGE_FILE_LIST_DEV = {
3535
// Size limits for production/staging builds (in MB)
3636
const PROD_MAX_FILE_SIZE_MB = 2;
3737
const PROD_MAX_TOTAL_SIZE_MB = 80;
38-
// Custom size limits for known large files (size in MB) For staging/production builds
38+
// Custom size limits for known large files (size in MB) For staging/production builds.
39+
// Margin policy: keep ~1 MB of headroom over a file's current size for individual files (and ~5 MB
40+
// for the aggregate/total). Bump a limit only enough to restore that margin when a file legitimately
41+
// grows - don't pad it large, so unexpected size jumps still get caught.
3942
const LARGE_FILE_LIST_PROD = {
40-
'dist/brackets.js': 10, // this is the full minified file itself renamed in prod
43+
'dist/brackets.js': 11, // this is the full minified file itself renamed in prod (~10 MB + 1 MB margin)
4144
'dist/phoenix/virtualfs.js.map': 3
4245
};
4346

0 commit comments

Comments
 (0)