From 74eca9bdd1b4c6b8deed9685e3752ab84d333d71 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 6 Sep 2026 15:58:46 +0300 Subject: [PATCH] =?UTF-8?q?test:=20=D0=BC=D1=83=D1=82=D0=B0=D0=BD=D1=82=20?= =?UTF-8?q?eager-import=20#474=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D1=83=D0=B5=D1=82=20=D0=BF=D1=80=D0=B8=D0=B2=D1=8F=D0=B7?= =?UTF-8?q?=D0=BA=D1=83=20(Rollup=20=D0=B2=D1=8B=D0=BA=D0=B8=D0=B4=D1=8B?= =?UTF-8?q?=D0=B2=D0=B0=D0=B5=D1=82=20=D0=BF=D1=83=D1=81=D1=82=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #474 User-Visible: no --- scripts/mutation-gate.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/mutation-gate.mjs b/scripts/mutation-gate.mjs index df81fde9..debf5e1b 100644 --- a/scripts/mutation-gate.mjs +++ b/scripts/mutation-gate.mjs @@ -6552,7 +6552,13 @@ const MUTANT_DEFINITIONS = [ file: 'src/furniture.ts', find: "import { FURNITURE_ART_RUNTIME, type FurnitureArtHost } from './furniture-art-runtime';", replace: "import { FURNITURE_ART_RUNTIME, type FurnitureArtHost } from './furniture-art-runtime';\n" - + "import './furniture-plan-art.generated'; // mutant: eager artwork", + + "import { GENERATED_FURNITURE_ART as EAGER_ART } from './furniture-plan-art.generated'; // mutant", + }, { + // A well-meaning "fall back to the bundled artwork" is exactly how the + // chunk would creep back into the initial graph. + file: 'src/furniture.ts', + find: ' if (symbol.designer) return FURNITURE_ART_RUNTIME.art(id, host) ?? null;', + replace: ' if (symbol.designer) return FURNITURE_ART_RUNTIME.art(id, host) ?? EAGER_ART[id] ?? null;', }], }, {