Richard van Velzen
|
d5c651a5e5
|
Allow cli options to be specified in separate definitions
Fix for #963. This allows stuff like `--define a=1 --define b=1` besides only `--define a=1,b=1`
|
2016-02-10 10:14:46 +01:00 |
|
Martii
|
cdba43cfa4
|
Create and map bare-returns into new parse property name
|
2016-02-08 10:45:42 +01:00 |
|
Boris Letocha
|
a123e232b9
|
Fixes #951 missing export for SymbolDef
|
2016-01-31 21:41:38 +01:00 |
|
Mihai Bazon
|
601780acc1
|
Merge pull request #949 from kzc/collapse_vars_conditions
collapse_vars: fix if/else and ternary operator side effects
|
2016-01-29 18:05:39 +02:00 |
|
kzc
|
7c3fee9e31
|
collapse_vars: avoid replacement across AST_Case nodes to be on safe side even though no issues seen.
|
2016-01-29 10:35:07 -05:00 |
|
kzc
|
929de2b0de
|
collapse_vars: fix if/else and ternary operator side effects
|
2016-01-28 12:17:06 -05:00 |
|
kzc
|
12e6ad326c
|
collapse_vars: small change to README
|
2016-01-28 11:04:30 -05:00 |
|
kzc
|
00c8d1d241
|
collapse_vars: document option in README
|
2016-01-28 11:01:17 -05:00 |
|
kzc
|
af2472d85e
|
collapse_vars: fix bug in repeated var defs of same name
|
2016-01-28 16:48:50 +01:00 |
|
Bryan Rayner
|
3eb9101918
|
Add mangleProperties documentation to README
Add additional documentation to mangleProperties.
|
2016-01-27 14:24:32 -06:00 |
|
kzc
|
0a38a688f9
|
fix bug in collapse_vars for right side of "||" and "&&"
|
2016-01-27 14:18:46 -05:00 |
|
kzc
|
f4c2ea37bf
|
Collapse single use var definitions
Fix #721
|
2016-01-27 11:48:15 +02:00 |
|
Mihai Bazon
|
915f907186
|
Add start/end in the arguments definition
(keeps my https://github.com/mishoo/jsinfo.el working)
|
2016-01-27 11:36:03 +02:00 |
|
Jeremy Marzka
|
799509e145
|
Added a mangle properties option
|
2016-01-26 22:10:08 +01:00 |
|
Richard van Velzen
|
b5a7197ae5
|
Merge pull request #928 from STRML/constPragma
Mark vars with /** @const */ pragma as consts so they can be eliminated.
|
2016-01-20 19:04:36 +01:00 |
|
Samuel Reed
|
1b703349cf
|
Tighten up @const regex.
|
2016-01-20 11:35:45 -06:00 |
|
Samuel Reed
|
4a7179ff91
|
Simplify by skipping extra tree walk.
|
2016-01-20 11:03:41 -06:00 |
|
Samuel Reed
|
f97da4294a
|
Use TreeWalker for more accurate @const results and update tests
|
2016-01-20 10:54:00 -06:00 |
|
Samuel Reed
|
918c17bd88
|
Update README for /** @const */
|
2016-01-19 13:24:36 -06:00 |
|
Samuel Reed
|
8b71c6559b
|
Mark vars with /** @const */ pragma as consts so they can be eliminated.
Fixes older browser support for consts and allows more flexibility
in dead code removal.
|
2016-01-19 13:23:02 -06:00 |
|
Anthony Van de Gejuchte
|
26641f3fb2
|
Allow operator names as getters/setters
Fixes #919
Fix provided by @kzc
|
2016-01-19 19:28:51 +01:00 |
|
Anthony Van de Gejuchte
|
ebe118dc79
|
Add keywords to package.json
Should hopefully bump up on the results of the npm site when searching `uglify`
|
2016-01-19 19:26:55 +01:00 |
|
Anthony Van de Gejuchte
|
70e5b6f15b
|
Add some tests for comment-filters through api
Also never bother comment options to filter comment5/shebang comments
as they have their custom filter.
|
2016-01-19 19:14:19 +01:00 |
|
Richard van Velzen
|
57e0fafd5c
|
Merge pull request #918 from avdg/fix-arguments-handling
Never mangle arguments and keep them in their scope
|
2016-01-18 18:35:48 +01:00 |
|
Anthony Van de Gejuchte
|
8439c8ba98
|
Make arguments test slightly more strict
|
2016-01-15 00:04:05 +01:00 |
|
Anthony Van de Gejuchte
|
5c4e470d43
|
Add scope test for arguments
|
2016-01-14 22:32:46 +01:00 |
|
Anthony Van de Gejuchte
|
6605d15783
|
Never mangle arguments and keep them in their scope
Fixes #892
Helped-by: kzc
|
2016-01-14 19:45:52 +01:00 |
|
Richard van Velzen
|
ac8db977b9
|
Merge pull request #905 from avdg/unit-tests
Add unit tests
|
2016-01-14 08:54:40 +01:00 |
|
Anthony Van de Gejuchte
|
88b77ddaa9
|
Add test case for line continuation
|
2016-01-13 00:34:56 +01:00 |
|
Mihai Bazon
|
fe4e9f9d97
|
Fix hoisting the var in ForIn
Close #913
|
2016-01-05 13:56:52 +02:00 |
|
Anthony Van de Gejuchte
|
8c6af09ae0
|
Add mocha tests
|
2015-12-27 22:38:20 +01:00 |
|
Anthony Van de Gejuchte
|
6f3e35bb3f
|
Fix ch that could contain other newline characters
|
2015-12-27 22:24:37 +01:00 |
|
Anthony Van de Gejuchte
|
174404c0f3
|
Do not allow newlines in string literals
|
2015-12-26 15:08:37 +01:00 |
|
Richard van Velzen
|
60c4030a4d
|
Merge pull request #874 from kzc/fix-conditionals
#873 Fix `conditionals` optimizations with default compress options
|
2015-12-26 14:28:33 +01:00 |
|
Richard van Velzen
|
ac810dc07a
|
Merge pull request #896 from avdg/do-while-semicolon
Semicolon after do...while statement is optional
|
2015-12-26 14:26:22 +01:00 |
|
Anthony Van de Gejuchte
|
0cabedc526
|
Disable loop optimization for parse-only tests
|
2015-12-18 19:20:56 +01:00 |
|
Anthony Van de Gejuchte
|
5cd26c005b
|
Add tests
|
2015-12-18 14:39:48 +01:00 |
|
Anthony Van de Gejuchte
|
bd99b00413
|
Semicolon after do...while statement is optional
|
2015-12-17 23:02:35 +01:00 |
|
Richard van Velzen
|
9e2f9f7910
|
Merge pull request #879 from ReadmeCritic/master
Update README URLs based on HTTP redirects
|
2015-12-07 19:04:56 +01:00 |
|
ReadmeCritic
|
e87c77ed41
|
Update README URLs based on HTTP redirects
|
2015-11-27 08:46:55 -08:00 |
|
kzc
|
774bda13cd
|
#873 Fix conditionals optimizations with default compress options
|
2015-11-24 13:27:50 -05:00 |
|
Mihai Bazon
|
15b5f70338
|
v2.6.1
v2.6.1
|
2015-11-16 12:10:47 +02:00 |
|
Mihai Bazon
|
7f48d5b33c
|
Fix endless loop
Close #866
|
2015-11-16 12:08:24 +02:00 |
|
Mihai Bazon
|
b6968b6bd2
|
Limit max iterations for tighten_body
Ref #866
|
2015-11-16 12:08:24 +02:00 |
|
Richard van Velzen
|
08b80302eb
|
Merge pull request #864 from plievone/patch-1
Fix docs for keep_fargs
|
2015-11-14 12:04:49 +01:00 |
|
plievone
|
645626ebe8
|
Fix docs for keep_fargs
Compression options `keep_fargs` and `unsafe` were decoupled in v.2.5.0 (commit 5fd1245), so document actual keep_fargs default.
|
2015-11-14 11:38:00 +02:00 |
|
Mihai Bazon
|
d895c09c70
|
v2.6.0
v2.6.0
|
2015-11-12 12:46:28 +02:00 |
|
Mihai Bazon
|
08623aa6a7
|
Fix output for "use asm" code from SpiderMonkey AST
(will only work properly if the SM tree contains "raw" properties for
Literal number nodes)
|
2015-11-12 12:18:25 +02:00 |
|
Mihai Bazon
|
c898a26117
|
Build label def/refs info when figuring out scope
Fix #862
|
2015-11-12 11:48:06 +02:00 |
|
Mihai Bazon
|
619adb0308
|
Replace util.error with console.log
|
2015-11-12 11:47:37 +02:00 |
|