Production and evolution of light elements in active star-forming regions