fix(build): account for added deferred Japanese translations

This commit is contained in:
tianma-if committed 2026-10-12 23:57:06 +08:00
1 parent 16e8f1a8f3
commit f6ade70423
1 file changed
+3 -2
+3 -2
View File
@@ -52,8 +52,9 @@ const allowedLargeChunkPattern = /^(?:vendor-(?:code-highlight|beautiful-mermaid
// while retaining the initial preload budget and the checks below.
const boundedDeferredChunks = [
{ pattern: /^vendor~mathlive-loader-.*\.js$/, maxBytes: 850 * 1024 },
// Poster editing adds localized controls; the current catalog is ~530 KiB.
{ pattern: /^i18n-ja-.*\.js$/, maxBytes: 535 * 1024 },
// PicGo, pane resizing, and agent diagnostics bring the deferred catalog to
// ~539 KiB. Keep a bounded allowance without changing the preload budget.
{ pattern: /^i18n-ja-.*\.js$/, maxBytes: 540 * 1024 },
];
const allowedLargeChunk = ({ name, size }) =>
allowedLargeChunkPattern.test(name) ||