File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
crates/oxc_transformer/src/options Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,7 @@ impl EnvOptions {
84
84
es2021 : ES2021Options { logical_assignment_operators : true } ,
85
85
es2022 : ES2022Options {
86
86
class_static_block : true ,
87
- class_properties : if include_unfinished_plugins {
88
- Some ( ClassPropertiesOptions :: default ( ) )
89
- } else {
90
- None
91
- } ,
87
+ class_properties : Some ( ClassPropertiesOptions :: default ( ) ) ,
92
88
} ,
93
89
}
94
90
}
@@ -139,9 +135,7 @@ impl EnvOptions {
139
135
}
140
136
}
141
137
engine_targets. insert ( Engine :: Es , es_target. unwrap_or ( ESTarget :: default ( ) ) . version ( ) ) ;
142
- let mut env_options = EnvOptions :: from ( engine_targets) ;
143
- env_options. es2022 . class_properties = None ;
144
- Ok ( env_options)
138
+ Ok ( EnvOptions :: from ( engine_targets) )
145
139
}
146
140
}
147
141
Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ impl From<ESTarget> for TransformOptions {
122
122
fn from ( target : ESTarget ) -> Self {
123
123
let mut engine_targets = EngineTargets :: default ( ) ;
124
124
engine_targets. insert ( Engine :: Es , target. version ( ) ) ;
125
- let mut env = EnvOptions :: from ( engine_targets) ;
126
- env. es2022 . class_properties = None ;
125
+ let env = EnvOptions :: from ( engine_targets) ;
127
126
Self { env, ..Self :: default ( ) }
128
127
}
129
128
}
You can’t perform that action at this time.
0 commit comments