Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
A transform to make UglifyJS work in CommonJS.
NotificationsYou must be signed in to change notification settings
jaywcjlove/uglify-js-export
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
UglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.
A transform to make UglifyJS work inCommonJS.
npm i uglify-js-export
importUglifyJSfrom'uglify-js-export';constcode="function add(first, second) { return first + second; }";constresult=UglifyJS.minify(code);console.log(result.error);// runtime error, or `undefined` if no errorconsole.log(result.code);// minified output: function add(n,d){return n+d}
Licensed under the MIT License.
About
A transform to make UglifyJS work in CommonJS.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.