-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minify makes js bigger #15
Comments
also const source = `for (let e of l)(e.o=w(e.o)),(e.l=w(e.l))`; result for(let e of l){(e.o=w(e.o));(e.l=w(e.l))} expect for(let e of l)e.o=w(e.o),e.l=w(e.l) |
also const source = `() => { d(); return 1 }`; result ()=>{d();return 1}; expect ()=>(d(),1) |
Thanks! Current result: ()=>{try{return 1}catch(e){console.log(e);return 2}}; |
Just updated, please try latest version of |
2/3 works const source = `for (let e of l)(e.o=w(e.o)),(e.l=w(e.l))`; does not work for this line |
Landed in Is it works for you? |
Almost, now I have it for(let e of l)(e.o=w(e.o)),(e.l=w(e.l)); but expect for(let e of l)e.o=w(e.o),e.l=w(e.l) |
Landed in v3.19.1 🎉. Is it works for you? |
Also found a related error const source = `export const s = () => a ? (p(),i) : 2` result export var s=()=>a?p(),i:2; export var s=()=>a?p(),i:2;
^
SyntaxError: Unexpected token ','
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:169:18)
at callTranslator (node:internal/modules/esm/loader:272:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)
at async link (node:internal/modules/esm/module_job:78:21)
Node.js v20.13.1 |
Could you please create another issue for another cases |
Landed in v3.19.3. SequenceExpressions is black hole I would be happy to add more features to support every case, but it will be definitely a lot of them, maybe 20 more, who knows, let's use different issues for each syntax related case. |
npm -v
): 10.5.2node -v
: v20.13.1uname -a
on Linux): Darwin arm64Looks like @putout/minify makes js bigger
The text was updated successfully, but these errors were encountered: