A test of webpack treeshaking.
- Build the NPM module.
- Install the NPM module into the CRA (create-react-app).
- Run.
- See render output.
Two components: the NPM module to be treeshaken and the CRA app that packs and installs it.
cd treeshaking-test-module
npm i
npm run build
cd treeshaking-test-app
npm i
npm run install-module
npm start