Skip to content

Commit

Permalink
feat: Allow overwrite TerserOptions.safari10 from UserConfig (vit…
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 authored and TobiasMelen committed May 3, 2021
1 parent a926fcf commit e42455a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/terser.ts
Expand Up @@ -21,11 +21,11 @@ export function terserPlugin(options: Terser.MinifyOptions): Plugin {

async renderChunk(code, _chunk, outputOptions) {
const res = await worker.run(__dirname, code, {
safari10: true,
...options,
sourceMap: !!outputOptions.sourcemap,
module: outputOptions.format.startsWith('es'),
toplevel: outputOptions.format === 'cjs',
safari10: true
toplevel: outputOptions.format === 'cjs'
})
return {
code: res.code!,
Expand Down

0 comments on commit e42455a

Please sign in to comment.