diff --git a/packages/nuxt/src/core/plugins/resolve-deep-imports.ts b/packages/nuxt/src/core/plugins/resolve-deep-imports.ts index 75d67c3784..f55924c5f8 100644 --- a/packages/nuxt/src/core/plugins/resolve-deep-imports.ts +++ b/packages/nuxt/src/core/plugins/resolve-deep-imports.ts @@ -7,7 +7,7 @@ import type { Nuxt } from '@nuxt/schema' import { pkgDir } from '../../dirs' export function resolveDeepImportsPlugin (nuxt: Nuxt): Plugin { - const exclude: string[] = ['virtual:', '\0virtual:', '/__skip_vite'] + const exclude: string[] = ['virtual:', '\0virtual:', '/__skip_vite', '@vitest/'] let conditions: string[] return { name: 'nuxt:resolve-bare-imports',