Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/terser/terser
🗜 JavaScript parser, mangler and compressor toolkit for ES6+
https://github.com/terser/terser
previously test cases with the same name would be skipped except for the last one
`test/run-tes...
c525a2b1907fdef36acffdeea4cf02ae476d8399 authored almost 8 years ago- support arrays, objects & AST_Node
- support `"a.b":1` on both cli & API
- emit warning if vari...
fixes #1377
closes #1488
closes #1487
c06a50f338c1b473f38577d720ccf9b4ff22dc4f authored almost 8 years agoreduce whitespaces from if-else statements
fixes #1482
closes #1483
- `test/benchmark.js` measures performance
- `test/jetstream.js` verifies correctness
- configura...
fix invalid boolean conversion now exposed in `make_node_from_constant()`
closes #1477
974247c8c0e57901ef776e86784c8c9a1b87b5de authored almost 8 years ago- `Array.prototype.slice` => `[].slice`
closes #1491
ec64acd2c8d8573abd5b77f8f8946767444841bb authored almost 8 years ago- never exceed specified limit
- otherwise warning is shown
- enabled only for final output
clos...
8898b8a0fe87f71c0ea2d35face6dfbf11db27ec authored almost 8 years ago
N = 2:
a;
b;
c;
d;
was:
a, b;
c;
d;
now:
a, b;
c, d;
fixes #1455
closes #1457
closes #1449
d11dca3cf9e34302ce12a6c9f1cd81b22551f2ba authored almost 8 years ago- `do{...}while(false)` => `{...}`
- clean up `AST_While` logic
closes #1452
ae4db00991c6155fde42bd00c30614d922a4219a authored almost 8 years ago
fixes
- [a].join() => "" + a
- ["a", , "b"].join() => "a,,b"
- ["a", null, "b"].join() => "a,,b"...
- assign statement does not count towards variable usage by default
- only works with assignments...
shuffle associative operations to minimise parentheses and aid other uglification efforts
closes...
6b3c49e45837e8e1b32b60fe3b217b965ac16efd authored almost 8 years agomove out of unsafe, guard corner case with screw_id8 instead
closes #1446
e5badb954157d41dba3cc74f8813a90a145d9ca3 authored almost 8 years agohappens when inner function:
- just below top level
- not referenced
- `unused` is disabled
clos...
fa668a28b47e06d838659d4e0910460c84ca3a61 authored almost 8 years agothey are computed but never used
closes #1444
686a496b1c8c3762768c0da6ef98b37167d4d4ba authored almost 8 years agoremove extraneous call to AST_SymbolRef.reference()
closes #1443
11676f9d72e667ea14ce380ed448da948e79f85e authored almost 8 years agocloses #1437
dd31d12a9110b34c1b45a72b6e1f2b64c2d7afe9 authored almost 8 years agoverify that property names after mangle are legal
eb55d8a9bb37cc28303ace91337784dbf0777d03 authored about 8 years ago81f1df14d7c931cddedad9666a7c57f4373ec918 authored about 8 years ago
4bd31607f665499543bbc83192225203ae6763d1 authored about 8 years ago
improved reduce_vars & binary operands produce more optimal results
7f8d72d9d37396f2da05d5d824f74bd414c30119 authored about 8 years ago
* fix mangling collision with keep_fnames
fixes #1423
* pass mangle options to figure_out_sc...
1eaa211e0932105439d98d4f03a981f157f0a77c authored about 8 years ago
- remove call to evaluate() in is_constant() and let nested optimize() does its job instead
- r...
- gated by `unsafe`
- replaces previous optimisation specific to String.length
- "123"[0] => 1...
4728bc73ad6c6031029766df72a7e544af0511fc authored about 8 years ago
48284844a461e6113bb9911cdcdad7ab8a3d85de authored about 8 years ago
52ce9a333c78ba372a995f56c3b0352a7b08f6e8 authored about 8 years ago
abbeb266b521be5530eca26c466161f76678969d authored about 8 years ago
Clarify docs, help and tests for --support-ie8 and screw_ie8=false
ec2e5fa3a2e5cf421aebd94b93c668b18e540c69 authored about 8 years agoda17766ddda3b89f94706ad7e329faa66a3e3a3e authored about 8 years ago
Regression since 110a1ac885ba224cbc677e42695e252068edd267
b11c5151bc23f91d3ef63cc952f5b83073029e0c authored about 8 years ago0913db8c84c670a2d34fd312295e54c679807558 authored about 8 years ago
962b1f3d409934e1c1603c730d574ce56eaa2a58 authored about 8 years ago
5c7705fcada66f35878427d620a194ad9d2f2918 authored about 8 years ago
3ee46e91e802fb8bf20656bce115375c5f624052 authored about 8 years ago
f6372483a0c555a3aaf900ffa1a9ccc6585b59f9 authored about 8 years ago
ee26e7f11bad3db89e2ec752a27c03413a752bb8 authored about 8 years ago
937f534392256b3ec5bb39d02fd3cd08dd977037 authored about 8 years ago
If using `inSourceMap` this fix will ensure the copying of `sourcesContent` is based on potentia...
98f330658f5cd0dfb3004815d05f123f4110c2e0 authored about 8 years agoAlso add .gitattributes to checkout lf eol style
1b2c02c944b5f5345a83431be6c67e3a38ee59c0 authored about 8 years ago0aa526e72cb498fbf2e9f91cfe34944f869efb40 authored about 8 years ago
0a35acbbe7e663c643c5b227e455816278e08b89 authored about 8 years ago
a7b3b0d3a55e2c48b63102dd111f27f8b9717788 authored about 8 years ago
Patch by @AshleyScirra
Based on: PR #1316
Renamed the CLI debug option to --mangle-props-debug...
2a9989dd18c01081c486fe9089e3bb64079c773b authored about 8 years ago79b98a9fe87f950607c601a45a3566a46c32f425 authored about 8 years ago
c2112d588695791d71d6d362232be6c2b5641f90 authored about 8 years ago
057de570e69b300ca472719cb234a32e593d34ec authored over 8 years ago
Will return false if AST_Node is instance of AST_Scope for now.
5f6825f9ecc7a98fc04b33851275c5eea30f9360 authored over 8 years ago7e80a979a7f6bad21f54c63612dd4217ef5a7ca8 authored over 8 years ago
b7bb7061503c247393bd0aa8ae9dd80167028a98 authored over 8 years ago
557b3e412fb44906e0a41dc2c209e5712bd67974 authored over 8 years ago
Also clarify documentation a bit more about using regexp as filter
8d74f3437352e22b3fd18ce602a4378170ec6598 authored over 8 years ago
Using the symbol declaration tracking of UglifyJS doesn't make sense here
anyway, `arguments` al...
e51c6ba38014fc73a4804a69c556d96f777bc0b3 authored over 8 years ago
32c2cc33bbb05a70cd67106afb6913d4517d00de authored over 8 years ago
947b8750e8a47b552a51ec38e3954a1bbb15db19 authored over 8 years ago
6389e52305f0d2e75a7bc6f8703c8d163d04cb99 authored over 8 years ago
For #1307.
e05510f3bce78943f76649a4102c2f10bfccdaef authored over 8 years agoFixes #1289 with suggestion by @rvanvelzen
fc9804b90955d3b38ac6e6c903a8c0e3f7945913 authored over 8 years ago4761d07e0bc3d4c53e0c9c72fc9c322c95cb090e authored over 8 years ago
88f6ff38d156fac213191e9e5cbe735819686a08 authored over 8 years ago
4198095a9c755fb9051292d0ac74eb92b7c5271e authored over 8 years ago
Also removing more code within "loop" while at it.
0111497fc98d5098f81bc749f77da5734add37bb authored over 8 years ago
Including improvements for parameters, variable assignment and
catch parameter.
1db50c3b169ee4195e1935013d6721628eb5b4bd authored over 8 years ago
Account for side effects in `string + expr` optimization
7d8dea3b2675f9d86ea15bb031b7fe166858d67e authored over 8 years ago25fc02743af0e3fec6b10ffdb5cee3b7f22b9889 authored over 8 years ago
7f6b5d662b4714af31b36ec485f56b778034427c authored over 8 years ago
0bd8053524760531eb582ef0716fcfe2104c3014 authored over 8 years ago
- Make AST_ConciseMethod child of AST_ObjectProperty.
- Fix some typos.
67461666dc3ba1cd75d067418092de145c687587 authored over 8 years ago
1a78bbcd23e8db214872f1cd403f1b42503aaf9c authored over 8 years ago
45d81f881b03747aed08cb20dcd6911745128b86 authored over 8 years ago
Fix for #1256, partially reverts d854523783b4
8430123e9d2d12442312bbdcdf54004dc6d29c12 authored over 8 years ago614db97cca9d4ccf84af2597aa8b97285646e729 authored over 8 years ago
8c7d23dfb18554a48662155542bb38c96962e9eb authored over 8 years ago
d854523783b4a73d1dd734605f1c41fcae86e932 authored over 8 years ago
7fa0dbdeb97d01eb40cb2ab492531eac3c0cd820 authored over 8 years ago
c644c1292d564caf980f10f2be48f6f839a0424f authored over 8 years ago
781f26eda1327265f15ef5a213c69b5f9a551ca2 authored over 8 years ago
Also fix a trivial style mistake.
37f4395cc0a48b76258f576a0849a4fb35767541 authored over 8 years agoFixes: #1247
Fix --mangle-props and --name-cache inconsistency.
AST_Dot and AST_Sub properties ...
86859f6d7e9e738ccf09a83a28962c9bad8e959f authored over 8 years ago
72306b9885dffcc206b6637a9c22e54fa54a168d authored over 8 years ago
dcdcfe4d39e8769e8d7504f167610883e250d266 authored over 8 years ago
d224d71b8dd9a113ac360f63895a7d6a7e2ef813 authored over 8 years ago
307b88d6ccecf3de4150450ac651594db1b8ba56 authored over 8 years ago
38756b1f269fec9fc7f13b82d014478662d00c4d authored over 8 years ago
85a09fc3b69cd4ea4b01151e235815b0796373f3 authored over 8 years ago
fb049d3a81b744a5facf1f032b8b2815c410f178 authored over 8 years ago
Don't use 2 characters for surrogates in identifiers because there is
support for the \u{} synta...
67cca43358cfcf7ff2e7c9e5532bc975fb2591d0 authored over 8 years ago
Also add quotes to properties when necessary,
this might be the case if the name isn't a valid
i...
3f8fc3a316a60b67acf09b2b2cf887f0209c7d71 authored over 8 years ago
Also do not pollute env with mocks replacing standard globals
88384cf351b33017ef4aa5253357cb2ff115fd2f authored over 8 years ago
* Implement getter/setter with computed value
* Fix parsing getter/setter after static or genera...
642273c29002e7676719f489d7fcf552974118f4 authored over 8 years ago