ensure that `locals` is passed to `.mapFiles` and `.parseFiles`