next.js/packages/next/src/lib/normalize-path.ts
normalize-path.ts6 lines134 B
import path from 'path'

export function normalizePath(file: string) {
  return path.sep === '\\' ? file.replace(/\\/g, '/') : file
}
Quest for Codev2.0.0
/
SIGN IN