TAMPA, Fla. — The Eagles were without top edge rusher Josh Sweat on Sunday in their 31-15 loss to the defending Super Bowl champion Tampa Bay Buccaneers in the NFC wild-card round.

Sweat was ruled out after he underwent an emergency procedure earlier in the week to address a life-threatening situation, the team announced in a statement.

“On Tuesday night, Josh Sweat was admitted to the hospital,” the statement said. “He underwent an emergency procedure due to the severity. The doctors addressed a life-threatening situation. In the following days, Josh and our medical team did everything possible to help him return to play. He improved every day but it was determined by the doctors today that he was not quite ready. The fact that Josh came so close to playing is a credit to his toughness and our medical staff.”

Coach Nick Sirianni revealed Friday that Sweat had dealt with abdominal pain throughout the week, but he had not revealed further details. Sweat did not participate in any of the team’s three practices — however, he did make the trip with his teammates to Tampa.

Sweat, a Pro Bowl alternate selection, had one of the best seasons of his four-year career. Over 16 games, he had 45 tackles and was tied with defensive tackle Javon Hargrave for a team-best 7½ sacks.

Offensive lineman Nate Herbig was also ruled out with an ankle injury that popped up earlier in the week.