Skip to content

Commit df8e476

Browse files
authored
chore: remove parameters that are not used (#10747)
1 parent 5451a34 commit df8e476

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/vite/src/node/optimizer/esbuildDepPlugin.ts

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
normalizePath
1212
} from '../utils'
1313
import { browserExternalId, optionalPeerDepId } from '../plugins/resolve'
14-
import type { ExportsData } from '.'
1514

1615
const externalWithConversionNamespace =
1716
'vite:dep-pre-bundle:external-conversion'
@@ -44,7 +43,6 @@ const externalTypes = [
4443

4544
export function esbuildDepPlugin(
4645
qualified: Record<string, string>,
47-
exportsData: Record<string, ExportsData>,
4846
external: string[],
4947
config: ResolvedConfig,
5048
ssr: boolean

packages/vite/src/node/optimizer/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,7 @@ export async function runOptimizeDeps(
580580
if (external.length) {
581581
plugins.push(esbuildCjsExternalPlugin(external))
582582
}
583-
plugins.push(
584-
esbuildDepPlugin(flatIdDeps, flatIdToExports, external, config, ssr)
585-
)
583+
plugins.push(esbuildDepPlugin(flatIdDeps, external, config, ssr))
586584

587585
const start = performance.now()
588586

0 commit comments

Comments
 (0)