Skip to content

Commit

Permalink
enable set class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Austaras committed Mar 3, 2022
1 parent 3884d9a commit 9ff7aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl Options {
// We do this before creating custom passses, so custom passses can use the
// variable management system based on the syntax contexts.
if syntax.typescript() {
// assumptions.set_class_methods = true;
assumptions.set_class_methods = !transform.use_define_for_class_fields;
assumptions.set_public_class_fields = !transform.use_define_for_class_fields;

program.visit_mut_with(&mut ts_resolver(top_level_mark));
Expand Down

0 comments on commit 9ff7aef

Please sign in to comment.