Skip to content

Commit eca6385

Browse files
Merge pull request #21118 from emberjs/copilot/sub-pr-21115
Fix embroiderVite-basics: guard COMPUTED_GETTERS.has() with DEV check
2 parents 74a8054 + ff73180 commit eca6385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ember/-internals/metal/lib/decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function makeComputedDecorator(
124124
isClassicDecorator ||
125125
!propertyDesc ||
126126
!propertyDesc.get ||
127-
!COMPUTED_GETTERS.has(propertyDesc.get)
127+
!(import.meta.env?.DEV && COMPUTED_GETTERS.has(propertyDesc.get))
128128
);
129129

130130
let meta = arguments.length === 3 ? metaFor(target) : maybeMeta;

0 commit comments

Comments
 (0)