Content
@
0 reply
0 recast
0 reaction
@git
Dropped the size of my Next.js app by ~half by adding `"sideEffects": false` to package.json If your app has lots of *barrel files you will see huge reduction in size by adding this
1 reply
0 recast
3 reactions
Phil Cockfield
@pjc
Nice - just updated my mono-repo to insert that into all the module package.json I'd had that in mind from a while back, was getting OK performance on the bundles so it dropped off my mental buffer. Using Vite → Rollup, rather than NextJS → Webpack, but Rollup looks for "sideEffects: false" as well. Thanks @git
0 reply
0 recast
1 reaction