Comments (6)
I would be willing to help with that -- it would give others a good task list of things to work on as well.
from terser.
@toddself please feel free to go ahead with this - perhaps with something like a "[uglify-es]" prefix or similar to make these easy to distinguish, although ideally we should have a new label for this.
from terser.
Most open harmony bugs have already been fixed in @fabiosantoscode/uglify-es
. Please verify that a given bug still exists before creating a ticket. Please follow this project's new issue template with an unambiguous succinct test case producing bad output once minified with certain options.
I wouldn't bother porting feature requests and non-bugs. Individuals can open such tickets in this project.
from terser.
Thanks to the hard work from @kzc and @fabiosantoscode it looks like the only remaining bugs in the uglify-js that aren't marked as resolved in the threads are:
The first two seem to be low priority/edge cases. The last one involves the test262 feature set. Are these even worth porting over?
from terser.
@toddself Thanks. Like you say those are obscure edge cases. I think users can report issues to this project as they arise.
Other known issues with uglify-es
and this fork:
- TDZ - mishoo/UglifyJS#2750
- ES6 block scope issues for classes and functions
$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | bin/uglifyjs --toplevel -c | node
FOO
$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node0_10_41
FOO
$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node0_12_9
FOO
$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node421
FOO
$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node621
[stdin]:1
while(0){function foo(){console.log("FOO")}} foo();
^
TypeError: foo is not a function
Functions and classes still incorrectly follow ES5 scope rules as node versions 0.10, 0.12 and 4.x did.
from terser.
No need for this ticket now that people are becoming more familiar with the Terser project.
from terser.
Related Issues (20)
- Does not remove empty blocks
- terser 5.16.4 will not work properly with webpack4.x
- discussions tab? HOT 2
- IIFE is not unwrapped if it has a pure annotation
- SyntaxError: Unexpected token: punc (.) on build atempt HOT 3
- The mangle `reserved` option does not stop labels from being renamed HOT 1
- Useless contsructor not removed HOT 1
- empty constructor not removed HOT 1
- Add RegExp properties to domprops
- Global variable dropped by mistake HOT 9
- Option to Exclude Built-in Objects from Mangle Process HOT 2
- mangle a boolean property get a error result HOT 1
- Let `keep_fnames` mangle implicit function names (variable names of arrow functions) HOT 1
- Anonymous functions HOT 1
- ERROR: Maximum call stack size exceeded HOT 2
- Incorrect handling of function default params when shadowed HOT 3
- Is it supports TypeScript to TypeScript obfuscation? HOT 1
- Resolve Ternary Operations with Static Conditions HOT 2
- Resolve Switch Statements with Static Conditions HOT 2
- keep_classnames doesn't work with var MyClass = class {} when using toplevel: true HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terser.