This demo shows how to have webpack tree shake @esri/rest-js
and only include methods that are actually being called in its output bundle.
- Make sure you run
npm run bootstrap
in the root folder to setup the dependencies - cd into
/demos/tree-shaking-webpack/
- Run
npm run build:app