Optimizing JavaScript packages for tree shaking

Published on April 12, 2019 and filed under Software engineering
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?
Twitter logo

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

Pointers and tips: dispelling the magic of git merge

Pointers and tips: dispelling the magic of git merge

Zvonimir Spajic

May 18, 2020

Introduction to Inertia.JS

Introduction to Inertia.JS

Tony Messias

April 24, 2020

Grandfathering in legacy

Grandfathering in legacy

Maarten Scholz

April 16, 2020