mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt): do not resolve deep imports for @vitest/
hotfix for https://github.com/vitejs/vite/pull/19016
This commit is contained in:
parent
ceac86e348
commit
4171a10765
@ -7,7 +7,7 @@ import type { Nuxt } from '@nuxt/schema'
|
|||||||
import { pkgDir } from '../../dirs'
|
import { pkgDir } from '../../dirs'
|
||||||
|
|
||||||
export function resolveDeepImportsPlugin (nuxt: Nuxt): Plugin {
|
export function resolveDeepImportsPlugin (nuxt: Nuxt): Plugin {
|
||||||
const exclude: string[] = ['virtual:', '\0virtual:', '/__skip_vite']
|
const exclude: string[] = ['virtual:', '\0virtual:', '/__skip_vite', '@vitest/']
|
||||||
let conditions: string[]
|
let conditions: string[]
|
||||||
return {
|
return {
|
||||||
name: 'nuxt:resolve-bare-imports',
|
name: 'nuxt:resolve-bare-imports',
|
||||||
|
Loading…
Reference in New Issue
Block a user