Skip to content
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

Improve JS minifier #1117

Open
hhugo opened this issue Jul 26, 2021 · 1 comment
Open

Improve JS minifier #1117

hhugo opened this issue Jul 26, 2021 · 1 comment

Comments

@hhugo
Copy link
Member

hhugo commented Jul 26, 2021

Looking at what esbuild does:

  • true => !0
  • false => !1 or (!1)
  • 0.3 => .3
  • string interpolation to avoid quoting single-quote, double-quote or newlines
@smorimoto
Copy link
Member

It's probably worth a look what the terser does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants