From 265500885d814744d1961fd6b70bee132bb5353e Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Tue, 24 Sep 2024 12:17:40 -0400 Subject: [PATCH] Fix typo (return vs throw) --- packages/vite/src/esbuild-resolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/esbuild-resolver.ts b/packages/vite/src/esbuild-resolver.ts index 8eab80820..c00d99d4f 100644 --- a/packages/vite/src/esbuild-resolver.ts +++ b/packages/vite/src/esbuild-resolver.ts @@ -156,7 +156,7 @@ function detectPhase(build: PluginBuild): 'bundling' | 'other' { if (plugins.includes('vite:dep-pre-bundle')) { return 'bundling'; } else { - throw 'other'; + return 'other'; } }