Skip to content

Commit

Permalink
Use terser instead of uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
sha256 committed Aug 17, 2020
1 parent ea7959a commit 5deb278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"karma-spec-reporter": "0.0.32",
"rollup": "^2.26.2",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-uglify": "^2.0.1"
"rollup-plugin-terser": "^7.0.0"
},
"dependencies": {}
}
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import babel from 'rollup-plugin-babel';
import uglify from 'rollup-plugin-uglify';
import { terser } from "rollup-plugin-terser";

const source = {
input: 'src/pristine',
Expand All @@ -26,8 +26,8 @@ const minified = {
babel({
exclude: 'node_modules/**',
}),
uglify()
terser()
]
};

export default [source, minified];
export default [source, minified];

0 comments on commit 5deb278

Please sign in to comment.