update default `file` object to include the `locals` property at the root