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

Package detail

rollup-terser

wutility373MITdeprecated1.0.3TypeScript support: included

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Rollup plugin to minify generated bundle

rollup, rollup-plugin, terser, minify

readme

Rollup terser plugin

Rollup plugin to minify generated bundle. Uses terser under the hood.

Version license node Downloads dependency Size

Install

yarn add -D rollup-terser
# Or with npm:
npm i -D rollup-terser

Usage

import { rollup } from "rollup";
import { terser } from "rollup-terser";

rollup({
  input: "main.js",
  plugins: [terser(options?: MinifyOptions)],
});

Options

This plugin takes a configuration object for the Terser MinifyOptions.

Tests

Code origin: rollup-plugin-terser

License

MIT @Haikel Fazzani