一覧へ戻る
sjinks/rollup-plugin-terser(新しいタブで開きます)
主要言語: TypeScript
A Rollup plugin to minify the generated bundle with Terser
- star 数
- 6
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 9
- 最終更新
- 2026/10/28
主要言語: TypeScript
A Rollup plugin to minify the generated bundle with Terser
A Rollup plugin to minify the generated bundle with Terser.
This is a complete rewrite of TrySound/rollup-plugin-terser.
Main differences:
npm i -D @wwa/rollup-plugin-terser
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: true if the output format is esm or es;toplevel: true if the output format is cjs;sourcemap is always inferred from rollup's options.