I recommend to use uglify-js 3 instead of terser, when possible. * Terser can minify modern code (uglify-js 3 only ES5). * Uglify-js 3 needs 3 nodejs packages to build (terser needs 134). * Uglify-js 3 package is up-to-date (terser is 16 months behind).
Therefore, for code that is written as or transpiled to ES5, better use uglify-js 3 to minify it: Your package then a) gets minified using newest upstream knowledge, and b) reduces risk of getting caught in in a larger package migration. Specifically, do *not* casually switch a package from uglify-js 3 to terser when helping out others in the JavaScript team: Please ask first. (avoid uglifyjs 2, however: It is ancient and unmaintained code!) - 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 [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
