Skip to content

Commit

Permalink
fix(build): use consistent minify options from previous terser config
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 15, 2024
1 parent f1aae57 commit 789675f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ function createMinifiedConfig(/** @type {PackageFormat} */ format) {
) {
const { code, map } = await minifySwc(contents, {
module: format === 'es',
compress: true,
compress: {
ecma: 2016,
pure_getters: true,
},
safari10: true,
mangle: true,
sourceMap: !!sourcemap,
inlineSourcesContent: !sourcemapExcludeSources,
Expand Down

0 comments on commit 789675f

Please sign in to comment.