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?

Stay in touch, 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

Never talk to strangers

Never talk to strangers

Zvonimir Spajic

January 20, 2020

Releasing with confidence

Releasing with confidence

Jonas Drieghe

December 18, 2019

How to be an asshole when testing bugs

How to be an asshole when testing bugs

Steve Tauber

December 10, 2019