We know that continuous bijections between compact and Hausdorff spaces are homeomorphisms. I.e. if $(X,\tau_{X})$ is a compact topological space, $(Y,\tau_{Y})$ is a Hausdorff space and $f:(X,\tau_{X})\rightarrow(Y,\tau_{Y})$ is a continuous bijective function, then $f$ is a homeomorphism.
However, does this hold if we relax the assumption that $(Y,\tau_{Y})$ is a Hausdorff space, i.e. only a topological space? If not, provide a counterexample.