Replacements for rollup-plugin-terser
@rollup/plugin-terser
rollup-plugin-terser is deprecated and no longer maintained. @rollup/plugin-terser is its official successor, maintained by the Rollup team. The options are unchanged, but the plugin is now a default export rather than a named one.
Example:
js
import { terser } from 'rollup-plugin-terser'
import terser from '@rollup/plugin-terser'
export default {
plugins: [terser()]
}