Particularly, the second code optimizations are simple for JavaScript code however they are perhaps not done-by esbuild (not an enthusiastic exhaustive number):
- Dead-code reduction within this mode regulators
- Mode inlining
- Cross-declaration ongoing propagation
- Object profile modeling
- Allotment sinking
- Strategy devirtualization
- Emblematic execution
- JSX phrase hoisting
- TypeScript enum recognition and you can inlining
When your code uses models which need a few of such forms of code optimization to get compact, or you want the perfect JavaScript minification formula at your disposal situation, you have to know having fun with most other units. Continue reading Brand new minification algorithm when you look at the esbuild will not yet , would advanced code optimizations