Tree Shaking & ES6 Modules

Karan Sapolia

December 1, 2020

TL;DR

When Javascript front-ends get too big to be shipped as-is to user machines, we use various ways to reduce the payload size. The most important of which is compression. The other one is dead-code elimination. Tree shaking is the latter. Available thanks to the static import/export formats added in ES6.

Upcoming