Skip to content

Commit

Permalink
feat: allow not passing a config
Browse files Browse the repository at this point in the history
Co-authored-by: Percy Ma <kecrily@gmail.com>

Close #59
  • Loading branch information
posva committed Sep 30, 2022
1 parent f0cfb36 commit 80fd444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -15,7 +15,7 @@ import { join } from 'pathe'

export { Options }

export default createUnplugin<Options>((opt, meta) => {
export default createUnplugin<Options | undefined>((opt = {}, meta) => {
const options = resolveOptions(opt)
const ctx = createRoutesContext(options)

Expand Down

0 comments on commit 80fd444

Please sign in to comment.