diff --git a/package.json b/package.json index 05daf42..2e80015 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,9 @@ "rimraf": "^2.5.4", "rollup": "^0.*", "rollup-plugin-babel": "^2.7.1", - "rollup-plugin-uglify-es": "0.0.1", - "sinon": "^1.*" + "rollup-plugin-uglify": "^2.0.1", + "sinon": "^1.*", + "uglify-es": "^3.*" }, "files": [ "dist/", diff --git a/rollup.config.prod.js b/rollup.config.prod.js index cec7805..c3098df 100644 --- a/rollup.config.prod.js +++ b/rollup.config.prod.js @@ -1,5 +1,7 @@ -import uglify from 'rollup-plugin-uglify-es'; + import babel from 'rollup-plugin-babel'; +import uglify from 'rollup-plugin-uglify'; +import { minify } from 'uglify-es'; export default { entry: 'lib/frontexpress.js', @@ -12,6 +14,6 @@ export default { babelrc: false, presets: ['es2015-rollup'] }), - uglify() + uglify({}, minify) ] };