diff --git a/packages/framer-motion/src/animation/waapi/supports.ts b/packages/framer-motion/src/animation/waapi/supports.ts index cd7fa0a55..cd1d4fc1d 100644 --- a/packages/framer-motion/src/animation/waapi/supports.ts +++ b/packages/framer-motion/src/animation/waapi/supports.ts @@ -8,6 +8,9 @@ const results = {} export const supports = {} as FeatureTests +/** + * Generate features tests that cache their results. + */ for (const key in featureTests) { supports[key] = () => { if (results[key] === undefined) results[key] = featureTests[key]()