fix(minifier): do not remove_syntax in dead_code_elimination

This commit is contained in:
Boshen 2024-08-06 16:34:04 +08:00
parent bf48c7f02a
commit bf43148f1e
No known key found for this signature in database
GPG key ID: 67715A371E534061

View file

@ -93,11 +93,6 @@ impl CompressOptions {
}
pub fn dead_code_elimination() -> Self {
Self {
remove_syntax: true,
fold_constants: true,
remove_dead_code: true,
..Self::all_false()
}
Self { fold_constants: true, remove_dead_code: true, ..Self::all_false() }
}
}