Home > @rushstack/module-minifier
module-minifier package
This library wraps terser in convenient handles for parallelization. It powers @rushstack/webpack4-module-minifier-plugin and @rushstack/webpack5-module-minifier-plugin but has no coupling with webpack.
Classes
Class | Description |
|---|---|
Minifier implementation that minifies code on the main thread. | |
Minifier implementation that outsources requests to the other side of a MessagePort | |
Minifier implementation that does not actually transform the code, for debugging. | |
Minifier implementation that uses a thread pool for minification. |
Functions
Function | Description |
|---|---|
Gets a base54 string suitable for use as a JavaScript identifier, omitting those that are valid ECMAScript keywords |
Interfaces
Interface | Description |
|---|---|
Options for configuring the LocalMinifier | |
Metadata from the minifier for the plugin | |
Callback passed to a minifier function | |
Result from the minifier function when an error is encountered. | |
Request to the minifier | |
Result from the minifier on a successful minification. | |
Object that can be invoked to minify code. | |
An async function called to minify a chunk of code | |
Options for configuring the WorkerPoolMinifier |
Type Aliases
Type Alias | Description |
|---|---|
Result from the minifier. |