Skip to content

Commit

Permalink
enable terser unsafe compression
Browse files Browse the repository at this point in the history
  • Loading branch information
samualtnorman committed Mar 25, 2024
1 parent e5194ae commit dbde8ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default findFiles(SOURCE_PATH).then(foundFiles => /** @type {import("roll
plugins: [ babelPluginHere() ]
}),
nodeResolve({ extensions: [ ".ts" ] }),
terser({ compress: { passes: Infinity }, maxWorkers: Math.floor(cpus().length / 2), mangle: false }),
terser(
{ compress: { passes: Infinity, unsafe: true }, maxWorkers: Math.floor(cpus().length / 2), mangle: false }
),
prettier({
parser: "espree",
useTabs: true,
Expand Down

0 comments on commit dbde8ef

Please sign in to comment.