Tag

Tag: Front End

What is Tree Shaking? Why It’s a Challenge, and How to Manage It?

Frontend Engineering Aug 08, 2024

What is Tree Shaking? Why It’s a Challenge, and How to Manage It?

Short answer: tree shaking is the step where a bundler such as webpack, Rollup or esbuild removes code your app imports but never uses. It only works on ES modules, because import and export can be analyzed without running the code. Mark files with side effects in package.json so the bundler does not drop code […]

Read article