Menu

Optimizing JavaScript packages for tree shaking

Published on April 12, 2019 and filed under Software engineering
Written
by Geoffrey Dhuyvetters and will take

7 minutes

of your time.
In short
As authors of (open source) packages, we all share the responsibility to protect the bundle size of the package consumer. One of the techniques a bundler applies is tree shaking. But what exactly is tree shaking? And how can we prepare our JavaScript package to enable this technique?

Want to see more articles like this in your inbox? You know what to do.

Written by

Geoffrey Dhuyvetters

This former teacher likes all things front end (the more complex web applications get, the happier Geoffrey becomes). His weak spot? JavaScript and all its quirks

Learn more about Geoffrey Dhuyvetters

Related articles

Follow these 4 steps to take your debugging skills to the next level

Follow these 4 steps to take your debugging skills to the next level

Bert Ramakers

March 27, 2020

What we talk about when we talk about testing

What we talk about when we talk about testing

Zvonimir Spajic

March 26, 2020

Never talk to strangers

Never talk to strangers

Zvonimir Spajic

January 20, 2020