Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 14, 2022
1 parent d2f5229 commit 9ab44f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/node/build.ts
Expand Up @@ -386,9 +386,9 @@ async function doBuild(
const outDir = resolve(options.outDir)

// inject ssr arg to plugin load/transform hooks
const plugins = ssr
? config.plugins.map((p) => injectSsrFlagToHooks(p))
: config.plugins
const plugins = (
ssr ? config.plugins.map((p) => injectSsrFlagToHooks(p)) : config.plugins
) as Plugin[]

const userExternal = options.rollupOptions?.external
let external = userExternal
Expand Down

0 comments on commit 9ab44f0

Please sign in to comment.