Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fix ambiguous default export
Browse files Browse the repository at this point in the history
Removes default export of plugin and replaces it with const export.

BREAKING CHANGE: plugin is now exported using `plugin` export, rather
than the default export.
  • Loading branch information
brawaru committed Oct 23, 2023
1 parent 91f79d2 commit 5508799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DefaultTheme from 'vitepress/theme'
import Omorphia from 'omorphia'
import { plugin as Omorphia } from 'omorphia'
import DemoContainer from './DemoContainer.vue'

import './compat.scss'
Expand Down
3 changes: 1 addition & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import * as components from './components/index.js'
import FloatingVue from 'floating-vue'
import { Plugin } from 'vue'

const plugin: Plugin = (app) => {
export const plugin: Plugin = (app) => {
for (const key in components) {
app.component(key, components[key as keyof typeof components])
}
app.use(FloatingVue)
}

export default plugin
export * from './components/index.js'
export * from './helpers/index.js'

Expand Down

0 comments on commit 5508799

Please sign in to comment.