Category "tree-shaking"

Are unreferenced default parameters automatically tree-shaken out by webpack?

Obligatory apologies if this has been asked before, but I've been unable to find an answer online or in the webpack docs related to tree shaking. How does tre

How to perform tree shaking for lodash in a create-react-app project?

I need to perform tree-shaking to reduce bundle sizes where lodash and some other libraries are being used. I've converted all lodash imports like this: import

Best practice to publish src folder that contains esm modules

Consider this package.json: { "main": "./index.js", "name": "@myorg/foo", "scripts": { "build": "babel src -d dist --delete-dir-on-start --source-maps