diff --git a/package.json b/package.json index e18e369..ef79b28 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,12 @@ "name": "svelte-app", "version": "1.0.0", "devDependencies": { + "npm-run-all": "^4.1.3", "rollup": "^0.58.2", - "rollup-plugin-buble": "^0.19.2", "rollup-plugin-commonjs": "^9.1.3", "rollup-plugin-node-resolve": "^3.0.3", "rollup-plugin-svelte": "^4.0.0", - "rollup-plugin-uglify": "^3.0.0", - "npm-run-all": "^4.1.3", + "rollup-plugin-terser": "^1.0.1", "serve": "^6.5.6", "svelte": "^2.6.0" }, diff --git a/rollup.config.js b/rollup.config.js index af0f3cb..d9aa427 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,8 +1,7 @@ import svelte from 'rollup-plugin-svelte'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; -import buble from 'rollup-plugin-buble'; -import uglify from 'rollup-plugin-uglify'; +import { terser } from 'rollup-plugin-terser'; const production = !process.env.ROLLUP_WATCH; @@ -38,8 +37,7 @@ export default { commonjs(), // If we're building for production (npm run build - // instead of npm run dev), transpile and minify - production && buble({ include: ['src/**', 'node_modules/svelte/shared.js'] }), - production && uglify() + // instead of npm run dev), minify + production && terser() ] };