Emit compile event after recompiling