-
-
Notifications
You must be signed in to change notification settings - Fork 755
fix(codegen): do not escape $ in strings unless using backtick as quote
#10103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(codegen): do not escape $ in strings unless using backtick as quote
#10103
Conversation
CodSpeed Instrumentation Performance ReportMerging #10103 will create unknown performance changesComparing Summary
Benchmarks breakdown
|
d0ff0cc to
92a03b8
Compare
196072e to
dba7db6
Compare
dba7db6 to
87a539a
Compare
92a03b8 to
d3afce0
Compare
|
The effect on output sizes is odd. Output for Edit: Actually I can't replicate the larger gzipped size locally. cargo run -p oxc_minifier --example minifier target/antd.js -- --mangle --nospace > out.js
gzip -9 out.jsThat produces 5 bytes shorter output after this PR. So I don't understand why |
Merge activity
|
…uote (#10103) When printing `"${"`, it's unnecessary to escape the `$` unless the quote character is a backtick.
d3afce0 to
c903e42
Compare
87a539a to
9b6e344
Compare

When printing
"${", it's unnecessary to escape the$unless the quote character is a backtick.