Skip to content

Commit d91f743

Browse files
committed
fix: module export
1 parent 97346f7 commit d91f743

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const defaultOptions: Options = {
1111
deep: true,
1212
}
1313

14-
export type { Options }
15-
export function VitePluginComponents(options: Partial<Options> = {}): Plugin {
14+
function VitePluginComponents(options: Partial<Options> = {}): Plugin {
1615
const resolvedOptions: Options = Object.assign({}, options, defaultOptions)
1716
const ctx: Context = {
1817
options: resolvedOptions,
@@ -33,3 +32,6 @@ export function VitePluginComponents(options: Partial<Options> = {}): Plugin {
3332
],
3433
}
3534
}
35+
36+
export type { Options }
37+
export default VitePluginComponents

0 commit comments

Comments
 (0)