question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

github_iconTop GitHub Comments

2reactions
obecnycommented, Mar 25, 2021

The thing is that a good minifier can do much more so any of such “improvements” would rather be a job for minification. We could go back to es5 so it would even minify more as we will not have things that are part of es6 and when converted quite often there are extra things which are not needed, much nicer usage of prototype without some extra overhead etc. etc. I think we might sacrifice too much gaining too little. I would be in position of comparing things very precisely with many different minification libraries, then do some refactoring then compare again. Until then I would like to avoid doing any improvements just by guessing and saying “it will minify better”. We should make very solid comparisons before proceeding with anything like this we should depends on solid numbers - which change do what and with what minifier we get what.

0reactions
github-actions[bot]commented, Aug 22, 2022

This issue was closed because it has been stale for 14 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Favor functions over classes for better minification
In this tip, we'll explain why JavaScript functions minify better than classes with real examples.
Read more >
Stop Using JavaScript Classes! - DEV Community ‍ ‍
It is true that many like using classes in JS because the constructor function allows for easy dependency injection, where we pass in ......
Read more >
Webpack's removes classnames when minifying/uglifying ES6 ...
Webpack's removes classnames when minifying/uglifying ES6 code with inheritance: There's MVCE code which we try to minify/uglify: Class Child:.
Read more >
Stop Using JavaScript Classes! - Medium
It is true that many like using classes in JS because the constructor function allows for easy dependency injection, where we pass in...
Read more >
How to disable webpack minification for classes names
Minification pluin. You can use 'keep_classnames' option provided by the minification plugin to keep the class names intact.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found