The compact doesn't define a refugee. If I were to summarize it, I would say that if you read through all the legalese, what the global compact says is that a refugee is someone who has crossed a border for fear of persecution or generalized violence. It takes that shorthand definition.
On November 6th, 2018. See this statement in context.