Skip to content

Commit

Permalink
fix: use the same target for optimized dependencies and source files (
Browse files Browse the repository at this point in the history
#5095)

fixes #4897
  • Loading branch information
sodatea committed Sep 26, 2021
1 parent 5d2c50a commit 8456a6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/optimizer/index.ts
Expand Up @@ -294,6 +294,7 @@ export async function optimizeDeps(
entryPoints: Object.keys(flatIdDeps),
bundle: true,
format: 'esm',
target: config.build.target || undefined,
external: config.optimizeDeps?.exclude,
logLevel: 'error',
splitting: true,
Expand Down

0 comments on commit 8456a6f

Please sign in to comment.