Gromov–Witten invariants have been constructed to be deformation invariant, but their behavior under other transformations is subtle. We show that logarithmic Gromov–Witten invariants are also invariant under appropriately defined logarithmic modifications.