Skip to content

Commit

Permalink
fix: typo, close #42
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Aug 23, 2021
1 parent 7a07f2a commit 5b4e946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getDefaultPath(supportTs = true) {
return path.resolve(process.cwd(), `src/main.${supportTs ? 'ts' : 'js'}`)
}

export function viteMockServe(opt: ViteMockOptions): Plugin {
export function viteMockServe(opt: ViteMockOptions = {}): Plugin {
let defaultPath = getDefaultPath()
if (!fileExists(defaultPath)) {
defaultPath = getDefaultPath(false)
Expand Down

0 comments on commit 5b4e946

Please sign in to comment.