Skip to content

Commit ff23cd3

Browse files
committed
ditch buble, replace uglify with terser
1 parent 8a4e915 commit ff23cd3

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
"name": "svelte-app",
33
"version": "1.0.0",
44
"devDependencies": {
5+
"npm-run-all": "^4.1.3",
56
"rollup": "^0.58.2",
6-
"rollup-plugin-buble": "^0.19.2",
77
"rollup-plugin-commonjs": "^9.1.3",
88
"rollup-plugin-node-resolve": "^3.0.3",
99
"rollup-plugin-svelte": "^4.0.0",
10-
"rollup-plugin-uglify": "^3.0.0",
11-
"npm-run-all": "^4.1.3",
10+
"rollup-plugin-terser": "^1.0.1",
1211
"serve": "^6.5.6",
1312
"svelte": "^2.6.0"
1413
},

rollup.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import svelte from 'rollup-plugin-svelte';
22
import resolve from 'rollup-plugin-node-resolve';
33
import commonjs from 'rollup-plugin-commonjs';
4-
import buble from 'rollup-plugin-buble';
5-
import uglify from 'rollup-plugin-uglify';
4+
import { terser } from 'rollup-plugin-terser';
65

76
const production = !process.env.ROLLUP_WATCH;
87

@@ -38,8 +37,7 @@ export default {
3837
commonjs(),
3938

4039
// If we're building for production (npm run build
41-
// instead of npm run dev), transpile and minify
42-
production && buble({ include: ['src/**', 'node_modules/svelte/shared.js'] }),
43-
production && uglify()
40+
// instead of npm run dev), minify
41+
production && terser()
4442
]
4543
};

0 commit comments

Comments
 (0)