Accept a list of files to invalidate.
Add the `invalidate` helper.