fix ignoring anything in main chunk with lint-check-globals-cached