fix(nuxt): do not resolve deep imports for @vitest/

hotfix for https://github.com/vitejs/vite/pull/19016
This commit is contained in:
Daniel Roe 2024-12-23 16:40:36 +00:00
parent ceac86e348
commit 4171a10765
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -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',