Esme Squalor does not die in A Series of Unfortunate Events.
Despite enduring kidnapping by Count Olaf and numerous dangerous situations, she survives the series. In the final book, The End, she reunites with her siblings, the Baudelaire orphans, and they escape Count Olaf for good.