Skip to content

Commit 0b7ada6

Browse files
fix: ensure Plugin type isn't stripped in build (#478)
1 parent b4bef6a commit 0b7ada6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import type { RouteLocation, Router } from 'vue-router'
1111
import { createError } from 'h3'
1212
import { withoutBase, isEqual } from 'ufo'
1313

14-
import type { PageMeta, RouteMiddleware, Plugin } from '#app'
14+
import type { PageMeta, RouteMiddleware } from '#app'
15+
import type { Plugin } from 'nuxt/app'
1516
import { callWithNuxt, defineNuxtPlugin, useRuntimeConfig } from '#app/nuxt'
1617
import { showError, clearError, useError } from '#app/composables/error'
1718
import { useRequestEvent } from '#app/composables/ssr'

0 commit comments

Comments
 (0)