# Changelog

## 5.6.1

### Patch Changes

- deduplicate extracted comments in linear time, so builds stay fast when an asset contains many distinct preserved comments (by [@alexander-akait](https://github.com/alexander-akait) in [#682](https://github.com/webpack/minimizer-webpack-plugin/pull/682))

## 5.6.0

### Minor Changes

- support array of minimizers for `minify` and `terserOptions` (by [@alexander-akait](https://github.com/alexander-akait) in [#674](https://github.com/webpack/minimizer-webpack-plugin/pull/674))

- add built-in CSS minimizers from `css-minimizer-webpack-plugin` (by [@alexander-akait](https://github.com/alexander-akait) in [#674](https://github.com/webpack/minimizer-webpack-plugin/pull/674))

- add built-in HTML minimizers from `html-minimizer-webpack-plugin` (by [@alexander-akait](https://github.com/alexander-akait) in [#674](https://github.com/webpack/minimizer-webpack-plugin/pull/674))

- add `filter` method to minimizers, allowing a single plugin instance to handle multiple asset types (by [@alexander-akait](https://github.com/alexander-akait) in [#674](https://github.com/webpack/minimizer-webpack-plugin/pull/674))

- terser-webpack-plugin has been renamed to minimizer-webpack-plugin, merging other minimizers from css-minimizer-webpack-plugin and html-minimizer-webpack-plugin. We will continue to publish new releases under the old name, but we recommend switching to the new package - minimizer-webpack-plugin. It is now a single plugin for minification. We also added the ability to specify different minifier types using only one plugin instance, which will improve performance. (by [@alexander-akait](https://github.com/alexander-akait) in [#677](https://github.com/webpack/minimizer-webpack-plugin/pull/677))

- rename `terserOptions` to `minimizerOptions`; `terserOptions` is kept as a deprecated alias (by [@alexander-akait](https://github.com/alexander-akait) in [#674](https://github.com/webpack/minimizer-webpack-plugin/pull/674))

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [5.5.0](https://github.com/webpack/terser-webpack-plugin/compare/v5.4.0...v5.5.0) (2026-04-23)

### Features

- support extractComments in swcMinify ([#665](https://github.com/webpack/terser-webpack-plugin/issues/665)) ([03143d3](https://github.com/webpack/terser-webpack-plugin/commit/03143d3fe38eae8a177eafd2cf2c225949d8fd95))

## [5.4.0](https://github.com/webpack/terser-webpack-plugin/compare/v5.3.17...v5.4.0) (2026-03-10)

### Features

- added ability to minimizer `JSON` using `jsonMinify` ([#657](https://github.com/webpack/terser-webpack-plugin/issues/657)) ([29ac915](https://github.com/webpack/terser-webpack-plugin/commit/29ac915e58ec2ff81346d936ee2cf63ac6e300b8))

### [5.3.17](https://github.com/webpack/terser-webpack-plugin/compare/v5.3.16...v5.3.17) (2026-03-03)

### Bug Fixes

- update `serialize-javascript` ([37c490c](https://github.com/webpack/terser-webpack-plugin/commit/37c490c326ffe3416b50028a91bfba5661e1344e))

### [5.3.16](https://github.com/webpack/terser-webpack-plugin/compare/v5.3.15...v5.3.16) (2025-12-11)

### Bug Fixes

- handle empty files ([#643](https://github.com/webpack/terser-webpack-plugin/issues/643)) ([05012e9](https://github.com/webpack/terser-webpack-plugin/commit/05012e969fed6f77e3155f618308bdc321f0806a))

### [5.3.15](https://github.com/webpack/terser-webpack-plugin/compare/v5.3.14...v5.3.15) (2025-12-05)

### Bug Fixes

- catch error when loading minimizers ([#639](https://github.com/webpack/terser-webpack-plugin/issues/639)) ([586af0a](https://github.com/webpack/terser-webpack-plugin/commit/586af0aa31859e8af37da455e0050c33b62bc645))
- respect errors and warnings from minimizer without code ([8607f79](https://github.com/webpack/terser-webpack-plugin/commit/8607f79c87bf07fc337631a6ccfb84415034afae))

### [5.3.14](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.13...v5.3.14) (2025-03-06)

### Bug Fixes

- types ([#622](https://github.com/webpack-contrib/terser-webpack-plugin/issues/622)) ([84bb19b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/84bb19bcfd043d0923915abec45211e5e5662d47))
- use `os.availableParallelism()` for parallelism when it is available ([#623](https://github.com/webpack-contrib/terser-webpack-plugin/issues/623)) ([1357994](https://github.com/webpack-contrib/terser-webpack-plugin/commit/1357994b1c4bdcbed4c463fbb1f6f14855a68ac5))

### [5.3.13](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.12...v5.3.13) (2025-03-05)

### Bug Fixes

- `ecma` and `module` types in minimizer options ([#620](https://github.com/webpack-contrib/terser-webpack-plugin/issues/620)) ([5aa43c2](https://github.com/webpack-contrib/terser-webpack-plugin/commit/5aa43c26a63d2da601f64dd16e9bf15f1da73777))

### [5.3.12](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.11...v5.3.12) (2025-02-27)

### Bug Fixes

- allows minimizers to set worker thread support and don't use worker thread for `swc` and `esbuild` ([#619](https://github.com/webpack-contrib/terser-webpack-plugin/issues/619)) ([15ddaab](https://github.com/webpack-contrib/terser-webpack-plugin/commit/15ddaabe1401d54a52447a9b6453f958ccf3b87e))

### [5.3.11](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.10...v5.3.11) (2024-12-13)

### Bug Fixes

- avoid the deprecation message ([0341ad1](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0341ad1b490ff1bb4ebe3345fc5add79b8d69102))

### [5.3.10](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.9...v5.3.10) (2023-12-28)

### Bug Fixes

- bump terser to the latest stable version ([#587](https://github.com/webpack-contrib/terser-webpack-plugin/issues/587)) ([f650fa3](https://github.com/webpack-contrib/terser-webpack-plugin/commit/f650fa3ca7c437f88612fee72c9975df9b42b9a3))

### [5.3.9](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.8...v5.3.9) (2023-05-17)

### Bug Fixes

- types of Rule ([#565](https://github.com/webpack-contrib/terser-webpack-plugin/issues/565)) ([bb33513](https://github.com/webpack-contrib/terser-webpack-plugin/commit/bb3351342cbf1f11bfac83617982397a6c911098))

### [5.3.8](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.7...v5.3.8) (2023-05-06)

### Bug Fixes

- reduce initial loading time ([#561](https://github.com/webpack-contrib/terser-webpack-plugin/issues/561)) ([cd7df3c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/cd7df3c26b3fad105a80ac30efcd83df99f47f67))

### [5.3.7](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.6...v5.3.7) (2023-03-08)

### Bug Fixes

- esbuild warning output ([#550](https://github.com/webpack-contrib/terser-webpack-plugin/issues/550)) ([2e54869](https://github.com/webpack-contrib/terser-webpack-plugin/commit/2e54869a9f38cbaedd4d783ac81e1ac66e074809))

### [5.3.6](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.5...v5.3.6) (2022-08-29)

### Bug Fixes

- allow disable compress options for `terser` and `swc` ([#514](https://github.com/webpack-contrib/terser-webpack-plugin/issues/514)) ([52c1aef](https://github.com/webpack-contrib/terser-webpack-plugin/commit/52c1aef218923b716a0b25433e7d916c5bb6c805))

### [5.3.5](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.4...v5.3.5) (2022-08-16)

### Bug Fixes

- types ([#512](https://github.com/webpack-contrib/terser-webpack-plugin/issues/512)) ([5c13ba7](https://github.com/webpack-contrib/terser-webpack-plugin/commit/5c13ba748f789968b65c4f06c4f260f44ae6ed47))

### [5.3.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.3...v5.3.4) (2022-08-12)

### Bug Fixes

- respect environment options for terser and swc compress options ([#509](https://github.com/webpack-contrib/terser-webpack-plugin/issues/509)) ([29bbc3a](https://github.com/webpack-contrib/terser-webpack-plugin/commit/29bbc3ae1c95097b010310217944f4145959f02a))

### [5.3.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.2...v5.3.3) (2022-06-02)

### Fixes

- fix broken release

### [5.3.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.1...v5.3.2) (2022-06-02)

### Chore

- switched to `@jridgewell/source-map` for error generation

### [5.3.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.0...v5.3.1) (2022-02-01)

### Bug Fixes

- use TerserECMA type to fix type mismatch ([#471](https://github.com/webpack-contrib/terser-webpack-plugin/issues/471)) ([68920cd](https://github.com/webpack-contrib/terser-webpack-plugin/commit/68920cd8d79460c82f4f3e0ad5702cd969b9512f))

## [5.3.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.5...v5.3.0) (2021-12-16)

### Features

- removed cjs wrapper and generated types in commonjs format (`export =` and `namespaces` used in types), now you can directly use exported types ([#463](https://github.com/webpack-contrib/terser-webpack-plugin/issues/463)) ([34fadde](https://github.com/webpack-contrib/terser-webpack-plugin/commit/34faddee763fed3f38c3ee5eb8edd1387c8b4b0a))

### [5.2.5](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.4...v5.2.5) (2021-11-08)

### Bug Fixes

- output readable esbuild warnings ([9431b32](https://github.com/webpack-contrib/terser-webpack-plugin/commit/9431b32fed4d0af221e7a999f4aaaeeab70de741))

### [5.2.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.3...v5.2.4) (2021-09-09)

### Bug Fixes

- types for the `parallel` option ([#448](https://github.com/webpack-contrib/terser-webpack-plugin/issues/448)) ([1e14230](https://github.com/webpack-contrib/terser-webpack-plugin/commit/1e142307d53549232b3a3b57ca13000526e56a97))

### [5.2.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.2...v5.2.3) (2021-09-03)

### Bug Fixes

- types for the `extractComments` option ([#444](https://github.com/webpack-contrib/terser-webpack-plugin/issues/444)) ([14e5cbf](https://github.com/webpack-contrib/terser-webpack-plugin/commit/14e5cbf15b79c77fac46c30de209484737612f37))
- unknown default type for terser ([#445](https://github.com/webpack-contrib/terser-webpack-plugin/issues/445)) ([04f4d6d](https://github.com/webpack-contrib/terser-webpack-plugin/commit/04f4d6d40dc2658485913ff545584da1f8af7178))

### [5.2.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.1...v5.2.2) (2021-09-03)

### Bug Fixes

- types for optional dependencies have been removed in favor of the options provided by the developer (potential breaking change for types due invalid usage), please look at [example](https://github.com/webpack-contrib/terser-webpack-plugin#typescript) ([d7ea08f](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d7ea08fada95a542c219a7c3beb0fea5abf6aab0))

### [5.2.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.0...v5.2.1) (2021-09-02)

### Bug Fixes

- types export ([#440](https://github.com/webpack-contrib/terser-webpack-plugin/issues/440)) ([c6dc40d](https://github.com/webpack-contrib/terser-webpack-plugin/commit/c6dc40d98917c1a743cd006f0a37ca461df80706))
- types for optional peer dependencies ([7577b43](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7577b43c37ba377dd50cf438e8d3171ad13631ae))

## [5.2.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.1.4...v5.2.0) (2021-08-31)

### Notes

- due `terser-webpack-plugin` has its own types now, `@types/terser-webpack-plugin` should be not used anymore, also `@types/terser-webpack-plugin` is not compatible and has wrong types

### Features

- added `esbuild` minimizer ([#426](https://github.com/webpack-contrib/terser-webpack-plugin/issues/426)) ([40f4f55](https://github.com/webpack-contrib/terser-webpack-plugin/commit/40f4f55a59d8d383db452fc5b93f8c3b7a7073d2))
- added `swc` minimizer ([0551a9b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0551a9b535c6e9ec55315c4b653a7c0ef7a45645))
- added `uglify-js` minimizer ([#425](https://github.com/webpack-contrib/terser-webpack-plugin/issues/425)) ([69e9592](https://github.com/webpack-contrib/terser-webpack-plugin/commit/69e9592246e6e9512744e47ff777a1839af05a37))
- added built-in typescript types ([0a7cc94](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0a7cc949391d164db215efadd1b654fcabb6d9ff))
- output links and descriptions on error ([#413](https://github.com/webpack-contrib/terser-webpack-plugin/issues/413)) ([bc95af5](https://github.com/webpack-contrib/terser-webpack-plugin/commit/bc95af5b0ea1eee72ed298ae9325f8efcb27b3ce))

### [5.1.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.1.3...v5.1.4) (2021-06-25)

- update `serialize-javascript`

### [5.1.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.1.2...v5.1.3) (2021-05-31)

### Chore

- update `jest-worker`

### [5.1.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.1.1...v5.1.2) (2021-05-12)

### Bug Fixes

- don't crash in non-parallel mode ([#395](https://github.com/webpack-contrib/terser-webpack-plugin/issues/395)) ([a177425](https://github.com/webpack-contrib/terser-webpack-plugin/commit/a1774257f7ccedafa15a58aaeba6186c47daea8a))

### [5.1.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.1.0...v5.1.1) (2021-01-09)

### Bug Fixes

- remove verbose console log ([#374](https://github.com/webpack-contrib/terser-webpack-plugin/issues/374)) ([3a3fe51](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3a3fe516c10799d65f41b1572c25a9e6e9cacfe5))

## [5.1.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.0.3...v5.1.0) (2021-01-08)

### Features

- optimize JS assets added later by plugins ([#373](https://github.com/webpack-contrib/terser-webpack-plugin/issues/373)) ([fea6f20](https://github.com/webpack-contrib/terser-webpack-plugin/commit/fea6f201488d5abc5aa695085ea329353adca547))

### [5.0.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.0.2...v5.0.3) (2020-10-28)

### Bug Fixes

- performance ([#351](https://github.com/webpack-contrib/terser-webpack-plugin/issues/351)) ([78d821b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/78d821b0f8d610a44aab19bb27310c1d05951872))

### [5.0.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.0.0...v5.0.2) (2020-10-27)

### Bug Fixes

- compatibility with the `format` option for `terser` ([b944353](https://github.com/webpack-contrib/terser-webpack-plugin/commit/b944353b40c831779dd989854a4dbc81f47d4a55))

### [5.0.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.0.0...v5.0.1) (2020-10-23)

### Bug Fixes

- improved performance (we strongly recommend using latest LTS releases) ([#345](https://github.com/webpack-contrib/terser-webpack-plugin/issues/345)) ([95f3418](https://github.com/webpack-contrib/terser-webpack-plugin/commit/95f3418201f8c8e3d31ac03ac71ddc58f46e006b))
- used `worker_thread` where is it possible ([#344](https://github.com/webpack-contrib/terser-webpack-plugin/issues/344)) ([3c50404](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3c50404b46795348dc44b5c8a6291f8d9ba5983a))
- fixed terser options for es module ([a12730f](https://github.com/webpack-contrib/terser-webpack-plugin/commit/a12730f6c251d4a17afd51e6f700530c62d091ca))

## [5.0.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.2.3...v5.0.0) (2020-10-14)

### ⚠ BREAKING CHANGES

- webpack@4 no longer supported
- removed the `cache` option
- removed the `cacheKeys` option
- removed the `sourceMap` option (respect the `devtool` option by default)

### Bug Fixes

- reduce deps
- performance improvement

### [4.2.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.2.2...v4.2.3) (2020-10-07)

### Bug Fixes

- better minimizing `mjs` assets ([#329](https://github.com/webpack-contrib/terser-webpack-plugin/issues/329)) ([041b392](https://github.com/webpack-contrib/terser-webpack-plugin/commit/041b39208d364c8af9cd2b3f8e503b05a77ae067))
- minify `cjs` assets ([#328](https://github.com/webpack-contrib/terser-webpack-plugin/issues/328)) ([b9c694d](https://github.com/webpack-contrib/terser-webpack-plugin/commit/b9c694d2c1193438d3ef72fed8d1789d9a48a367))

### [4.2.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.2.1...v4.2.2) (2020-09-19)

### Bug Fixes

- related asset info ([a75dc8b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/a75dc8bed97daecc509387a23a72699620695ab2))

### [4.2.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.2.0...v4.2.1) (2020-09-15)

### Bug Fixes

- cache for extracted comments ([#314](https://github.com/webpack-contrib/terser-webpack-plugin/issues/314)) ([5340814](https://github.com/webpack-contrib/terser-webpack-plugin/commit/5340814188d53031b0444b8f588995dcbede88fc))
- compatibility with webpack@5 ([f5bd8f8](https://github.com/webpack-contrib/terser-webpack-plugin/commit/f5bd8f8b1c0fc807fd00c57207e449056aeea35d))

## [4.2.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.1.0...v4.2.0) (2020-09-11)

### Features

- improve caching ([defde64](https://github.com/webpack-contrib/terser-webpack-plugin/commit/defde640c8a2448fe7a5fee95a516af6e1bba8e4))
- pass the `terserOptions` to the `minify` option ([#311](https://github.com/webpack-contrib/terser-webpack-plugin/issues/311)) ([4bd622c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/4bd622cdaeb51be5d5151925f64ac1054298a214))

### Bug Fixes

- compatibility with webpack@5 ([#301](https://github.com/webpack-contrib/terser-webpack-plugin/issues/301)) ([9d861d8](https://github.com/webpack-contrib/terser-webpack-plugin/commit/9d861d8484eb36fa62c67f03b980cad2a43c3d2a))

## [4.1.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.0.0...v4.1.0) (2020-08-10)

### Features

- pass license files as related assets for webpack@5 ([7d3ae95](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7d3ae95bc890a5211efe234301050815ef8e687e))

### Bug Fixes

- compatibility with `10.13` version of `Node.js`

## [4.0.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.1.0...v4.0.0) (2020-08-04)

### ⚠ BREAKING CHANGES

- the `warningsFilter` option was removed without replacement,
- `terser` version is `5`,
- return value of the `minify` option was changed, only `code`/`map`/`extractedComments` are valid

### Features

- improved compatibility with webpack@5

## [3.1.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.8...v3.1.0) (2020-08-03)

### Features

- show minimized assets in stats for webpack@5 ([#289](https://github.com/webpack-contrib/terser-webpack-plugin/issues/289)) ([d59eae2](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d59eae2108ba43f3f7ce6c83195a8438634a9b55))

### Bug Fixes

- compatibility cache feature with webpack@5 ([5d2bd29](https://github.com/webpack-contrib/terser-webpack-plugin/commit/5d2bd29403f614296795664a81e437712469bc05))
- skip double compression for child compilation ([37cc813](https://github.com/webpack-contrib/terser-webpack-plugin/commit/37cc8132df50ad7b374ec2606df1d0e202a579d1))

### [3.0.8](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.7...v3.0.8) (2020-07-27)

### Bug Fixes

- compatibility with child compilations ([9da4add](https://github.com/webpack-contrib/terser-webpack-plugin/commit/9da4add75390a583366b7f030d366c437a52137b))

### [3.0.7](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.6...v3.0.7) (2020-07-16)

### Bug Fixes

- uglify additional assets ([100e38e](https://github.com/webpack-contrib/terser-webpack-plugin/commit/100e38e0db035f6eb21bbec2bbc1f8b12aee9f60))

### [3.0.6](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.5...v3.0.6) (2020-06-18)

### Bug Fixes

- do not crash on buffer assets ([3c67023](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3c670238952ddd5cbbf17f223e13a921f3b76521))

### [3.0.5](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.4...v3.0.5) (2020-06-15)

### Bug Fixes

- multi-compiler crash ([f6499af](https://github.com/webpack-contrib/terser-webpack-plugin/commit/f6499afb40f7a3b434c880d555261d62e0de4fd7))

### [3.0.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.3...v3.0.4) (2020-06-13)

### Chore

- update `p-limit` and `serialize-javascript` packages

### [3.0.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.1...v3.0.3) (2020-06-03)

### Bug Fixes

- compatibility with `>= 10.13` versions of Node.js
- security problem ([#259](https://github.com/webpack-contrib/terser-webpack-plugin/issues/259)) ([522aa2c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/522aa2cd4e9c4b508b268eef99572c7c808fe0b6))

### [3.0.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.1...v3.0.2) (2020-05-26)

### Bug Fixes

- compatibility with webpack@5 ([#250](https://github.com/webpack-contrib/terser-webpack-plugin/issues/250)) ([d3ff61c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d3ff61cbb714da8fb6ee1f7659bf6796774ab4cc))

### [3.0.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.0...v3.0.1) (2020-05-06)

### Bug Fixes

- parallelism in multi compilation mode ([0ee7ed2](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0ee7ed270b8cbf6312cc1009c5aa5f909fc7fbb7))
- remove redundant code for the `chunkFilter` option ([#243](https://github.com/webpack-contrib/terser-webpack-plugin/issues/243)) ([7220734](https://github.com/webpack-contrib/terser-webpack-plugin/commit/722073494ae708e7cd94cdb9df26fb483e93e8de))

## [3.0.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.6...v3.0.0) (2020-05-01)

### ⚠ BREAKING CHANGES

- minimum supported Node.js version is `10.13`
- the `chunkFilter` was removed, please use `test`/`include`/`exclude` options
- change arguments order for the `warningFilter` option from `Function<(warning, file, source) -> Boolean>` to `Function<(file, warning, source) -> Boolean>`
- when the `extractComments.filename` option is a function it pass only one argument and it is object with `filename`, `basename`, `query` and `hash` properties
- if the value from the `extractComments.filename` option conflicts with existing assets, an error will be thrown instead of a warning
- use the `optimizeAssets` hook for webpack@5

### [2.3.6](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.5...v2.3.6) (2020-04-25)

### Bug Fixes

- preserve `@license` comments starting with `//` ([d3f0c81](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d3f0c811672920b658edaa99815de9204716fa21))

### [2.3.5](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.4...v2.3.5) (2020-02-14)

### Bug Fixes

- do not break code with shebang ([fac58cb](https://github.com/webpack-contrib/terser-webpack-plugin/commit/fac58cb1ee7935710b3b38662c3abbf8dc12a862))

### [2.3.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.3...v2.3.4) (2020-01-30)

### Bug Fixes

- respect stdout and stderr of workers and do not create warnings ([#215](https://github.com/webpack-contrib/terser-webpack-plugin/issues/215)) ([5708574](https://github.com/webpack-contrib/terser-webpack-plugin/commit/5708574d3337158a02d60a81275467900da5f42d))
- use webpack hash options rather than hard-code MD4 ([#213](https://github.com/webpack-contrib/terser-webpack-plugin/issues/213)) ([330c1f6](https://github.com/webpack-contrib/terser-webpack-plugin/commit/330c1f6cf3468fd6312e86960b272df1591f1a64))

### [2.3.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.2...v2.3.3) (2020-01-28)

### Bug Fixes

- license files now have .txt suffix by default ([#210](https://github.com/webpack-contrib/terser-webpack-plugin/issues/210)) ([de02f7b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/de02f7b229a6ef91baa353681b1c546784672ab6))
- reduce memory usage ([abfd950](https://github.com/webpack-contrib/terser-webpack-plugin/commit/abfd9506207cf392de63a0629de82145efff2361))

### [2.3.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.1...v2.3.2) (2020-01-09)

### Bug Fixes

- show error message from jest-worker ([#203](https://github.com/webpack-contrib/terser-webpack-plugin/issues/203)) ([3b28007](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3b280070cde3b233ae703fe2e0ac75b350cb2da7))

### [2.3.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.0...v2.3.1) (2019-12-17)

### Bug Fixes

- performance ([#200](https://github.com/webpack-contrib/terser-webpack-plugin/issues/200)) ([d2acd75](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d2acd75f4b630af38d2c272f800e755fe395b2dd))

## [2.3.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.3...v2.3.0) (2019-12-12)

### Features

- support webpack@5 cache ([3649b3d](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3649b3d0bf697288661676b47b33ae88226eb6f5))

### [2.2.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.2...v2.2.3) (2019-12-11)

### SECURITY

- update `serialize-javascript` to `2.1.2` version.

### [2.2.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.1...v2.2.2) (2019-12-06)

### SECURITY

- update `serialize-javascript` to `2.1.1` version.

### [2.2.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.0...v2.2.1) (2019-10-22)

### Bug Fixes

- get rid deprecation warnings for webpack@5 ([#181](https://github.com/webpack-contrib/terser-webpack-plugin/issues/181)) ([0e9b780](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0e9b780390826a9b9f58368f24b39452ca34f00e))

## [2.2.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.3...v2.2.0) (2019-10-22)

### Features

- map `webpack@5` options to `terser` options ([#177](https://github.com/webpack-contrib/terser-webpack-plugin/issues/177)) ([f4c47aa](https://github.com/webpack-contrib/terser-webpack-plugin/commit/f4c47aa0e3de27bbab3ae0a90a461841bbce5988))
- pass an asset path for the `warningsFilter` option ([#176](https://github.com/webpack-contrib/terser-webpack-plugin/issues/176)) ([9a0a575](https://github.com/webpack-contrib/terser-webpack-plugin/commit/9a0a575585be21118cb4e3611d30e665a6337c3d))
- propagate an error stacktrace from `terser` ([#179](https://github.com/webpack-contrib/terser-webpack-plugin/issues/179)) ([a11e66b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/a11e66b17ae2bb146ded4e64c948d5eece834378))
- enable the `sourceMap` option when the `SourceMapDevToolPlugin` plugin used (non cheap) ([#178](https://github.com/webpack-contrib/terser-webpack-plugin/issues/178)) ([d01c1b5](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d01c1b5fef7f0593c91c1be3d4eb36220c3f465d))

### Bug Fixes

- get rid deprecation warnings for `webpack@5` ([#180](https://github.com/webpack-contrib/terser-webpack-plugin/issues/180)) ([504ea8b](https://github.com/webpack-contrib/terser-webpack-plugin/commit/504ea8b2017e6fa9b8a5f2123025ee5b7b4d80b1))

### [2.1.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.2...v2.1.3) (2019-10-10)

### Bug Fixes

- invalidate cache when a file name was changed ([#171](https://github.com/webpack-contrib/terser-webpack-plugin/issues/171)) ([7e1d370](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7e1d370ce2520c7c23689c19b22cfbea0265957e))

### [2.1.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.1...v2.1.2) (2019-09-28)

### Bug Fixes

- regexp for `some` comments ([#168](https://github.com/webpack-contrib/terser-webpack-plugin/issues/168)) ([4c4b1f1](https://github.com/webpack-contrib/terser-webpack-plugin/commit/4c4b1f1))

### [2.1.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.0...v2.1.1) (2019-09-27)

### Bug Fixes

- logic for extracting and preserving comments ([#166](https://github.com/webpack-contrib/terser-webpack-plugin/issues/166)) ([6bdee64](https://github.com/webpack-contrib/terser-webpack-plugin/commit/6bdee64))

## [2.1.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.0.1...v2.1.0) (2019-09-16)

### Bug Fixes

- correct interpretation url for extracted comment file ([#157](https://github.com/webpack-contrib/terser-webpack-plugin/issues/157)) ([aba8ba7](https://github.com/webpack-contrib/terser-webpack-plugin/commit/aba8ba7))

### Features

- emit warning when comment file conlict with an existing asset ([#156](https://github.com/webpack-contrib/terser-webpack-plugin/issues/156)) ([2b4d2a4](https://github.com/webpack-contrib/terser-webpack-plugin/commit/2b4d2a4))
- improve naming of extracted file with comments ([#154](https://github.com/webpack-contrib/terser-webpack-plugin/issues/154)) ([5fe3337](https://github.com/webpack-contrib/terser-webpack-plugin/commit/5fe3337))

### [2.0.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.0.0...v2.0.1) (2019-09-06)

### Bug Fixes

- reduce memory usage ([#145](https://github.com/webpack-contrib/terser-webpack-plugin/issues/145)) ([815e533](https://github.com/webpack-contrib/terser-webpack-plugin/commit/815e533))
- revert do not run parallel mode when you have only one file ([#146](https://github.com/webpack-contrib/terser-webpack-plugin/issues/146)) ([6613a97](https://github.com/webpack-contrib/terser-webpack-plugin/commit/6613a97))

## [2.0.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.4.1...v2.0.0) (2019-09-05)

### ⚠ BREAKING CHANGES

- minimum require Node.js version is `8.9.0`
- the `extractComments` option is `true` by default
- the `cache` option is `true` by default
- the `parallel` option is `true` by default
- using the `extractComments.condition` option with `true` value extract only `some` comments
- the `sourceMap` option now defaults to depending on the `devtool` Webpack option

### Bug Fixes

- do not run parallel mode when you have only one file ([#134](https://github.com/webpack-contrib/terser-webpack-plugin/issues/134)) ([8b88b39](https://github.com/webpack-contrib/terser-webpack-plugin/commit/8b88b39))
- make `extractComments` API more consistent ([#129](https://github.com/webpack-contrib/terser-webpack-plugin/issues/129)) ([37d2df0](https://github.com/webpack-contrib/terser-webpack-plugin/commit/37d2df0))
- parallel on wsl ([#138](https://github.com/webpack-contrib/terser-webpack-plugin/issues/138)) ([0537591](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0537591))

### Features

- enable the cache option by default ([#132](https://github.com/webpack-contrib/terser-webpack-plugin/issues/132)) ([960d249](https://github.com/webpack-contrib/terser-webpack-plugin/commit/960d249))
- enable the extractComments option by default ([ad2471c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/ad2471c))
- enable the parallel option by default ([#131](https://github.com/webpack-contrib/terser-webpack-plugin/issues/131)) ([7b342af](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7b342af))
- respect `devtool` values for source map generation ([#140](https://github.com/webpack-contrib/terser-webpack-plugin/issues/140)) ([dd37ca1](https://github.com/webpack-contrib/terser-webpack-plugin/commit/dd37ca1))

### [1.4.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.4.0...v1.4.1) (2019-07-31)

### Bug Fixes

- removed unnecessary dependency ([#111](https://github.com/webpack-contrib/terser-webpack-plugin/issues/111)) ([bc19b72](https://github.com/webpack-contrib/terser-webpack-plugin/commit/bc19b72))

## [1.4.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.3.0...v1.4.0) (2019-07-31)

### Features

- generate higher quality SourceMaps ([#109](https://github.com/webpack-contrib/terser-webpack-plugin/issues/109)) ([9d777f0](https://github.com/webpack-contrib/terser-webpack-plugin/commit/9d777f0))

## [1.3.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.4...v1.3.0) (2019-05-24)

### Features

- update terser to 4 version ([#97](https://github.com/webpack-contrib/terser-webpack-plugin/issues/97)) ([15d1595](https://github.com/webpack-contrib/terser-webpack-plugin/commit/15d1595))

### [1.2.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.3...v1.2.4) (2019-05-15)

### Bug Fixes

- disable parallel on WSL due bugs ([#90](https://github.com/webpack-contrib/terser-webpack-plugin/issues/90)) ([d9533dd](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d9533dd))
- fallback for cache directory ([#86](https://github.com/webpack-contrib/terser-webpack-plugin/issues/86)) ([3cdd2ed](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3cdd2ed))

<a name="1.2.3"></a>

## [1.2.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.2...v1.2.3) (2019-02-25)

### Bug Fixes

- invalidate cache after changing node version ([675edfd](https://github.com/webpack-contrib/terser-webpack-plugin/commit/675edfd))

<a name="1.2.2"></a>

## [1.2.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.1...v1.2.2) (2019-02-04)

### Bug Fixes

- cannot read property 'minify' of undefined ([#69](https://github.com/webpack-contrib/terser-webpack-plugin/issues/69)) ([0593d7c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/0593d7c))

<a name="1.2.1"></a>

## [1.2.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.0...v1.2.1) (2018-12-27)

### Bug Fixes

- don't crash when no extracted comments ([#49](https://github.com/webpack-contrib/terser-webpack-plugin/issues/49)) ([efad586](https://github.com/webpack-contrib/terser-webpack-plugin/commit/efad586))

<a name="1.2.0"></a>

# [1.2.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.1.0...v1.2.0) (2018-12-22)

### Bug Fixes

- `chunks` is a `Set` in webpack@5 ([#19](https://github.com/webpack-contrib/terser-webpack-plugin/issues/19)) ([df8c425](https://github.com/webpack-contrib/terser-webpack-plugin/commit/df8c425))
- catch `work-farm` errors ([#35](https://github.com/webpack-contrib/terser-webpack-plugin/issues/35)) ([2bdcd38](https://github.com/webpack-contrib/terser-webpack-plugin/commit/2bdcd38))
- dedupe extracted comments ([#40](https://github.com/webpack-contrib/terser-webpack-plugin/issues/40)) ([7f4a159](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7f4a159))
- more consistent cache ([#43](https://github.com/webpack-contrib/terser-webpack-plugin/issues/43)) ([36f5f3c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/36f5f3c))
- regenerate `contenthash` when assets was uglified ([#44](https://github.com/webpack-contrib/terser-webpack-plugin/issues/44)) ([7e6f8b1](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7e6f8b1))

### Features

- `chunkFilter` option for filtering chunks ([#38](https://github.com/webpack-contrib/terser-webpack-plugin/issues/38)) ([7ffe57c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7ffe57c))
- uglify `mjs` by default ([#39](https://github.com/webpack-contrib/terser-webpack-plugin/issues/39)) ([1644620](https://github.com/webpack-contrib/terser-webpack-plugin/commit/1644620))

<a name="1.1.0"></a>

# [1.1.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.0.1...v1.1.0) (2018-09-14)

### Bug Fixes

- extract comment conditions is case insensitivity ([19e1e43](https://github.com/webpack-contrib/terser-webpack-plugin/commit/19e1e43))

### Features

- full coverage schema options validation ([#8](https://github.com/webpack-contrib/terser-webpack-plugin/issues/8)) ([68e531e](https://github.com/webpack-contrib/terser-webpack-plugin/commit/68e531e))

<a name="1.0.2"></a>

## [1.0.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.0.1...v1.0.2) (2018-08-16)

### Internal

- migrate from `@webpack-contrib/schema-utils` to `schema-utils` ([a5432da](https://github.com/webpack-contrib/terser-webpack-plugin/commit/a5432da))

<a name="1.0.1"></a>

## [1.0.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.0.0...v1.0.1) (2018-08-15)

### Bug Fixes

- `cpus` length in a chroot environment (`os.cpus()`) ([#4](https://github.com/webpack-contrib/terser-webpack-plugin/issues/4)) ([9375646](https://github.com/webpack-contrib/terser-webpack-plugin/commit/9375646))

<a name="1.0.0"></a>

# 1.0.0 (2018-08-02)

Initial publish release

# Change Log

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
