Skip to content

Commit 1b77b96

Browse files
committed
Arc
1 parent 7369d26 commit 1b77b96

File tree

1 file changed

+2
-2
lines changed
  • crates/swc_ecma_transforms_optimization/src/simplify/dce

1 file changed

+2
-2
lines changed

crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn dce(
3939
in_strict: false,
4040
remaining_depth: 2,
4141
},
42-
config,
42+
config: Arc::new(config),
4343
changed: false,
4444
pass: 0,
4545
in_fn: false,
@@ -85,7 +85,7 @@ impl Default for Config {
8585
struct TreeShaker {
8686
expr_ctx: ExprCtx,
8787

88-
config: Config,
88+
config: Arc<Config>,
8989
changed: bool,
9090
pass: u16,
9191

0 commit comments

Comments
 (0)