Tree shaking

Topic | v1 | created by jjones |

In computing, tree shaking is a dead code elimination technique that is applied when optimizing code written in ECMAScript dialects like Dart, JavaScript, or TypeScript into a single bundle that is loaded by a web browser. Often contrasted with traditional single-library dead code elimination techniques common to minifiers, tree shaking eliminates unused functions from across the bundle by starting at the entry point and only including functions that may be executed . It is succinctly described as "live code inclusion".


subtopic of Computer programming

Computer programming is the process of designing and building an executable computer program to accom...

Edit details Edit relations Attach new author Attach new topic Attach new resource

treated in Tree Shaking

Tree shaking is a term commonly used in the JavaScript context for dead-code elimination. It relies o...