Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@putout/minify

putoutjs15.5kMIT4.9.1

🐊Putout-based minifier

putout, minify, AST, babel, printer, api, traverse, generate

readme

@putout/minify NPM version Coverage Status

🐊Putout-based JavaScript minifier.

Install

npm i @putout/minify

Supported minifier transforms

Here is list of supported 🐊Putout transformations:

API

import {minify} from '@putout/minify';

minify(`
    const a = 5;
    const b = 6;

    fn(a, b);
`);
// returns
var a=5,b=6;fn(a,b);

Options

You can also pass options to minify. Here is list of default options:

({
    quotes: `'`,
    fixCount: 1, // the more fixCount - less output size
    conditions: false,
    mangleClassNames: true,
    mangle: true,
    mergeVariables: true,
    removeUnusedVariables: false,
    removeConsole: false,
    removeUselessSpread: true,
    applyTemplateLiterals: true,
    convertStrictEqualToEqual: false,
});

And usage example:

import {minify} from '@putout/minify';

const source = `
    const a = 5;
    const b = 6;
`;

minify(source, {
    removeUnusedVariables: false,
});

How it's compared to X(your benchmark)?

Benchmark

License

MIT

changelog

2025.01.14, v4.9.1

feature:

  • fa58bb7 @putout/minify: @putout/printer v12.2.0

2025.01.10, v4.9.0

feature:

  • 21407d1 @putout/minify: @putout/plugin-remove-useless-arguments v10.1.0
  • 699d026 @putout/minify: @putout/plugin-types v6.1.0
  • 8717a75 @putout/minify: @putout/plugin-for-of v7.1.0
  • 30da16f @putout/minify: @putout/plugin-conditions v6.6.0

2024.12.24, v4.8.4

