Skip to content

Commit

Permalink
changed uglify to terser
Browse files Browse the repository at this point in the history
  • Loading branch information
lopatnov committed Dec 7, 2019
1 parent 768e5df commit 5c61d5b
Show file tree
Hide file tree
Showing 10 changed files with 6,223 additions and 99 deletions.
13 changes: 9 additions & 4 deletions dist/plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { MinifyOptions } from 'uglify-js';
export default function uglify(options?: MinifyOptions): {
import { MinifyOptions } from 'terser';
export interface IUglifyOptions extends MinifyOptions {
include?: string | RegExp;
exclude?: string | RegExp;
}
declare function uglify(options?: IUglifyOptions): {
name: string;
transform(code: any): {
transform(code: any, id: any): {
code: string;
map: string;
map: string | import("source-map").RawSourceMap;
};
};
export default uglify;
Loading

0 comments on commit 5c61d5b

Please sign in to comment.