aboutsummaryrefslogtreecommitdiff
path: root/lib/minify.js
AgeCommit message (Collapse)Author
2020-12-27workaround v8 bug with labels (#4467)Alex Lam S.L
closes #4466
2020-11-21workaround Safari quirks (#4314)Alex Lam S.L
fixes #1753
2020-10-27improve warnings (#4247)Alex Lam S.L
closes #4244
2020-08-23enhance `mangle.properties` (#4064)Alex Lam S.L
2020-07-31validate against multiple parents on `AST_Node` (#4032)Alex Lam S.L
- fix related issues in `global_defs`, `ie8` & `reduce_vars`
2020-05-09implement AST validation (#3863)Alex Lam S.L
2020-04-17support optional output of `names` in source maps (#3784)Alex Lam S.L
2020-03-28handle `source-map` operations internally (#3754)Alex Lam S.L
2019-11-16minor clean-ups (#3588)Alex Lam S.L
2019-10-11improve source map handling (#3464)Alex Lam S.L
fixes #2947 fixes #3277 fixes #3411
2019-05-04make `enclose` & `wrap` work with `sourceMap` (#3396)Alex Lam S.L
fixes #3313
2019-05-04fix corner cases in `sourceMap` (#3397)Alex Lam S.L
fixes #3255 fixes #3294
2019-04-30unify logging functionality (#3392)Alex Lam S.L
fixes #3253 fixes #3254
2018-06-01re-introduce `enclose` (#3163)Jiavan
fixes #2443
2018-04-06support inline source map from multiple files (#3058)Alex Lam S.L
fixes #145
2018-04-06improve usability of `includeSources` (#3057)Alex Lam S.L
Exclude source contents from input source map if `includeSources=false` fixes #3041
2018-03-31give sensible error against invalid input source map (#3044)Alex Lam S.L
2018-02-24minor clean-ups (#2951)Alex Lam S.L
2018-01-09improve synergy between `compress` and `rename` (#2755)Alex Lam S.L
2018-01-09improve `rename` reproducibility (#2754)Alex Lam S.L
fixes #2752
2018-01-05fix `mangle` name collision across files (#2722)Alex Lam S.L
2017-11-19expand symbol space to improve compression (#2460)Alex Lam S.L
- give globally distinct names to distinct variables - improve ability to compress cross-scoped - introduce `options.rename` to `minify()` - default `true` if both `compress` & `mangle`
2017-11-05inline single-use functions that are not constant expressions (#2434)Alex Lam S.L
fixes #2428
2017-07-29improve `mangle.properties` (#2261)Alex Lam S.L
- include dead code when `keep_quoted` - unify `keep_quoted` & `reserved` - make `test/run-tests.js` consistent with `minify()` fixes #2256
2017-06-29improve usability of name cache under `minify()` (#2176)Alex Lam S.L
fixes #2174
2017-06-08fix iteration over object with inherited properties (#2068)Alex Lam S.L
fixes #2055
2017-05-25report timing breakdown (#2000)Alex Lam S.L
fix corner cases with `sourceMap` fixes #1998
2017-05-08return `Error` from `minify()` (#1880)Alex Lam S.L
Have `minify()` return `Error` in `result.error` rather than throwing it.
2017-05-08support `minify()` output as AST (#1878)Alex Lam S.L
- `options.output.ast` (default `false`) - `options.output.code` (default `true`)
2017-04-15unify CLI & API under `minify()` (#1811)Alex Lam S.L
- rename `screw_ie8` to `ie8` - rename `mangle.except` to `mangle.reserved` - rename `mangle.properties.ignore_quoted` to `mangle.properties.keep_quoted` - compact `sourceMap` options - more stringent verification on input `options` - toplevel shorthands - `ie8` - `keep_fnames` - `toplevel` - `warnings` - support arrays and unquoted string values on CLI - drop `fromString` from `minify()` - `minify()` no longer handles any `fs` operations - unify order of operations for `mangle_properties()` on CLI & API - `bin/uglifyjs` used to `mangle_properties()` before even `Compressor` - `minify()` used to `mangle_properties()` after `Compressor` but before `mangle_names()` - both will now do `Compressor`, `mangle_names()` then `mangle_properties()` - `options.parse` / `--parse` for parser options beyond `bare_returns` - add `mangle.properties.builtins` to disable built-in reserved list - disable with `--mangle-props builtins` on CLI - `warnings` now off by default - add `--warn` and `--verbose` on CLI - drop `--enclose` - drop `--export-all` - drop `--reserved-file` - use `--mangle reserved` instead - drop `--reserve-domprops` - enabled by default, disable with `--mangle-props domprops` - drop `--prefix` - use `--source-map base` instead - drop `--lint` - remove `bin/extract-props.js` - limit exposure of internal APIs - update documentations closes #96 closes #102 closes #136 closes #166 closes #243 closes #254 closes #261 closes #311 closes #700 closes #748 closes #912 closes #1072 closes #1366 fixes #101 fixes #123 fixes #124 fixes #263 fixes #379 fixes #419 fixes #423 fixes #461 fixes #465 fixes #576 fixes #737 fixes #772 fixes #958 fixes #1036 fixes #1142 fixes #1175 fixes #1220 fixes #1223 fixes #1280 fixes #1359 fixes #1368