diff --git a/packages/vite/src/node/optimizer/esbuildDepPlugin.ts b/packages/vite/src/node/optimizer/esbuildDepPlugin.ts index 463cc53e521cec..f3b300a5225bd8 100644 --- a/packages/vite/src/node/optimizer/esbuildDepPlugin.ts +++ b/packages/vite/src/node/optimizer/esbuildDepPlugin.ts @@ -11,7 +11,6 @@ import { normalizePath } from '../utils' import { browserExternalId, optionalPeerDepId } from '../plugins/resolve' -import type { ExportsData } from '.' const externalWithConversionNamespace = 'vite:dep-pre-bundle:external-conversion' @@ -44,7 +43,6 @@ const externalTypes = [ export function esbuildDepPlugin( qualified: Record, - exportsData: Record, external: string[], config: ResolvedConfig, ssr: boolean diff --git a/packages/vite/src/node/optimizer/index.ts b/packages/vite/src/node/optimizer/index.ts index 9ffc7f72a1ace9..caf4f2aa5efacf 100644 --- a/packages/vite/src/node/optimizer/index.ts +++ b/packages/vite/src/node/optimizer/index.ts @@ -580,9 +580,7 @@ export async function runOptimizeDeps( if (external.length) { plugins.push(esbuildCjsExternalPlugin(external)) } - plugins.push( - esbuildDepPlugin(flatIdDeps, flatIdToExports, external, config, ssr) - ) + plugins.push(esbuildDepPlugin(flatIdDeps, external, config, ssr)) const start = performance.now()