Skip to content

Commit

Permalink
fix(optimizer): optimizer should not be affected by config rollup opt…
Browse files Browse the repository at this point in the history
…ions

fix #1372
  • Loading branch information
yyx990803 committed Jan 5, 2021
1 parent b3237ff commit ba08310
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export async function optimizeDeps(
const bundle = await rollup.rollup({
input: qualified,
external,
...config.build.rollupOptions,
onwarn(warning, warn) {
onRollupWarning(warning, warn, options.allowNodeBuiltins)
},
Expand Down Expand Up @@ -203,7 +202,6 @@ export async function optimizeDeps(
})

const { output } = await bundle.generate({
...config.build.rollupOptions,
format: 'es',
exports: 'named',
entryFileNames: '[name].[hash].js',
Expand Down

0 comments on commit ba08310

Please sign in to comment.