fix:

  • 9321477 @putout/plugin-esm: merge-duplicate-imports (#29)

2024.12.21, v4.8.3

feature:

  • 20191a4 @putout/minify: merge-duplicate-imports -> esm/merge-duplicate-imports

2024.12.19, v4.8.2

feature:

  • cef224a @putout/minify: @putout/plugin-promises v16.0.0

2024.12.15, v4.8.1

feature:

  • bba3521 @putout/minify: @rollup/plugin-node-resolve v16.0.0
  • 979ce05 @putout/minify: putout v37.1.1
  • 4b1ded4 @putout/minify: rollup-plugin-node-externals v8.0.0

2024.12.10, v4.8.0

feature:

  • c0f2a69 @putout/minify: @putout/plugin-merge-destructuring-properties v10.0.0
  • f29c277 @putout/minify: @putout/printer v11.0.0
  • 4c82b28 @putout/minify: @putout/plugin-reuse-duplicate-init v6.0.0
  • d1dea59 @putout/minify: @putout/plugin-logical-expressions v7.0.0
  • ecccfff @putout/minify: minify v12.0.0
  • 4003476 @putout/minify: @putout/plugin-remove-unused-variables v10.1.0
  • 8c0b8ea @putout/minify: @putout/plugin-minify v9.0.0 (coderaiser/minify#132)

2024.09.29, v4.7.2

fix:

  • d9737c9 @putout/minify: call-expression: parens (#28)

feature:

  • 18012b5 @putout/minify: @putout/plugin-convert-arguments-to-rest v3.1.0 (#28)
  • 25f253d @putout/minify: @putout/plugin-nodejs v12.0.0
  • 0e593b9 @putout/minify: convert-arguments-to-rest: improve support (#28)

2024.09.27, v4.7.1

feature:

  • 1d8e67c @putout/minify: @putout/plugin-convert-arguments-to-rest v3.1.0 (#28)
  • 787cf00 @putout/minify: @putout/plugin-nodejs v12.0.0

2024.09.27, v4.7.0

feature:

  • b2eacc9 @putout/minify: convert-arguments-to-reset: improve support (#28)
  • a92ab77 @putout/minify: @putout/plugin-convert-arguments-to-rest v3.0.0

2024.09.26, v4.6.1

feature:

  • 0619c7c @putout/minify: @putout/plugin-remove-useless-variables v12.5.0 (coderaiser/minify#128)
  • 6d73c7e @putout/minify: @rollup/plugin-commonjs v28.0.0
  • 614be7c @putout/minify: @rollup/plugin-replace v6.0.1

2024.09.16, v4.6.0

feature:

  • e9fcd9a @putout/minify: quotes: add ability to override (coderaiser/minify#127)

2024.09.12, v4.5.2

fix:

  • 777c0f4 disable BABEL_TYPES_8_BREAKING (#126, babel/babel#16829)

2024.09.12, v4.5.1

feature:

  • cd6bf82 @putout/minify: eslint-plugin-putout v23.1.0
  • 089c5c4 @putout/minify: @putout/plugin-remove-useless-arguments v9.0.0
  • 008d73b @putout/minify: @putout/plugin-types v5.0.0
  • a96c8ba @putout/minify: @putout/plugin-conditions v5.0.0

2024.07.18, v4.5.0

feature:

  • f0f3d00 @putout/minify: swap (coderiaser/minify#125)
  • 0e98f4c @putout/minify: @putout/plugin-remove-useless-variables v12.0.0
  • 864ffa4 @putout/minify: putout v36.0.0

2024.07.11, v4.4.0

feature:

  • 7105176 @putout/minify: @putout/printer v9.6.0 (coderaiser/minify#124)
  • 77689ae minify: esbuild

2024.06.27, v4.3.1

feature:

  • fbe26eb @putout/minify: @putout/plugin-remove-unused-expressions v9.0.0
  • 6d32113 @putout/minify: @putout/plugin-remove-useless-return v7.0.0

2024.06.20, v4.3.0

feature:

  • faa5bee @putout/minify: add fixCount
  • 2990f0b get back mangle
  • eccc805 @putout/minify: speed up, disable mangle, mergeVariables

2024.06.19, v4.2.0

feature:

  • 29009d5 @putout/minify: speed up, disable mangle, mergeVariables
  • 53241b8 @putout/minify: @putout/plugin-regexp v9.0.0
  • b314369 @putout/minify: @putout/plugin-merge-destructuring-properties v9.0.0
  • 8d1855a @putout/minify: get rid of couple passes
  • b2c0190 add benchmark (#27)

2024.06.16, v4.1.0

feature:

  • da367bd @putout/minify: add support of merge-assignment-expressions
  • 55457b8 @putout/minify: @putout/eslint-flat v2.0.0

2024.06.13, v4.0.1

fix:

  • 80b6aff @putout/minify: merge-variables: for-of

feature:

  • fec011a @putout/minify: c8 v10.1.2

2024.06.13, v4.0.0

feature:

  • ae2dc32 @putout/minify: disable: convertStrictEqualToEqual: turn of
  • bcf5e5a convertStrictEqualToEqual: disabled (#26)

2024.06.12, v3.20.0

feature:

  • 8e2431e @putout/minify: duplicate declaration (putout/minify#24)
  • f28692a @putout/minify: extension: add

2024.06.12, v3.19.7

feature:

  • 7852690 @putout/minify: merge-variables (#18, #21)

2024.06.10, v3.19.6

feature:

  • 4a093ed @putout/minify: remove-unused-variables, const (#20, #22)

2024.06.10, v3.19.5

feature:

  • d5dae16 @putout/minify: @putout/plugin-remove-unreferenced-variables v4.0.0 (putoutjs/minify#23)

2024.06.10, v3.19.4

feature:

  • e862ca5 @putout/minify: @rollup/plugin-commonjs v26.0.1
  • 1cdbec7 @putout/minify: @putout/plugin-apply-optional-chaining v6.0.0 (#19)

2024.06.09, v3.19.3

fix:

  • be6c4ea @putout/minify: ternary, assign (#15)

2024.06.09, v3.19.2

feature:

  • 233ff51 @putout/minify: merge-variables: void 0 (#17)

2024.06.09, v3.19.1

feature:

  • b4440a7 @putout/minify: @putout/printer v9.0.3 (#15)

2024.06.07, v3.19.0

feature:

  • f1b3a82 @putout/minify: get rid of extract-sequence-expressions (#15)

2024.06.07, v3.18.0

feature:

  • a7d1f28 @putout/minify: options: mergeVariables (#18)

2024.06.07, v3.17.1

feature:

  • 78daa88 @putout/minify: @putout/plugin-minify v8.9.1 (#13)

2024.06.07, v3.17.0

feature:

  • a8210ab @putout/minify: @putout/printer v9.0.0 (#15)
  • 7053bad @putout/minify: convert-return-to-sequence-expression (#15)
  • b7d0f44 @putout/minify: @putout/printer v8.47.0 (#15)

2024.06.07, v3.16.0

feature:

  • ef4c058 @putout/minify: convertStrictEqualToEqual: add option (#16)

2024.06.07, v3.15.0

feature:

  • ae5220a @putout/minify: @putout/plugin-minify v8.8.1 (#17)

2024.06.06, v3.14.0

feature:

  • 1ef8f21 @putout/minify: @putout/plugin-minify v8.7.0 (#13)

2024.06.05, v3.13.0

feature:

  • dde4a35 @putout/minify: expand-bindings: add support of re-assign (#14)
  • 5c1d145 @putout/plugin-minify: if logical nested (putoutjs/minify#12)

2024.06.05, v3.12.1

feature:

  • 069710f @putout/plugin-minify: if logical nested (coderaiser/minify#12)

2024.06.05, v3.12.0

feature:

  • 2ab4111 @putout/minify: improve support of converting if to logical (#12)
  • 404c63a @putout/minify: @putout/plugin-remove-useless-variables v11.1.1

2024.05.28, v3.11.2

feature:

  • 58caf38 @putout/minify: simplify

2024.05.28, v3.11.1

feature:

  • 3561a0a minify: move promises to first transform

2024.05.28, v3.11.0

feature:

  • 4dd3ea5 @putout/minify: @putout/plugin-logical-expressions v6.0.0

2024.05.21, v3.10.3

fix:

  • 26e08b0 @putout/minify: node prefixes

2024.05.21, v3.10.2

feature:

  • 39d969d @putout/plugin-minify: VariableDeclaration: LabeledStatement

2024.05.21, v3.10.1

feature:

  • 1bdf816 @putout/minify: @putout/plugin-for-of v6.0.0

2024.05.21, v3.10.0

feature:

  • a2d8ba1 @putout/minify: @putout/plugin-promises v15.0.0

2024.05.05, v3.9.0

feature:

  • e2f2e78 @putout/minify: eslint v9.2.0
  • faed80c @putout/minify: (coderaiser/minifyfor-each: improve support ConditionalExpression (coderaiser/minify#122)
  • 6877de1 @putout/minify: @putout/plugin-remove-useless-spread v11.0.0
  • b2be291 @putout/minify: @putout/plugin-for-of v5.0.0
  • e74a8ad @putout/minify: @putout/plugin-declare v4.0.0
  • f396fad @putout/minify: eslint-plugin-n v17.4.0
  • 325b1c7 @putout/minify: @putout/plugin-types v4.0.0
  • 81fe0d9 @putout/minify: @putout/plugin-remove-unused-variables v9.0.0
  • cf5c0ca @putout/minify: @putout/plugin-remove-empty v12.1.0
  • b04aacf @putout/minify: @putout/plugin-remove-debugger v7.0.0

2024.03.04, v3.8.5

fix:

  • 6cf3c1d @putout/minify: bundle

2024.03.04, v3.8.4

fix:

  • 2227a1f @putout/minify: exports

2024.03.04, v3.8.3

feature:

  • 2accb6a keywords: printer

2024.03.04, v3.8.2

feature:

  • 24a4e1f @putout/minify: @putout/printer v8.8.0
  • 97ded07 @putout/minify: minify v11.1.0

2024.02.26, v3.8.1

feature:

  • c22ee2b @putout/minify: @putout/plugin-minify v8.2.0 (coderaiser/minify#120)

2024.02.14, v3.8.0

feature:

  • ea89537 @putout/minify: improve support of SwitchCase, ClassDeclaration (coderaiser/minify#119)
  • e41a47c @putout/minify: rollup-plugin-node-externals v7.0.1
  • 9379f46 @putout/minify: @putout/plugin-declare v3.0.0
  • cd8389c @putout/minify: supertape v10.0.0
  • e149f2b @putout/minify: @putout/plugin-apply-template-literals v3.0.0

2024.01.25, v3.7.0

feature:

  • 3fe73f2 @putout/minify: @putout/plugin-minify v8.0.0 (coderaiser/minify#118)

2024.01.19, v3.6.1

fix:

  • f83af84 get rid of build warning: (!) Plugin alias: rewrote acorn-stage3 to ./stub/acorn-stage3.js but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.
  • 44e614d increment (#8)

feature:

  • 12a961a @putout/minify: putout v35.0.0
  • d94d1b7 @putout/minify: add applyTemplateLiterals option (#10)
  • d55f400 @putout/minify: @putout/plugin-merge-duplicate-imports v11.0.0
  • eaa559b @putout/minify: @putout/printer v8.0.0
  • 765c2ea @putout/minify: @putout/plugin-remove-unused-expressions v8.0.0
  • d44e94a @putout/minify: @putout/plugin-remove-debugger v6.0.0
  • 2167a2a @putout/plugin-extract-sequence-expressions: add (#196)
  • ee06547 @putout/minify: @putout/plugin-extract-sequence-expressions v3.5.0
  • b4761dc @putout/minify: @putout/plugin-remove-useless-spread v10.0.1
  • 0b7520c @putout/minify: add simpmlify-ternary

2024.01.09, v3.6.0

feature:

  • f21110d @putout/minify: add applyTemplateLiterals option (#10)

2024.01.09, v3.5.0

feature:

  • 7498546 @putout/minify: @putout/plugin-merge-duplicate-imports v11.0.0

2024.01.09, v3.4.0

feature:

  • 03a8058 @putout/minify: @putout/printer v8.0.0
  • f9b7460 @putout/minify: @putout/plugin-remove-unused-expressions v8.0.0

2024.01.09, v3.3.0

feature:

  • 337768f @putout/minify: @putout/plugin-remove-debugger v6.0.0

2024.01.09, v3.2.0

feature:

  • b772844 @putout/plugin-extract-sequence-expressions: add (#196)
  • cb1fa3b @putout/minify: @putout/plugin-extract-sequence-expressions v3.5.0

2024.01.08, v3.1.2

feature:

  • 1c3ee33 @putout/minify: @putout/plugin-remove-useless-spread v10.0.1

2024.01.08, v3.1.1

fix:

  • 28d15ea get rid of build warning: (!) Plugin alias: rewrote acorn-stage3 to ./stub/acorn-stage3.js but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.

2024.01.08, v3.1.0

fix:

  • 8619311 increment (#8)

feature:

  • 289ae4a @putout/minify: add simpmlify-ternary

2024.01.08, v3.0.1

feature:

  • 3aca048 @putout/minify: c8 v9.0.0
  • 0444c21 @putout/minify: @putout/plugin-remove-unused-variables v8.1.0
  • d28ccd4 @putout/minify: @putout/plugin-for-of v4.0.0
  • 5fb5121 @putout/minify: @putout/plugin-promises v14.0.0
  • 54de228 @putout/minify: @putout/printer v7.4.0
  • 0747497 @putout/minify: eslint-plugin-putout v22.2.1
  • c4379a6 @putout/minify: supertape v9.0.0

2023.12.10, v3.0.0

feature:

  • 80a18bc drop support of node < 18
  • ff882d8 @putout/minify: madrun v10.0.0
  • 2e44adf @putout/minify: putout v34.0.0

2023.12.05, v2.11.0

feature:

  • 2c82a4f @putout/minify: @putout/plugin-minify v6.2.0 (#6)

2023.12.05, v2.10.2

feature:

  • d62d3d8 @putout/minify: @putout/plugin-minify v6.1.2

2023.12.04, v2.10.1

feature:

  • e25d858 @putout/minify: simplify mangle-names

2023.12.04, v2.10.0

feature:

  • a702856 @putout/minify: mangle-names (#6)

2023.12.03, v2.9.0

feature:

  • c38a63c package: @putout/plugin-minify v6.0.0 (putoutjs/minify#6)

2023.11.21, v2.8.0

fix:

  • d519b69 @putout/minify: single quotes escape (#117)

feature:

  • 6ddd198 @putout/minify: rollup-plugin-polyfill-node v0.13.0
  • 48fd00b @putout/minify: rollup v4.5.0
  • 315c204 @putout/minify: @putout/plugin-remove-useless-return v6.0.0
  • 6de62df @putout/minify: @putout/plugin-conditions v4.0.1
  • 177ff87 @putout/minify: @putout/printer v6.4.1

2023.11.12, v2.7.0

feature:

  • 152edc3 @putout/minify: @putout/plugin-remove-empty v11.0.0
  • 5594fd4 @putout/minify: @putout/plugin-new v3.0.1
  • 57eead5 @putout/minify: putout v33.0.0

2023.10.28, v2.6.1

feature:

  • f1fa351 package: @putout/plugin-logical-expressions v5.0.0

2023.10.28, v2.6.0

feature:

  • e10afca package: @putout/plugin-regexp v8.0.0
  • 4d00faa package: @putout/printer v6.0.0
  • 8b8d9e4 package: eslint-plugin-putout v21.0.1

2023.10.20, v2.5.0

feature:

  • efda1d2 package: @putout/plugin-minify v5.1.0 (putoutjs/minify#5)

2023.10.17, v2.4.1

fix:

  • ed0eef1 @putout/minify: mangle (coderaiser/minify#114)

feature:

  • 369e39b package: rollup v4.1.4
  • 2d8d902 package: rendy v4.1.3

2023.10.11, v2.4.0

feature:

  • f12c1e0 @putout/minify: add ability to disable mangle (coderaiser/minify#114)

2023.10.11, v2.3.0

feature:

  • df03b71 package: @putout/plugin-remove-useless-spread v9.0.0
  • e24609c package: @putout/plugin-apply-optional-chaining v5.0.1
  • e15a528 package: @putout/plugin-minify v5.0.0 (coderaiser/minify#114)

2023.09.27, v2.2.2

feature:

  • a959154 package: @putout/printer v5.12.0
  • 27afc84 package: eslint-plugin-putout v20.0.0

2023.09.15, v2.2.1

feature:

  • 195015d package: @putout/plugin-apply-shorthand-properties v5.1.0
  • a2d39d6 package: @putout/plugin-promises v13.0.0
  • 9712268 package: @putout/plugin-merge-duplicate-functions v2.0.0
  • 8178867 package: @putout/plugin-remove-useless-variables v10.0.0

2023.09.14, v2.2.0

feature:

  • 94672a3 package: @putout/plugin-remove-unused-variables v7.0.0
  • ae3bcfb package: putout v32.0.1
  • 2086a40 package: @putout/plugin-conditions v3.0.0

2023.09.13, v2.1.1

feature:

  • ab3a8c7 package: @putout/printer v4.1.0

2023.09.12, v2.1.0

feature:

  • fc3e8ac package: @putout/plugin-minify v4.1.0 (coderaiser/minify#111)
  • 4c809a2 package: @putout/plugin-apply-shorthand-properties v4.0.0
  • 08e4458 package: @putout/plugin-for-of v3.0.0
  • f5847b3 package: @putout/plugin-remove-useless-arguments v8.0.0

2023.08.29, v2.0.1

feature:

  • dc10b4e @putout/minify: get back sync

2023.08.28, v2.0.0

feature:

  • 0a9b934 @putout/minify: async
  • 7acabad package: @putout/plugin-minify v4.0.0

2023.08.22, v1.50.2

feature:

  • b8da22a package: @putout/plugin-types v3.0.0

2023.08.22, v1.50.1

feature:

  • b5ebf45 package: @putout/plugin-promises v12.0.0

2023.08.21, v1.50.0

feature:

  • 3018f9a package: eslint-plugin-putout v19.1.0
  • 062cc96 package: @putout/plugin-logical-expressions v4.0.0
  • 2cc7952 package: @putout/plugin-remove-unused-variables v6.0.2
  • 211072a package: @putout/plugin-apply-optional-chaining v4.0.0
  • 2aeaa1d package: @putout/plugin-declare v2.0.1
  • 18332ca package: @putout/printer v3.6.0
  • 12b0ea9 package: putout v31.2.2
  • dc7c768 package: @putout/plugin-minify v3.0.0

2023.08.03, v1.49.0

feature:

  • bac0226 package: @putout/plugin-minify v2.4.0 (coderaiser/minify#111)

2023.08.03, v1.48.0

feature:

  • bf49789 package: @putout/printer v2.96.0 (coderaiser/minify#112)

2023.07.28, v1.47.0

feature:

  • e244c70 @putout/plugin-minify: add @putout/plugin-remove-useless-variables
  • 474968d package: @putout/plugin-remove-useless-variables v9.0.0

2023.07.25, v1.46.0

feature:

  • b8221bd package: @putout/plugin-remove-useless-spread v8.0.1
  • a1c3f75 package: @putout/plugin-logical-expressions v3.1.0
  • 5d0126d package: @putout/plugin-conditions v2.2.0
  • 0608d8a package: eslint-plugin-putout v18.2.0
  • 802b9ee package: @putout/plugin-minify v2.0.0

2023.07.13, v1.45.0

feature:

  • 94c9900 package: @putout/plugin-types v2.0.0
  • fe8d64e package: @putout/plugin-remove-unused-expressions v7.0.0
  • 166623a package: @putout/plugin-for-of v2.0.0
  • b9a163e package: @putout/plugin-remove-unreferenced-variables v3.0.0
  • e4a6285 package: nodemon v3.0.1
  • 68bfe2f package: putout v30.4.0

2023.07.03, v1.44.1

feature:

  • a94d71e package: @putout/printer v2.42.1 (coderaiser/minify#109)

2023.06.20, v1.44.0

feature:

  • 06c0154 package: @putout/plugin-minify v1.40.0 (coderaiser/minify#107)

2023.06.19, v1.43.0

feature:

  • a4d6ed7 package: @putout/printer v2.27.0 (coderaiser/minify#106)

2023.06.19, v1.42.0

feature:

  • 8d09a93 package: @putout/plugin-minify v1.39.0 (coderaiser/minify#108)
  • 1c63ebe package: @putout/printer v2.25.0 (coderaiser/minify#108)

2023.06.19, v1.41.0

feature:

  • f6f3681 @putout/plugin-minify: shorten names (coderaiser/minify#109)
  • fb6539f package: @rollup/plugin-commonjs v25.0.1
  • 13dd48e package: c8 v8.0.0

2023.06.16, v1.40.0

feature:

  • a3b3f4c package: @putout/printer v2.21.0 (coderaiser/minify#106)

2023.06.16, v1.39.1

feature:

  • f25bbc2 package: @putout/printer v2.20.0

2023.06.16, v1.39.0

feature:

  • 63f4009 @putout/minify: add ability to disable removeUselessSpread (coderaiser/minify#107)

2023.06.16, v1.38.0

feature:

  • f2f0a1a package: @putout/plugin-remove-useless-spread v7.0.0
  • 17ed136 package: @putout/plugin-reuse-duplicate-init v5.0.0
  • 1e5d8a7 package: eslint-plugin-n v16.0.0
  • d29a632 package: rollup-plugin-node-externals v6.1.1
  • 6675c28 package: @putout/plugin-merge-destructuring-properties v8.0.0

2023.06.12, v1.37.1

feature:

  • 8747987 package: @putout/printer v2.0.0

2023.06.05, v1.37.0

feature:

  • acd7780 @putout/minify: add support of mangleClassNames (coderaiser/minify#104)
  • da8b113 package: @putout/plugin-remove-useless-arguments v7.0.0

2023.06.05, v1.36.1

feature:

  • 6e2cc03 package: @putout/plugin-apply-shorthand-properties v3.0.2
  • 1fa3d13 package: @putout/plugin-minify v1.37.0

2023.06.05, v1.36.0

feature:

  • 93b3cf8 package: @putout/plugin-minify v1.36.0

2023.06.04, v1.35.3

feature:

  • be06a34 package: @putout/plugin-minify v1.35.1

2023.06.04, v1.35.2

feature:

  • 83513ed package: @putout/plugin-minify v1.35.0

2023.06.04, v1.35.1

feature:

  • d6a5d62 package: @putout/plugin-minify v1.34.0

2023.06.04, v1.35.0

feature:

  • 5b1b020 package: @putout/plugin-minify v1.33.0

2023.06.02, v1.34.1

feature:

  • 0c7575c package: @putout/plugin-minify v1.31.1

2023.06.02, v1.34.0

feature:

  • 86991ce package: @putout/plugin-minify v1.31.0

2023.06.01, v1.33.0

feature:

  • 0142edd package: @putout/plugin-minify v1.30.0

2023.06.01, v1.32.1

feature:

  • 83b23a1 package: @putout/printer v1.128.1

2023.06.01, v1.32.0

feature:

  • 4f21e6a package: @putout/plugin-reuse-duplicate-init v4.0.0

2023.06.01, v1.31.0

feature:

  • 7b4ea06 package: @putout/plugin-merge-destructuring-properties v7.0.0

2023.06.01, v1.30.0

feature:

  • c6a44f7 package: @putout/plugin-minify v1.28.0

2023.06.01, v1.29.1

feature:

  • ad95da6 @putout/minify: drop tenko

2023.06.01, v1.29.0

feature:

  • 64461b0 package: @putout/printer v1.128.0

2023.06.01, v1.28.1

feature:

  • 9a24be6 package: @putout/plugin-minify v1.26.0

2023.06.01, v1.28.0

feature:

  • 89e31f9 package: @putout/plugin-minify v1.24.0

2023.06.01, v1.27.2

feature:

  • 26c0bae package: @putout/printer v1.126.0

2023.06.01, v1.27.1

feature:

  • 6205458 package: @putout/printer v1.125.0

2023.05.31, v1.27.0

feature:

  • d0f0135 @putout/minify: apply-optiona-chaining

2023.05.31, v1.26.0

feature:

  • a72ab25 @putout/minify: add ability to merge variables
  • 9a68d10 package: @putout/plugin-minify v1.23.0

2023.05.30, v1.25.0

feature:

  • 66b1fe4 package: @putout/printer v1.122.0

2023.05.30, v1.24.0

feature:

  • 5565688 @putout/minify: add declare
  • 01de27e package: @putout/plugin-minify v1.20.0
  • fd61633 @putout/minify: add types

2023.05.30, v1.23.0

feature:

  • ded7ad3 @putout/minify: add convert-arguments-to-rest

2023.05.30, v1.22.3

feature:

  • 4386656 package: @putout/plugin-minify v1.19.0

2023.05.30, v1.22.2

feature:

  • bbbdaba package: putout v29.10.0

2023.05.29, v1.22.1

feature:

  • 712f363 package: @putout/plugin-minify v1.18.0

2023.05.25, v1.22.0

feature:

  • b8a4a5b package: @putout/printer v1.118.0

2023.05.25, v1.21.0

feature:

  • 3f4a931 package: @putout/plugin-minify v1.16.0

2023.05.25, v1.20.3

feature:

  • 40255a3 package: @putout/plugin-minify v1.15.0

2023.05.25, v1.20.2

fix:

  • 8d4dc97 @putout/minify: add ability to rename ObjectProperty inside ObjectPattern (babel/babel#15648)

2023.05.25, v1.20.1

feature:

  • 71d5f7a @putout/minify: decrease dependencies count -> minified build

2023.05.24, v1.20.0

feature:

  • a56e4f6 @putout/minify: improve shebang support

2023.05.24, v1.19.1

feature:

  • 566605c package: @putout/printer v1.114.0

2023.05.24, v1.19.0

feature:

  • 8ee7cf5 @putout/minify: add remove-useless-else

2023.05.23, v1.18.1

feature:

  • 9c4a525 package: @putout/printer v1.110.0

2023.05.23, v1.18.0

feature:

  • 45f4178 package: @putout/plugin-minify v1.10.0

2023.05.23, v1.17.4

feature:

  • 88d6f0b package: @putout/printer v1.109.0
  • 85cf5c5 package: @putout/plugin-minify v1.9.0

2023.05.23, v1.17.3

feature:

  • 0ba0f40 package: @putout/printer v1.107.0

2023.05.22, v1.17.2

feature:

  • ff174a3 package: @putout/printer v1.106.2

2023.05.22, v1.17.1

feature:

  • e8805a5 package: @putout/printer v1.106.1

2023.05.22, v1.17.0

feature:

  • a3d7716 package: @putout/printer v1.104.0

2023.05.18, v1.16.5

feature:

  • 19c162d package: @putout/printer v1.103.0 (#2)

2023.05.18, v1.16.4

feature:

  • 5de5d12 @putout/printer: add small optimization

2023.05.18, v1.16.3

feature:

  • 6ffa279 package: @putout/printer v1.101.3

2023.05.18, v1.16.2

feature:

  • bbdbe69 package: @putout/printer v1.101.2

2023.05.18, v1.16.1

feature:

  • 32f26a3 package: @putout/plugin-conditions v1.1.0

2023.05.18, v1.16.0

feature:

  • f9e7cc4 @putout/minify: add ability to convert FunctionExpression to ArrowFunctionExpression

2023.05.18, v1.15.0

feature:

  • 7a3d913 @putout/minify: add ability to minify RegExp

2023.05.18, v1.14.0

fix:

  • 43c0f34 @putout/minify: exports (#1)

feature:

  • 03a8604 @putout/minify: add ability to minify type constructors

2023.05.18, v1.13.1

fix:

  • e66f869 @putout/minify: exports

2023.05.17, v1.13.0

feature:

  • e90ab4a @putout/minify: add support of logical-expressions, conditions
  • f1a7d70 package: @putout/plugin-logical-expressions v2.1.0
  • b983025 package: @putout/plugin-remove-unused-expressions v6.0.1

2023.05.17, v1.12.0

feature:

  • 246ddf3 @putout/minify: add support of couple elements inside BlockStatement body of IfStatement consequent

2023.05.17, v1.11.0

feature:

  • 45b4c05 @putout/minify: add ability to minify IfStatement

2023.05.17, v1.10.0

feature:

  • f7f2d95 @putout/minify: add ability to shorten types

2023.05.16, v1.9.0

feature:

  • 047bfec @putout/minify: use full for-of plugin

2023.05.16, v1.8.0

feature:

  • affc8a0 @putout/minify: @putout/plugin-minify v1.1.0: add ability to mangle names

2023.05.15, v1.7.0

feature:

  • 623967e @putout/plugin-minify: remove-nested-blocks: add

2023.05.15, v1.6.1

feature:

  • 9876f0c @putout/minify: minimize bundle

2023.05.15, v1.6.0

feature:

  • 6b6ce25 @putout/minify: speed up

2023.05.11, v1.5.0

feature:

  • 557d427 @putout/minify: add @putout/plugin-minify

2023.05.10, v1.4.0

feature:

  • fb06389 @putout/minify: add remove-unreferenced-variables

2023.05.10, v1.3.0

feature:

  • 264e26f @putout/minify: add remove-unused-expressions

2023.05.10, v1.2.0

feature:

  • 3054d26 @putout/minify: add remove-unreachable-code

2023.05.10, v1.1.2

feature:

  • 1fe2abd @putout/minify: add remove-console
  • 58cc93c @putout/minify: add apply-template-literals

2023.05.10, v1.1.1

feature:

  • 18306d3 @putout/printer: remove-useless-return

2023.05.10, v1.1.0

feature:

  • c1d12d2 @putout/minify: add remove-useless-spread

2023.05.09, v1.0.4

feature:

  • 37d349c @putout/printer: add merge-duplicate-function

2023.05.09, v1.0.3

feature:

  • 91ce4cf @putout/minify: add minify-dead-code
  • e1d081a @putout/minify: add minify type constructors

2023.05.09, v1.0.2

feature:

  • 6e90935 @putout/minify: add remove-unused-variables

2023.05.09, v1.0.1

feature:

  • 59cd0a4 minify: remove-return-undefined: exclude nesting
  • 8798f5f add ability to remove undefined