Skip to content

Commit cbe9838

Browse files
danielroeKamsou
authored andcommitted
fix(nuxt): do not resolve deep imports for @vitest/
hotfix for vitejs/vite#19016
1 parent f8144eb commit cbe9838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/core/plugins/resolve-deep-imports.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { Nuxt } from '@nuxt/schema'
77
import { pkgDir } from '../../dirs'
88

99
export function resolveDeepImportsPlugin (nuxt: Nuxt): Plugin {
10-
const exclude: string[] = ['virtual:', '\0virtual:', '/__skip_vite']
10+
const exclude: string[] = ['virtual:', '\0virtual:', '/__skip_vite', '@vitest/']
1111
let conditions: string[]
1212
return {
1313
name: 'nuxt:resolve-bare-imports',

0 commit comments

Comments
 (0)