Skip to content

Commit

Permalink
Update packages/vite/src/node/utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <chrissi92@hotmail.de>
  • Loading branch information
antfu and Shinigami92 authored Jun 13, 2021
1 parent 699ef7d commit c5e2c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export function copyDir(srcDir: string, destDir: string): void {
}
}

export function ensureLeadingSlash(path: string) {
export function ensureLeadingSlash(path: string): string {
return !path.startsWith('/') ? '/' + path : path
}

Expand Down

0 comments on commit c5e2c6f

Please sign in to comment.