Reprogramming metabolism by histone methyltransferase NSD2 drives endocrine resistance via coordinated activation of pentose phosphate pathway enzymes.