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
  • Loading branch information
sodatea authored and aleclarson committed Nov 8, 2021
1 parent 0944d61 commit a826738
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 a826738

Please sign in to comment.