mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
fix(es/minifier): Fix optimization of template literals with escape (#5650)
This commit is contained in:
parent
3917522bf1
commit
100f359e5d
@ -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 it is too large
Load Diff
50174
crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/input.js
Normal file
50174
crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/input.js
Normal file
File diff suppressed because one or more lines are too long
24588
crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js
Normal file
24588
crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user