Skip to content

Commit 4171a10

Browse files
committed
fix(nuxt): do not resolve deep imports for @vitest/
hotfix for vitejs/vite#19016
1 parent ceac86e commit 4171a10

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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy