Skip to content

Commit 8a94eac

Browse files
committed
feat: vite auto import UseMediaRecorder component
1 parent 2b40051 commit 8a94eac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plugin/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import type { App } from 'vue'
2-
import type { MediaRecorderPluginOptions } from '../types'
2+
import type { MediaRecorderPluginOptions } from '@orbisk/vue-use-media-recorder'
3+
import { UseMediaRecorder } from '@orbisk/vue-use-media-recorder'
34

45
export const MediaRecorderPlugin = {
5-
install(_app: App, _options?: MediaRecorderPluginOptions) {
6+
install(app: App, _options?: MediaRecorderPluginOptions) {
67
// app.provide(EXAMPLE, options?.example)
78

89
// Add auto imports
910

10-
// app.component('Toggle', ToggleComponent)
11+
app.component('UseMediaRecorder', UseMediaRecorder)
1112
},
1213
}
1314

0 commit comments

Comments
 (0)