Commit Graph

  • 9ead49641d minor AST cleanup (AST_BlockStatement may inherit from AST_Block) Mihai Bazon 2012-10-09 13:52:32 +03:00
  • e1862cd36f add --ast-help Mihai Bazon 2012-10-09 13:21:21 +03:00
  • 2c025f23db fix detecting symbols in use Mihai Bazon 2012-10-09 13:13:55 +03:00
  • 9dfcd47ec8 Merge pull request #8 from SevInf/master Mihai Bazon 2012-10-09 03:04:33 -07:00
  • 203ecaf85b Fix nodejs minify without inSourceMap exception Sergej Tatarincev 2012-10-09 12:52:28 +03:00
  • c967f0b0fe fix inSourceMap in minify (should read the file) Mihai Bazon 2012-10-08 21:22:20 +03:00
  • dfc04e6677 add simple API wrapper: UglifyJS.minify Mihai Bazon 2012-10-08 21:15:47 +03:00
  • 42ea3c95e0 added some basic API doc Mihai Bazon 2012-10-08 14:30:34 +03:00
  • d4970b35ac should not expose base54.sort() in the API docs, I think Mihai Bazon 2012-10-08 13:37:27 +03:00
  • dd8286bce1 added --self to easily get a browser-runnable version of UglifyJS Mihai Bazon 2012-10-08 12:55:18 +03:00
  • 093a9031dc eliminate redundant directives in the same scope Mihai Bazon 2012-10-08 12:53:17 +03:00
  • 80a18fe2fa for certain nodes that we invent we might not have a original source file to map from, so just use "?". and in any case, don't fail hard when addMapping throws. Mihai Bazon 2012-10-08 12:52:25 +03:00
  • fe1411bba1 fix typo Mihai Bazon 2012-10-05 23:10:52 +03:00
  • 455ac5435d remove unused code Mihai Bazon 2012-10-05 22:59:05 +03:00
  • 4a2b91220a minor Mihai Bazon 2012-10-05 20:24:56 +03:00
  • a1e0885930 replace (function(){ ...no side effects ... })() with undefined. Mihai Bazon 2012-10-05 16:51:16 +03:00
  • 7ae09120ed prevent mangling only when eval is *called*, not when it's just referenced Mihai Bazon 2012-10-05 16:17:31 +03:00
  • 42c25d901c add note about installation Mihai Bazon 2012-10-05 15:31:41 +03:00
  • e88dcc3819 added --acorn and --spidermonkey options v2.0 Mihai Bazon 2012-10-05 15:22:12 +03:00
  • ecd9f21467 fixed import of locations from SpiderMonkey AST Mihai Bazon 2012-10-05 15:05:06 +03:00
  • a9b6f9909a use the appropriate constructor for symbols Mihai Bazon 2012-10-04 17:28:35 +03:00
  • 708ec0467c minor Mihai Bazon 2012-10-04 17:28:09 +03:00
  • 682a58a1f5 removed some unused variables Mihai Bazon 2012-10-04 08:49:18 +03:00
  • f20c251882 moving code around Mihai Bazon 2012-10-03 21:39:47 +03:00
  • 2bd8a118c2 define AST_Node.from_mozilla_ast(ast) Mihai Bazon 2012-10-03 20:03:17 +03:00
  • 42ce7ed606 ignore tmp/ Mihai Bazon 2012-10-03 20:01:32 +03:00
  • 11863d6f9a more cleanup (dropped AST_SwitchBlock) Mihai Bazon 2012-10-03 15:52:01 +03:00
  • 3412498795 AST cleanup (dropped AST_StatementBase) Mihai Bazon 2012-10-03 15:41:11 +03:00
  • 9221ad62db added package.json Mihai Bazon 2012-10-03 13:19:00 +03:00
  • c11de17e99 added option for side-effect-free statements, fix test Mihai Bazon 2012-10-03 13:08:03 +03:00
  • e0f5075e45 fix endless loop in tests Mihai Bazon 2012-10-03 12:49:47 +03:00
  • bd94eeb6f7 drop tmp. files Mihai Bazon 2012-10-03 12:49:33 +03:00
  • 7e8880be1c document the CLI tool Mihai Bazon 2012-10-03 12:22:59 +03:00
  • 0678ae2076 fix for a = !b && !c && !d && !e → a=!(b||c||d||e) Mihai Bazon 2012-10-03 11:34:05 +03:00
  • 378ed17809 disable hoist_vars by default and change comparations to comparisons Mihai Bazon 2012-10-03 11:27:05 +03:00
  • 5c151f90b3 fixed usage string Mihai Bazon 2012-10-02 21:08:16 +03:00
  • 815abcfe18 support for --comments option to keep comments containing @license or @preserve Mihai Bazon 2012-10-02 16:40:42 +03:00
  • cb2e811191 discard annoying nodejs warning Mihai Bazon 2012-10-02 16:40:01 +03:00
  • 075f93ec0d line numbers start at 1 Mihai Bazon 2012-10-02 16:39:53 +03:00
  • 2a5456260e added option to keep some comments in the output Mihai Bazon 2012-10-02 14:32:30 +03:00
  • 36be211e99 option to exclude certain names from mangling Mihai Bazon 2012-10-02 14:02:33 +03:00
  • dde5b22b5e support defines Mihai Bazon 2012-10-02 13:20:07 +03:00
  • e1098b04a7 "use strict"; Mihai Bazon 2012-10-02 12:45:31 +03:00
  • 211792757c more constant folding (for names defined with const) Mihai Bazon 2012-10-02 12:45:17 +03:00
  • 347160c631 add AST_SymbolConst for names defined with const Mihai Bazon 2012-10-02 12:22:39 +03:00
  • ff696cd7bc drop more unused names Mihai Bazon 2012-10-02 12:02:33 +03:00
  • 9e5dd81f1e a shy attempt to obey width in the beautifier; added bracketize option to always print brackets around if/do/while/for statements; export more options via the CLI Mihai Bazon 2012-10-02 11:00:47 +03:00
  • 896444482a minor Mihai Bazon 2012-09-28 11:12:47 +03:00
  • 05e15b1c0c fix mangling Mihai Bazon 2012-09-26 23:54:30 +03:00
  • 13278c6649 removed the "squeeze" method (it's now effectively "transform") Mihai Bazon 2012-09-26 19:52:32 +03:00
  • 15d58f5917 some speedup and more savings from unused vars that have side effects in initialization Mihai Bazon 2012-09-26 16:43:14 +03:00
  • 78be8f5296 compressor successfully moved to TreeTransformer Mihai Bazon 2012-09-26 13:04:54 +03:00
  • a24e7ee976 checkpoint (refactoring, WIP) Mihai Bazon 2012-09-26 12:16:16 +03:00
  • e979d01f04 minor Mihai Bazon 2012-09-26 11:24:04 +03:00
  • 242dd10131 more cleanups Mihai Bazon 2012-09-25 18:03:31 +03:00
  • 9321d418bc moving code around (refactoring, WIP) Mihai Bazon 2012-09-25 15:59:27 +03:00
  • 10c7f52074 discard all \uFEFF characters (https://github.com/mishoo/UglifyJS/issues/462) Mihai Bazon 2012-09-25 15:30:59 +03:00
  • 4201577dd7 started some refactoring (WIP) -- moving squeezer to TreeTransformer Mihai Bazon 2012-09-25 15:15:47 +03:00
  • e836e2ae5f minor Mihai Bazon 2012-09-25 12:48:36 +03:00
  • ea6d1ea701 it's not safe to assume that property access is side-effect-free Mihai Bazon 2012-09-25 10:32:14 +03:00
  • 368ac8f93c some boolean cleanup Mihai Bazon 2012-09-25 10:31:03 +03:00
  • 42038fd67f Support input source map Mihai Bazon 2012-09-24 17:02:18 +03:00
  • 4f97da9660 minor tests fix Mihai Bazon 2012-09-24 10:27:49 +03:00
  • a83b28503f properly drop mutually-referring declarations that are not otherwise referenced and have no side effects Mihai Bazon 2012-09-23 12:47:34 +03:00
  • 76d88b59dc tree transformer api (WIP) Mihai Bazon 2012-09-22 13:32:32 +03:00
  • ec7f895b54 log filename in parse errors / compressor warnings Mihai Bazon 2012-09-21 14:38:52 +03:00
  • 5491e1d7b1 better support for multiple input files: Mihai Bazon 2012-09-21 14:19:05 +03:00
  • c4f8c2103f more on detecting side effects Mihai Bazon 2012-09-21 11:23:44 +03:00
  • e8da72d304 drop unused variables Mihai Bazon 2012-09-19 12:27:38 +03:00
  • d53e1a9931 support -c with no arguments to disable compression entirely Mihai Bazon 2012-09-19 10:22:36 +03:00
  • a4d2340c73 fixed label scope/mangling Mihai Bazon 2012-09-18 19:26:46 +03:00
  • 669874d46b minor Mihai Bazon 2012-09-18 14:17:23 +03:00
  • 3da0ac4897 support for directives Mihai Bazon 2012-09-18 13:21:09 +03:00
  • 21968285e8 added AST_NaN (output as 0/0) Mihai Bazon 2012-09-18 10:53:46 +03:00
  • d91613b4a8 only do the typeof x == "undefined" optimization if x is a symbol reference and it's declared in scope, or x is not a symbol reference. Mihai Bazon 2012-09-17 20:02:14 +03:00
  • ee669ba878 moved typeof foo == "undefined" ==> foo === undefined under --unsafe Mihai Bazon 2012-09-17 18:49:52 +03:00
  • e370e3b5a4 fix .undeclared (it's now a function) Mihai Bazon 2012-09-17 15:06:06 +03:00
  • 6ad414ef28 minor Mihai Bazon 2012-09-17 14:33:36 +03:00
  • 45a3970ca3 one more test for sequences Mihai Bazon 2012-09-17 12:53:52 +03:00
  • 92e22c460d possible optimization for AST_Undefined Mihai Bazon 2012-09-17 12:24:21 +03:00
  • 14481de0e9 empty block to empty statement: {} ==> ; Mihai Bazon 2012-09-17 12:03:02 +03:00
  • 07f1d56f69 more smallish optimizations Mihai Bazon 2012-09-17 11:50:35 +03:00
  • 5e60a60b3b try negating AST_Binary Mihai Bazon 2012-09-17 11:16:44 +03:00
  • 5d781ec6f8 some cleanup Mihai Bazon 2012-09-16 18:05:15 +03:00
  • 0f418d654e more sequencesizing (WIP) Mihai Bazon 2012-09-16 16:29:17 +03:00
  • 21c34a1792 drop unused function Mihai Bazon 2012-09-16 15:46:47 +03:00
  • 7b6a402916 rewrite handle_if_return Mihai Bazon 2012-09-16 15:46:20 +03:00
  • 397bf56d25 other small optimization: Mihai Bazon 2012-09-15 16:06:09 +03:00
  • 4e0262bdfb figure out label targets Mihai Bazon 2012-09-15 16:05:01 +03:00
  • 86c14d0988 join_vars: Mihai Bazon 2012-09-15 10:54:59 +03:00
  • 43fd45154b compress typeof x == "undefined" to x === undefined, which further gets shortened to x === void 0 (or x === [][0] in unsafe mode) Mihai Bazon 2012-09-14 19:56:59 +03:00
  • 50d1670e42 minor Mihai Bazon 2012-09-14 19:04:18 +03:00
  • 5e83e7ec17 adding an imaginary "return undefined" can sometimes help Mihai Bazon 2012-09-14 16:26:30 +03:00
  • 924aa58060 more optimizations that v1 does and some cleanups Mihai Bazon 2012-09-14 15:36:38 +03:00
  • 93b973c99d added -m and -c options Mihai Bazon 2012-09-13 19:45:16 +03:00
  • d72c1d1293 few more optimizations: Mihai Bazon 2012-09-13 15:20:57 +03:00
  • f5027ec1fc minor Mihai Bazon 2012-09-12 16:29:20 +03:00
  • a132841fb9 more AST_If optimizations Mihai Bazon 2012-09-12 16:10:03 +03:00
  • 2b1e4628e0 side effect fixes and small optimization for gzip Mihai Bazon 2012-09-12 13:23:24 +03:00
  • 2b4093ba83 fixed run-tests and an issue about reversing the condition in AST_If Mihai Bazon 2012-09-12 13:00:13 +03:00