Tree shaking removes unused exports from the bundle. Named exports are tree-shakeable; a default export of an object is not (bundler can't tell which properties are used). Prefer export const foo = ... over export default { foo, bar } for better tree shaking.