new/packages/terser/types/index.d.ts
raw| 1 | import type { Plugin } from 'rollup'; |
| 2 | import type { MinifyOptions } from 'terser'; |
| 3 | |
| 4 | export interface Options extends MinifyOptions { |
| 5 | nameCache?: Record<string, any>; |
| 6 | maxWorkers?: number; |
| 7 | } |
| 8 | |
| 9 | /** |
| 10 | * A Rollup plugin to generate a minified output bundle. |
| 11 | * |
| 12 | * @param options - Plugin options. |
| 13 | * @returns Plugin instance. |
| 14 | */ |
| 15 | export default function terser(options?: Options): Plugin; |