Skip to content

iexitdev/rollup-minify

rollup-minify

Migration helpers for rollup-plugin-terser to @rollup/plugin-terser.

rollup-plugin-terser is deprecated. This package does not bundle a minifier. It helps migration scripts and config generators normalize options and produce install/import snippets for the maintained Rollup plugin.

Install

npm install rollup-minify

Usage

import { createTerserPluginConfig, generateRollupImport } from "rollup-minify";

const config = createTerserPluginConfig({ sourcemap: true, output: { comments: false } });

console.log(generateRollupImport());
console.log(config.options);

API

  • createTerserPluginConfig(options?)
  • normalizeTerserOptions(options?)
  • generateRollupImport(name?)
  • recommendedInstall(packageManager?)

Migration Position

rollup-minify is an independent alternative or migration helper for projects moving away from rollup-plugin-terser. It is not affiliated with the original package maintainers or project.

For release context, see the local migration guide, examples, compatibility notes, source metadata, and adoption plan.

About

Migration helpers for replacing rollup-plugin-terser with @rollup/plugin-terser.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors