From 0df37476b0dc00e11b413b9d0c8b033c327b4ae4 Mon Sep 17 00:00:00 2001 From: bbbboom Date: Tue, 5 Apr 2022 00:17:18 +0800 Subject: [PATCH] Compatible fix Compatible with changes made by the new version of upstream component "resolve". --- packages/vite/src/node/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vite/src/node/utils.ts b/packages/vite/src/node/utils.ts index 0e3fe49c9cb584..8c7859e3850454 100644 --- a/packages/vite/src/node/utils.ts +++ b/packages/vite/src/node/utils.ts @@ -83,6 +83,7 @@ export function resolveFrom( ): string { return resolve.sync(id, { basedir, + paths: [], extensions: ssr ? ssrExtensions : DEFAULT_EXTENSIONS, // necessary to work with pnpm preserveSymlinks: preserveSymlinks || isRunningWithYarnPnp || false