This repo contains a variety of examples that demonstrate different Rollup configurations and an evaluation of their outputs.
-
Tree-shaking with lodash
-
Tree-shaking with lodash
-
Tree-shaking with lodash-es
$ nvm i # Use appropriate Node.js version via http://nvm.sh
$ pnpm i --frozen-lockfile # Install dependencies using pnpm
$ pnpm run build-all
$ pnpm run -C demos/<PACKAGE_NAME> build