fix(es/minifier): Fix optimization of template literals with escape (#5650)

This commit is contained in:
Donny/강동윤 2022-08-28 12:15:12 +09:00 committed by GitHub
parent 3917522bf1
commit 100f359e5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 672972 additions and 1 deletions

View File

@ -105,7 +105,7 @@ impl Pure<'_> {
Expr::Tpl(t) => t
.quasis
.iter()
.all(|q| q.cooked.is_some() || !q.raw.contains('\\')),
.all(|q| q.cooked.is_some() && !q.raw.contains('\\')),
_ => false,
}) {
return;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff