Fix trigger export on different files when FILE_PER_FUNCTION is enabled