Skip to content

v3.15.5

Compare
Choose a tag to compare
@github-actions github-actions released this 26 May 08:57
· 41 commits to main since this release

npm version npm version CI

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}