Skip to content

Commit 2c6c8a3

Browse files
committed
fix: option's default value is empty object
1 parent 68bc0ae commit 2c6c8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { IBundle, Options } from './types'
1313
import type { OutputOptions } from 'rollup'
1414

1515
const unplugin = createUnplugin<Options>(
16-
(options: Options): any => {
16+
(options: Options = {}): any => {
1717
const userOptions = initOption(options)
1818
const filter = createFilter(
1919
userOptions.include,

0 commit comments

Comments
 (0)