index.d.ts 696 B

1234567891011121314151617181920212223242526
  1. import { Plugin } from 'rollup';
  2. import { MinifyOptions } from 'terser';
  3. export interface Options extends Omit<MinifyOptions, "sourceMap"> {
  4. /**
  5. * Specifically include/exclude chunk files names (minimatch pattern, or array of minimatch patterns), By default all chunk files will be minify.
  6. */
  7. include?: Array<string | RegExp> | string | RegExp | null;
  8. exclude?: Array<string | RegExp> | string | RegExp | null;
  9. /**
  10. * Amount of workers to spawn. Defaults to the number of CPUs minus 1.
  11. */
  12. numWorkers?: number;
  13. /**
  14. * Generates source maps and passes them to rollup.
  15. *
  16. * @default true
  17. */
  18. sourcemap?: boolean;
  19. }
  20. export declare function terser(options?: Options): Plugin;