Skip to content

Commit a0efe18

Browse files
committed
fix(@sirutils/core): allow options to be undefined
1 parent b877f5b commit a0efe18

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/plugin-system/plugin.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ export const createPlugin = capsule(
4747
} as BlobType
4848
)
4949

50-
const options: O | undefined = rawOptions
51-
? { ...(defaultOptions ?? {}), ...rawOptions }
52-
: undefined
50+
const options = { ...(defaultOptions ?? {}), ...(rawOptions ?? {}) } as O
5351

5452
pluginContext.init(options)
5553
pluginContext.use = createUse(pluginContext)

0 commit comments

Comments
 (0)