This repo was written to compare tree shaking across 3 javascript bundlers (parcel.js, rollup.js and webpack.js) with three.js.
Meant to support this issue on Github.
I've created 3 folders each one for each bundler. all have similar npm scripts to run and compile.
npm start
(should run the development version with HMR for the selected module).
npm run build
(should build and compile the final source file where we should in theory observe the tree shaking had taken place).