The San Francisco Giants agreed to terms with outfielder Mitch Haniger, the team announced Tuesday, filling a hole in the Giants' outfield as they continue their free agent pursuit of American League MVP Aaron Judge.

The deal is for three years and $43.5 million and includes a player opt-out after the second year, sources told ESPN's Jeff Passan.