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?
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

WP-CLI: WordPress Command Line Tools

WP-CLI: WordPress Command Line Tools

Andreas Creten

December 08, 2011

Querying your Redux store with GraphQL

Querying your Redux store with GraphQL

Emma Fabre

December 21, 2020

Serverless functions with Vercel

Serverless functions with Vercel

Geoffrey Dhuyvetters

September 02, 2020