Skip to content

Commit 133aee4

Browse files
committed
fix: default export for integrations
1 parent 7f86fd0 commit 133aee4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/nuxt/src/runtime/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ import { defineNuxtPlugin } from '#app'
22
import PDFEASY from 'pdfeasy'
33

44
export default defineNuxtPlugin(({ provide }) => {
5-
provide('pdf', PDFEASY as typeof PDFEASY)
5+
// @ts-expect-error
6+
provide('pdf', PDFEASY.default as typeof PDFEASY)
67
})

packages/vue/src/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ interface PluginOptions {}
55

66
export const PDFPlugin: Plugin = {
77
install: (app: App, options: PluginOptions = {}) => {
8-
app.config.globalProperties.$pdf = pdfeasy;
8+
// @ts-expect-error
9+
app.config.globalProperties.$pdf = pdfeasy.default;
910
},
1011
};
1112

0 commit comments

Comments
 (0)