@@ -44,7 +44,6 @@ use swc_common::{comments::Comments, pass::Repeated, sync::Lrc, SourceMap, Synta
4444use swc_ecma_ast:: * ;
4545use swc_ecma_transforms_optimization:: debug_assert_valid;
4646use swc_ecma_usage_analyzer:: marks:: Marks ;
47- use swc_ecma_utils:: ExprCtx ;
4847use swc_ecma_visit:: VisitMutWith ;
4948use swc_timer:: timer;
5049
@@ -57,7 +56,6 @@ use crate::{
5756 pass:: {
5857 global_defs, mangle_names:: idents_to_preserve, mangle_props:: mangle_properties,
5958 merge_exports:: merge_exports, postcompress:: postcompress_optimizer,
60- precompress:: precompress_optimizer,
6159 } ,
6260 // program_data::ModuleInfo,
6361 timing:: Timings ,
@@ -124,18 +122,6 @@ pub fn optimize(
124122 }
125123 }
126124
127- if let Some ( _options) = & options. compress {
128- let _timer = timer ! ( "precompress" ) ;
129-
130- n. visit_mut_with ( & mut precompress_optimizer ( ExprCtx {
131- unresolved_ctxt : SyntaxContext :: empty ( ) . apply_mark ( marks. unresolved_mark ) ,
132- is_unresolved_ref_safe : false ,
133- in_strict : false ,
134- remaining_depth : 6 ,
135- } ) ) ;
136- debug_assert_valid ( & n) ;
137- }
138-
139125 if options. compress . is_some ( ) {
140126 n. visit_mut_with ( & mut info_marker (
141127 options. compress . as_ref ( ) ,
0 commit comments