From c7dfd712b8ca1db18a523862bade4c6179739d71 Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 29 Aug 2026 13:26:59 +0300 Subject: [PATCH] test: keep the fr chunk emitted in the #371 mutant (wrong dictionary via en) The loadGerman-swap mutant tree-shook src/i18n/fr.ts, so the manifest emit guard failed the mutant BUILD instead of the guard smoke. The mutant now keeps import('./fr') alive and returns the English dictionary, which only demo/smoke_french_locale.mjs can catch. User-Visible: no Issue: #371 --- scripts/mutation-gate.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mutation-gate.mjs b/scripts/mutation-gate.mjs index 7a7bdc12..f7a7effa 100644 --- a/scripts/mutation-gate.mjs +++ b/scripts/mutation-gate.mjs @@ -687,8 +687,8 @@ const MUTANT_DEFINITIONS = [ + 'only the bundle smoke proves the fr entry loads the fr chunk (#371)', patches: [{ file: 'src/i18n/registry.ts', - find: " { code: 'fr', nativeLabel: 'Français', loadDictionary: loadFrench },", - replace: " { code: 'fr', nativeLabel: 'Français', loadDictionary: loadGerman },", + find: " : await import(/* @vite-ignore */ new URL(`${FRENCH_RETRY_ASSET}?retry`, import.meta.url).href);\n return { dictionary: module.dictionary, fingerprint: module.fingerprint };", + replace: " : await import(/* @vite-ignore */ new URL(`${FRENCH_RETRY_ASSET}?retry`, import.meta.url).href);\n void module.dictionary;\n return { dictionary: en, fingerprint: module.fingerprint };", }], }, {