Skip to content

Commit

Permalink
import
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 4, 2024
1 parent e2f83d2 commit f9c0fa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/swc/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub use swc_ecma_minifier::js::*;
use swc_ecma_minifier::option::terser::TerserTopLevelOptions;
#[allow(deprecated)]
pub use swc_ecma_parser::JscTarget;
use swc_ecma_parser::{parse_file_as_expr, Syntax, TsConfig, TsSyntax};
use swc_ecma_parser::{parse_file_as_expr, Syntax, TsSyntax};
pub use swc_ecma_transforms::proposals::DecoratorVersion;
use swc_ecma_transforms::{
feature::FeatureFlag,
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_ecma_transforms_proposal/src/decorator_2023_11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use swc_ecma_transforms_base::{helper, helper_expr};
use swc_ecma_utils::{
alias_ident_for, constructor::inject_after_super, default_constructor,
is_maybe_branch_directive, private_ident, prop_name_to_expr_value, quote_ident, replace_ident,
stack_size::maybe_grow_default, ExprFactory, IdentExt, IdentRenamer,
stack_size::maybe_grow_default, ExprFactory, IdentRenamer,
};
use swc_ecma_visit::{as_folder, noop_visit_mut_type, Fold, VisitMut, VisitMutWith};

Expand Down Expand Up @@ -437,7 +437,7 @@ impl Decorator202311 {
definite: false,
});

let preserved_class_name = c.ident.clone().private();
let preserved_class_name = c.ident.clone().into_private();
let new_class_name = private_ident!(format!("_{}", c.ident.sym));

self.extra_lets.push(VarDeclarator {
Expand Down

0 comments on commit f9c0fa9

Please sign in to comment.