import { isWillChangeMotionValue as o } from "./is.es.js";
import { MotionGlobalConfig as i } from "../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/global-config.es.js";
function C(a, n) {
  const l = a.getValue("willChange");
  if (o(l))
    return l.add(n);
  if (!l && i.WillChange) {
    const e = new i.WillChange("auto");
    a.addValue("willChange", e), e.add(n);
  }
}
export {
  C as addValueToWillChange
};
//# sourceMappingURL=add-will-change.es.js.map
