-
Notifications
You must be signed in to change notification settings - Fork 8
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
Why include terser? #2
Comments
@estrattonbailey |
@advance512 according to Bundlephobia, 82.9% of its 364.4kb (minified) payload is Terser. |
No idea. Do what you like @advance512 |
I'm fairly positive that this library doesn't need a AST parser embedded inside it :P I don't actually have a need for this anymore, so I'm gonna duck out ✌️ good luck y'all. |
@estrattonbailey |
For anybody else looking for a solution for this: Saved some 100's of kb's from my application. |
Ran a bundle analyzer this morning and Terser is by far the biggest part of our clientside build. Seems to totally defeat the point of minification/obfuscation of the analytics snippet since it adds 94kb (gzipped!) in the name of saving what's probably a few bytes. I'm pretty swamped at the moment but would consider sending a PR to remove if it's open for consideration. |
PRs are very welcome! Let's make this package better and better together |
Hey there, thanks for the lib and the original blog post. Seams like a pretty solid option!
However, I'm curious why you chose to include terser to minify the snippet code. It adds considerable weight to the overall payload of this library, and looks like it could easily do without.
The text was updated successfully, but these errors were encountered: