File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 11import svelte from 'rollup-plugin-svelte' ;
22import resolve from 'rollup-plugin-node-resolve' ;
33import 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
76const 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} ;
You can’t perform that action at this time.
0 commit comments