Skip to content

Commit 2cee5fc

Browse files
authored
fix: give user options precedence over defaults (#1)
1 parent 56a9225 commit 2cee5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const defaultOptions: Options = {
1313
}
1414

1515
function VitePluginComponents(options: Partial<Options> = {}): Plugin {
16-
const resolvedOptions: Options = Object.assign({}, options, defaultOptions)
16+
const resolvedOptions: Options = Object.assign({}, defaultOptions, options)
1717
const ctx: Context = new Context(resolvedOptions)
1818

1919
return {

0 commit comments

Comments
 (0)