UglifyJS
UglifyJS copied to clipboard
JavaScript parser / mangler / compressor / beautifier toolkit
**Uglify version (`uglifyjs -V`)** ``` bash uglify-es 3.3.9 ``` **JavaScript input** In case of using `for await...of`, it occurs error ``` javascript const tests = [ Promise.resolve('test 1'), Promise.resolve('test 2'),...
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition
**Uglify version (`uglifyjs -V`)** uglify-js 3.17.4 **JavaScript input** ```js var hasFocusStyle = function (attr) { if (attr.$ === 4 && attr.b.$ === 11 && !attr.b.a) { var _v1 = attr.b;...
I'm using the **Uglify version 3.17.4** package to minify code on the backend side to execute it later on frontend side like this: ``` const sourceCode = `async function myFetch()...
This project relies heavily on `require.resolve`. While this was initially introduced for [better webpack support](https://github.com/mishoo/UglifyJS/pull/3435), this causes issue with other bundlers that don't support `require.resolve` such as [esbuild](https://esbuild.github.io/). I was...
Implement #5815
(I've only recently delved a little into js, so feel free to point out where there's a problem) Consider the following code: ```js //Initialize all sstp operations let sstp_version_table =...
**Uglify version 3.17.4** **JavaScript input** This code is already mangled from a previous pass, but it is actually the input in this test case. `source-file.js`: ```js function f(e) { const...
**uglify-js 3.17.4** input ``` (function() { var a = []; a[0] = 1; a[1] = 2; a[2] = 3; console.log(a); })() ``` commandline ``` uglifyjs --config-file u.json status.js ``` config...
Declaring the same variable name inside `switch` causes the outer one to drop when uglified with `unused=true` option. **Uglify version (`uglifyjs -V`)** ``` uglify-js 3.17.4 ``` **JavaScript input** ```js (function()...