Skip to content

Commit

Permalink
fix: astro default options
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 20, 2024
1 parent 2f2b980 commit ecafc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Options } from './core';

import VitePlugin from './vite';

export default (options: Options | undefined) => ({
export default (options: Options = {}) => ({
name: 'unplugin-info',
hooks: {
'astro:config:setup': async (astro: any) => {
Expand Down

0 comments on commit ecafc08

Please sign in to comment.