Skip to content

Commit 5ec4bca

Browse files
committed
fix: fixed the build error
1 parent 53c4430 commit 5ec4bca

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/packages/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ export {
2121
type ExternalToast,
2222
type Action,
2323
type ToastClasses,
24-
type ToastToDismiss,
25-
type PromiseIExtendedResult
24+
type ToastToDismiss
2625
}
2726

2827
const plugin: Plugin = {

src/plugin.umd.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Toaster from './packages/Toaster.vue'
33

44
/**
55
* VueSonner plugin for Vue 3
6-
*
6+
*
77
* - Globally registers the `<Toaster />` component
88
* - Adds `$toast` to all component instances (Options API)
99
* - Provides `toast` via Vue’s dependency injection (Composition API)
@@ -47,12 +47,12 @@ const VueSonner = {
4747
// Provide toast for Composition API usage
4848
app.provide('toast', toast)
4949

50-
// assign toast to window
50+
// assign toast to window
5151
if (typeof window !== 'undefined') {
5252
window.toast = toast
5353
}
5454
}
5555
}
5656

5757
// UMD-friendly single export for Vue.use(VueSonner)
58-
export default VueSonner
58+
export default VueSonner

src/runtime/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type {} from 'vue-sonner'
2-
import { toast } from 'vue-sonner'
1+
import { toast } from '../packages'
32
import { defineNuxtPlugin } from 'nuxt/app'
43

54
export default defineNuxtPlugin(() => {

0 commit comments

Comments
 (0)