Skip to content

Commit

Permalink
fix: support empty base in vite options
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jun 23, 2022
1 parent 5a19898 commit 1d1fea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -5,7 +5,7 @@ export function slash(str: string) {
export function resolveBathPath(base: string) {
if (isAbsolute(base))
return base
return !base.startsWith('/') && !base.startsWith('./')
return base && !base.startsWith('/') && !base.startsWith('./')
? `/${base}`
: base
}
Expand Down

0 comments on commit 1d1fea4

Please sign in to comment.