From 6ccb532e786a7709f59471e643b97b7c1d1b410e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 00:20:03 +0000 Subject: [PATCH 1/2] Initial plan From ff731801c23e15054c576bd65629c0c13e9a83a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 00:28:02 +0000 Subject: [PATCH 2/2] Fix embroiderVite-basics: guard COMPUTED_GETTERS.has() with DEV check When building with `vite build --mode test`, import.meta.env.DEV is false, so COMPUTED_GETTERS (a WeakSet) is never initialized. The assert() call in makeComputedDecorator was unconditionally evaluating COMPUTED_GETTERS.has(), causing TypeError: Cannot read properties of undefined (reading 'has'). Guard the .has() call with `import.meta.env?.DEV &&` so it short-circuits before accessing the undefined WeakSet in production/test builds. Co-authored-by: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> --- packages/@ember/-internals/metal/lib/decorator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ember/-internals/metal/lib/decorator.ts b/packages/@ember/-internals/metal/lib/decorator.ts index 3e6b262f3bc..ef253a4c39b 100644 --- a/packages/@ember/-internals/metal/lib/decorator.ts +++ b/packages/@ember/-internals/metal/lib/decorator.ts @@ -124,7 +124,7 @@ export function makeComputedDecorator( isClassicDecorator || !propertyDesc || !propertyDesc.get || - !COMPUTED_GETTERS.has(propertyDesc.get) + !(import.meta.env?.DEV && COMPUTED_GETTERS.has(propertyDesc.get)) ); let meta = arguments.length === 3 ? metaFor(target) : maybeMeta;