Re: [Pkg-javascript-devel] Uglify-js vs terser: plan for bullseye
Quoting Pirate Praveen (2019-07-29 02:12:16) > On 2019, ജൂലൈ 29 5:37:42 AM IST, Jonas Smedegaard wrote: > >terser and uglify-js are competing projects. > uglify-js only supports ES5. So uglify-js can only minify a subset of > what terser can minify. Correct. That fact alone does not convince me that it is irrelevant (and seems only provided argument against that package specifically). - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private signature.asc Description: signature -- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
Re: [Pkg-javascript-devel] Uglify-js vs terser: plan for bullseye
On 2019, ജൂലൈ 29 5:37:42 AM IST, Jonas Smedegaard wrote: >terser and uglify-js are competing projects. > >I am unaware of any conclusive information on either of them being >superior to the other for all(!) use-cases. > >I intend to maintain both projects, unless convinced otherwise. uglify-js only supports ES5. So uglify-js can only minify a subset of what terser can minify. uglify-es was started to support ES6 and beyond but it is now unmaintained (lots of unfixed bugs) and led to terser as a fork. Since node and many recent browsers natively support ES6, more and more projects are shipping native ES6. Uglify-js cannot be used for these. d3 switched to terser for example (one of the packages I maintain). Try minifying node-d3-zoom for example (change uglifyjs.terser to just uglifyjs in rules). It reminds me the story of Newton and cat doors[1]. [1] https://science.howstuffworks.com/innovation/famous-inventors/5-isaac-newton-inventions2.htm -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
Re: [Pkg-javascript-devel] Uglify-js vs terser: plan for bullseye
Quoting Pirate Praveen (2019-07-27 20:15:48) > While updating webpack to 4.0, I came to know terser is a drop in > replacement for uglify-js and uglify-es (both unmaintained now). > > Should we target moving to a single minifier for bullseye? > > Advantage is less maintenance (less number of packages to maintain) > and it seems terser is in a better position compared to other minifier > projects. terser and uglify-js are competing projects. I am unaware of any conclusive information on either of them being superior to the other for all(!) use-cases. I intend to maintain both projects, unless convinced otherwise. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private signature.asc Description: signature -- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel