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
to support passing commas in strings in for example:
uglifyjs2 -cd TEST="'a,b'" <<EOF
c...
we need to mangle names from outermost to innermost scope; mangling names
from inner scopes befo...
pass `false` to separate statements with newlines instead of semicolons
6472f9410ec93c4f934643d7fd7ff3edeef6b191 authored about 12 years ago by Mihai Bazon <[email protected]>8957b3a694195a6e049472f7ef463b4ae3c0f8b8 authored about 12 years ago by Mihai Bazon <[email protected]>
1ffd5265545c80babc9e7002ff42a64a0453d589 authored about 12 years ago by Mihai Bazon <[email protected]>
also add test for "drop_unused" (the last one fails for now)
fcc0229087c4efd212a1050f38d3049d52344b3a authored about 12 years ago by Mihai Bazon <[email protected]>b071c9d079e3acbfb521a6634364c5816d3be280 authored about 12 years ago by Mihai Bazon <[email protected]>
the following code in benchmark.js triggered the issue:
support.decompilation = Function(
...
708abb1ab141c737a70fca9e0af839a0b68d9db0 authored about 12 years ago by Mihai Bazon <[email protected]>
is_digit takes a char code now, not a string
370d3e09172c35e4f0a7c6a47edd53625b6e2012 authored about 12 years ago by Mihai Bazon <[email protected]>b51fe0dcc348fe2c3942b04c7c7d88f3fb7eaa49 authored about 12 years ago by Mihai Bazon <[email protected]>
70d205c447c05d053c953659d3ddc41759e37579 authored about 12 years ago by Mihai Bazon <[email protected]>
8149be551e238442e9378f8ef4e5eaa2554bf9bf authored about 12 years ago by Mihai Bazon <[email protected]>
ba3df646c0ce2a8997937423c9df9d2da0670ded authored about 12 years ago by Mihai Bazon <[email protected]>
operations are destructive anyway, so there's no point to clone the nodes in
the transformer. s...
731fa9c2360334d374593ea0a79031d24c9c7107 authored about 12 years ago by Mihai Bazon <[email protected]>
72cb5328ee58307ccb9bc91ac5826c3a41aac4d2 authored about 12 years ago by Mihai Bazon <[email protected]>
so that the optimization that drops the name if unused doesn't apply.
close #12
d9d67317b1283886b24fec9a4c6607bf729a5e59 authored about 12 years ago by Mihai Bazon <[email protected]>
fb5c01c073d06034815d5f3b782fd11cbdf6d6f5 authored about 12 years ago by Mihai Bazon <[email protected]>
string is keyword, reserved etc.
speeds up the parser a bit, though not spectacular.. still far ...
f4584af42c8baa0a8f221adf1ff9a85765163e4b authored about 12 years ago by Mihai Bazon <[email protected]>
- use prototype-less objects where feasible (minor speed improvement)
- get rid of HOP
5053a29bc0b723bbf468f50e0434c3eff38600e2 authored about 12 years ago by Mihai Bazon <[email protected]>
close #11
f322b32e0e8df5b60f577da401922f11048f2f87 authored about 12 years ago by Mihai Bazon <[email protected]>9cdaed9860e22513b76f8fe0ad74c1fa2faaf4d9 authored about 12 years ago by Mihai Bazon <[email protected]>
dacce1b1fad07f5e62d62c52f05a42aa19c0e434 authored about 12 years ago by Mihai Bazon <[email protected]>
- use MAP.splice instead of a BlockStatement to inject code (avoids some
warnings in the linte...
c5ecbfc756a4ed0aa736a82a062441b97effa7f5 authored about 12 years ago by Mihai Bazon <[email protected]>
3799ac8973bb0bd08efe7a2af27808e5917183cc authored about 12 years ago by Mihai Bazon <[email protected]>
86182afa7f3c6d6159e2ade7b88306ab1f62832b authored about 12 years ago by Mihai Bazon <[email protected]>
4807c6e75686ea722a2424e7a1dd369225c1be3b authored about 12 years ago by Mihai Bazon <[email protected]>
a84d07e31298fc1f8825b0047629634920667707 authored about 12 years ago by Mihai Bazon <[email protected]>
88beddfa91c8f362cc74538937ce883541e77680 authored about 12 years ago by Mihai Bazon <[email protected]>
hopefully we can make the AST documentation self-generating
1b0aab2ce9e7f429ceeda98ee0cda448085918ec authored about 12 years ago by Mihai Bazon <[email protected]>9ead49641da82de3a27ed813a056628f83da379c authored about 12 years ago by Mihai Bazon <[email protected]>
displays a rather cruel description of the AST classes, derived
directly from the node definitions.
2c025f23db6efb6d1442208d81c2080d40c44f10 authored about 12 years ago by Mihai Bazon <[email protected]>
Fix crash in minify function
9dfcd47ec8fef20a7c6f994bb8896a16ffa0eb2b authored about 12 years ago by Mihai Bazon <[email protected]>
When inSourceMap is omitted fs.readFile throws exception. Fixed version
calls fs.readFile only w...
c967f0b0fefd7db03922769f1d2aaf2ae1394ddc authored about 12 years ago by Mihai Bazon <[email protected]>
(refs #7)
dfc04e66770f463e1ae97547950e6b829aaeeeff authored about 12 years ago by Mihai Bazon <[email protected]>42ea3c95e0ef4d7831b466c6a42e06705fd31535 authored about 12 years ago by Mihai Bazon <[email protected]>
d4970b35acb6142157e3f6dd4505ae0e44a175c6 authored about 12 years ago by Mihai Bazon <[email protected]>
dd8286bce152125d18a0af13a6088049303f2993 authored about 12 years ago by Mihai Bazon <[email protected]>
093a9031dc15b2e2bd85850f3f3eb7fe90f01bd7 authored about 12 years ago by Mihai Bazon <[email protected]>
map from, so just use "?". and in any case, don't fail hard when addMapping throws.
80a18fe2fa60d8a689516b921a386839d30b6abe authored about 12 years ago by Mihai Bazon <[email protected]>fe1411bba1368c4e3c1fe92459e956ec4a4c5ee6 authored about 12 years ago by Mihai Bazon <[email protected]>
455ac5435d2adca919ec6fd4e195af75aa0f09fe authored about 12 years ago by Mihai Bazon <[email protected]>
4a2b91220a9bda0f8257dde72c7b35e50fecf341 authored about 12 years ago by Mihai Bazon <[email protected]>
a1e088593068a59ea7e620dc0cf412f1c01caa86 authored about 12 years ago by Mihai Bazon <[email protected]>
7ae09120ed5080ef09760def08dd7803ec977b1b authored about 12 years ago by Mihai Bazon <[email protected]>
42c25d901cb62917723b0b09285921de73d6eb6d authored about 12 years ago by Mihai Bazon <[email protected]>
e88dcc3819bd5af933d124fc5bf2b021366d5f28 authored about 12 years ago by Mihai Bazon <[email protected]>
ecd9f21467c32b6a0076a99bdd895cf37244683a authored about 12 years ago by Mihai Bazon <[email protected]>
a9b6f9909a331740cae4a37f1fc6bb40801674fe authored about 12 years ago by Mihai Bazon <[email protected]>
708ec0467cc584a1cbc377f9d724084357ca5d1a authored about 12 years ago by Mihai Bazon <[email protected]>
682a58a1f55d171a1705bdb16ec98e5c2ec855a1 authored about 12 years ago by Mihai Bazon <[email protected]>
f20c25188297d8a18e81c01af10986b23d90671c authored about 12 years ago by Mihai Bazon <[email protected]>
returns an UglifyJS2 AST given a Mozilla AST. Still needs some work to do
(need to create speci...
42ce7ed6067b45afa244ec96f1c1a766a8f98ffe authored about 12 years ago by Mihai Bazon <[email protected]>
11863d6f9a48d6c7194ad65f9cc140292aedc948 authored about 12 years ago by Mihai Bazon <[email protected]>
3412498795cfeb4c5700c39e05f895c96412695f authored about 12 years ago by Mihai Bazon <[email protected]>
9221ad62dbca2d9cccd252ddc1344f221767bc96 authored about 12 years ago by Mihai Bazon <[email protected]>
c11de17e99fed5181f4be6e7a803aa92edce5459 authored about 12 years ago by Mihai Bazon <[email protected]>
e0f5075e45b8914d2543238565f771d4822117ca authored about 12 years ago by Mihai Bazon <[email protected]>
bd94eeb6f7ba5a6cbc8f9547766857d9873f862a authored about 12 years ago by Mihai Bazon <[email protected]>
7e8880be1cb24d628eed183c87479ff01f7b7848 authored about 12 years ago by Mihai Bazon <[email protected]>
0678ae2076a9f817ecb8837279c24cf54ea819c2 authored about 12 years ago by Mihai Bazon <[email protected]>
378ed178095e8d02b8ceab9d6d8e890eea1ab04d authored about 12 years ago by Mihai Bazon <[email protected]>
5c151f90b3bc14080072d41fd589dc74ff859fc6 authored about 12 years ago by Mihai Bazon <[email protected]>
815abcfe1847c10fb257f5651561272743c1f754 authored about 12 years ago by Mihai Bazon <[email protected]>
cb2e811191238eb5adfa3560630770649fe29ec9 authored about 12 years ago by Mihai Bazon <[email protected]>
075f93ec0dd8a86a87632ac1e2b1aac3b115f7c0 authored about 12 years ago by Mihai Bazon <[email protected]>
2a5456260e01af2228356edfb6e31e3946fcbd91 authored about 12 years ago by Mihai Bazon <[email protected]>
36be211e99ec7c65e156499d53f471a1e55a6fd1 authored about 12 years ago by Mihai Bazon <[email protected]>
dde5b22b5e99d4a75c8918659b7f73abed436ce2 authored about 12 years ago by Mihai Bazon <[email protected]>
e1098b04a7e8b3ebd4faf598b2b8b30bceba14d6 authored about 12 years ago by Mihai Bazon <[email protected]>
211792757cf8cb8529f99122efa52f5f5d558132 authored about 12 years ago by Mihai Bazon <[email protected]>
347160c63138dcd7fbe107ae80309ad86d58a2e1 authored about 12 years ago by Mihai Bazon <[email protected]>
ff696cd7bc507ad0ffc5444bff39de9b6ad10a7e authored about 12 years ago by Mihai Bazon <[email protected]>
9e5dd81f1e98b5c77084e19345191d630576cc44 authored about 12 years ago by Mihai Bazon <[email protected]>
896444482a4044c21b68a1eb58cfe8639b628279 authored about 12 years ago by Mihai Bazon <[email protected]>
(bug in our code prevented the mangler from using a name that was in use
prior to mangling but n...
13278c6649189ffea363ac51be5f6b9738e04ff7 authored about 12 years ago by Mihai Bazon <[email protected]>
15d58f5917cba980754553a1578c9d339cc7b419 authored about 12 years ago by Mihai Bazon <[email protected]>
78be8f52964ab9d391fedc0dc2cc9315fcb56437 authored about 12 years ago by Mihai Bazon <[email protected]>
a24e7ee976787915c4d8f232bc980174674edb0b authored about 12 years ago by Mihai Bazon <[email protected]>
e979d01f048a7d1e0fe80e782af107a54ec0c5d0 authored about 12 years ago by Mihai Bazon <[email protected]>
242dd101313e1698b731954f551bef9014cc9b0f authored about 12 years ago by Mihai Bazon <[email protected]>
9321d418bc76b299bfcc627f6dafb49df1832881 authored about 12 years ago by Mihai Bazon <[email protected]>
10c7f52074718b506d9ebfe5cc5a9c7dd9c25b5a authored about 12 years ago by Mihai Bazon <[email protected]>
4201577dd7c75c1d1b1bddf5c153373275b8e977 authored about 12 years ago by Mihai Bazon <[email protected]>
e836e2ae5fbc61731a9b59b075310f0234c948bc authored about 12 years ago by Mihai Bazon <[email protected]>
(getters/setters + various browser bugs will trigger side effects; also, an
exception is thrown ...
368ac8f93ca7ea704ee0eabd419cd083c6b843aa authored about 12 years ago by Mihai Bazon <[email protected]>
This is useful while compressing generated code; for example compressing JS
compiled by CoffeeSc...
4f97da96608744e9f20c3994d8d1e66d6b6949a1 authored about 12 years ago by Mihai Bazon <[email protected]>
referenced and have no side effects
a83b28503f4673aeb744b45306500584a6480e29 authored about 12 years ago by Mihai Bazon <[email protected]>76d88b59dcd28b836b2cdaf7908bfd5acaa88ebc authored over 12 years ago by Mihai Bazon <[email protected]>
ec7f895b54924e90e17d828cfd7db4c62830f93d authored over 12 years ago by Mihai Bazon <[email protected]>