Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 20, 2022
1 parent 2048f4f commit dd2019b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/swc_ecma_minifier/src/compress/pure/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,9 @@ impl Pure<'_> {
Expr::New(NewExpr { callee, args, .. })
if callee.is_one_of_global_ref_to(
&self.expr_ctx,
&["Map", "Set", "Array", "Object", "Boolean", "Number"],
&[
"Map", "Set", "Array", "Object", "Boolean", "Number", "String",
],
) =>
{
report_change!("Dropping a pure new expression");
Expand Down

0 comments on commit dd2019b

Please sign in to comment.