Skip to content

Commit

Permalink
chore: remove ssrExternals and seen from method interface
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 6, 2021
1 parent 871f146 commit 6965b8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/vite/src/node/ssr/ssrExternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ const debug = createDebugger('vite:ssr-external')
*/
export function resolveSSRExternal(
config: ResolvedConfig,
knownImports: string[],
ssrExternals: Set<string> = new Set(),
seen: Set<string> = new Set()
knownImports: string[]
): string[] {
const ssrConfig = config.ssr
if (ssrConfig?.noExternal === true) {
return []
}

const ssrExternals: Set<string> = new Set()
const seen: Set<string> = new Set()
ssrConfig?.external?.forEach((id) => {
ssrExternals.add(id)
seen.add(id)
Expand Down

0 comments on commit 6965b8e

Please sign in to comment.