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'; } }