Webpack seems to load the full react-icons bundle even if only 1 icon is used
This is an issue because react-icons is an dependency of @fluentui/react-components
- Clone the repo
npm i
npm run build
- Observe the output bundle size is around 9MB
- Change the
module
field intsconfig.json
from"commonjs"
to"esnext"
npm run build
- The output bundle size should now be around 144KB