test(web): account for deferred notebook sharing translations

This commit is contained in:
tianma-if committed 2026-10-14 11:01:14 +08:00
1 parent 8127802f32
commit 0be992d650
1 file changed
+3 -3
+3 -3
View File
@@ -52,9 +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 },
// Storage usage and companion failure diagnostics bring the deferred catalog
// to ~542 KiB. Keep a bounded allowance without changing the preload budget.
{ pattern: /^i18n-ja-.*\.js$/, maxBytes: 545 * 1024 },
// Notebook publishing and share management bring the deferred catalog to
// ~551 KiB. Keep a bounded allowance without changing the preload budget.
{ pattern: /^i18n-ja-.*\.js$/, maxBytes: 560 * 1024 },
];
const allowedLargeChunk = ({ name, size }) =>
allowedLargeChunkPattern.test(name) ||