This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typescript declaration file (#38)
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Plugin } from 'rollup'; | ||
import { MinifyOptions } from 'terser'; | ||
|
||
export interface Options extends MinifyOptions { | ||
|
||
/** | ||
* Specifically include/exclude chunk files names (minimatch pattern, or array of minimatch patterns), By default all chunk files will be minify. | ||
*/ | ||
include?: Array<string | RegExp> | string | RegExp | null; | ||
exclude?: Array<string | RegExp> | string | RegExp | null; | ||
|
||
/** | ||
* Amount of workers to spawn. Defaults to the number of CPUs minus 1. | ||
*/ | ||
numWorkers?: number; | ||
|
||
/** | ||
* Generates source maps and passes them to rollup. | ||
* | ||
* @default true | ||
*/ | ||
sourcemap?: boolean; | ||
|
||
} | ||
|
||
export declare function terser(options?: Options): Plugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters