File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export interface CompressOptions {
6161 */
6262 sequences ?: boolean
6363 /** Limit the maximum number of iterations for debugging purpose. */
64- passes ?: number
64+ maxIterations ?: number
6565}
6666
6767export interface CompressOptionsKeepNames {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub struct CompressOptions {
5353 pub sequences : Option < bool > ,
5454
5555 /// Limit the maximum number of iterations for debugging purpose.
56- pub passes : Option < u8 > ,
56+ pub max_iterations : Option < u8 > ,
5757}
5858
5959impl TryFrom < & CompressOptions > for oxc_minifier:: CompressOptions {
@@ -81,7 +81,7 @@ impl TryFrom<&CompressOptions> for oxc_minifier::CompressOptions {
8181 } ,
8282 keep_names : o. keep_names . as_ref ( ) . map ( Into :: into) . unwrap_or_default ( ) ,
8383 treeshake : TreeShakeOptions :: default ( ) ,
84- max_iterations : o. passes ,
84+ max_iterations : o. max_iterations ,
8585 } )
8686 }
8787}
You can’t perform that action at this time.
0 commit comments