@wwa/rollup-plugin-terser
v1.1.2
Published
[](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/ci.yml) [.
Installation
npm i -D @wwa/rollup-plugin-terserUsage
import { rollup } from 'rollup';
import { terser } from '@wwa/rollup-plugin-terser';
rollup({
input: 'file.js',
plugins: [
terser(),
],
});terser accepts an optional options parameter, which is the MinifyOptions object.
The plugin automatically sets the following options:
module: trueif the output format isesmores;toplevel: trueif the output format iscjs;sourcemapis always inferred from rollup's options.
