Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#59482 fix(uglify-js): add 'webkit' compres…
Browse files Browse the repository at this point in the history
  • Loading branch information
peterblazejewicz authored Apr 8, 2022
1 parent c08fbfd commit 47bd72a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/uglify-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@ export interface CompressOptions {
* @default true
*/
varify?: boolean | undefined;
/**
* Support non-standard Safari/Webkit.
* By default UglifyJS will not try to be Safari-proof.
* @default false
*/
webkit?: boolean | undefined;
}

export enum InlineFunctions {
Expand Down
1 change: 1 addition & 0 deletions types/uglify-js/uglify-js-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const compressOptions: CompressOptions = {
templates: false,
unused: true,
varify: true,
webkit: true,
};
minify(code, {
compress: compressOptions,
Expand Down

0 comments on commit 47bd72a

Please sign in to comment.