# Extending domain of a meromorphic function from non-compact to compact domain

Let $f$ be a meromorphic function with $\text{dom} (f)=\mathcal{M}$, where $\mathcal{M}$ is a non-compact Riemann surface.

If $\mathcal{M}'= \mathcal{M} \cup \{\infty \}$ is the one-point compactification of $\mathcal{M}$, then is $f$ with domain $\mathcal{M}'$ still meromorphic? Does this depend on the compactification method?

Many thanks

-
You can see it with the case $M = \mathbb{C}$, $f=\sin$ (here $f$ is even holomorphic).
So on the riemann sphere $S^2 = \mathbb{C} \cup \{ \infty \}$, $\sin$ admits no continuous continuation and hence no meromorphic continuation.