import slash from "slash"; import { StringDictionary } from "../types"; export const normalizeFilePaths = function(files: StringDictionary): StringDictionary { Object.keys(files).forEach((file) => { const normalized = slash(file); if (file !== normalized) { files[normalized] = files[file]; delete files[file]; } }); return files; };