diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index 307776296..7966237f3 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -33,7 +33,11 @@ const options = { primedPlugins(defaults) { return Object.assign(defaults, { worker: worker(), - uglify: terser({output: {comments: 'some'}, compress: {passes: 2}}) + uglify: terser({ + output: {comments: 'some'}, + compress: {passes: 2}, + include: [/^.+\.min\.js$/] + }) }); }, babel(defaults) {