v3.15.5
Comparing Changes: v1.0.2...v3.15.5
- π chore: update workflows config. 87ca358
- π doc: Update README.md 1773a03
- π feat: add homepage field in package.json 7be6d4c
- π chore(deps): Pin dependencies uglify-js to v3.15.5 2cbc2e9
npm i uglify-js-export@3.15.5
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}