v3.17.1
Comparing Changes: v3.17.0...v3.17.1
- π fix: fix [email protected] error. 45ec04b
npm i [email protected]
import UglifyJS from 'uglify-js-export';
const code = "function add(first, second) { return first + second; }";
const result = UglifyJS.minify(code);
console.log(result.error); // runtime error, or `undefined` if no error
console.log(result.code); // minified output: function add(n,d){return n+d}