Skip to content

Commit

Permalink
chore: remove parameters that are not used (#10747)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaxus authored Nov 12, 2022
1 parent 5451a34 commit df8e476
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions packages/vite/src/node/optimizer/esbuildDepPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -44,7 +43,6 @@ const externalTypes = [

export function esbuildDepPlugin(
qualified: Record<string, string>,
exportsData: Record<string, ExportsData>,
external: string[],
config: ResolvedConfig,
ssr: boolean
Expand Down
4 changes: 1 addition & 3 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit df8e476

Please sign in to comment.