Using dbg-swc to debug size issue of your next.js app:
- Download one from the releases page
- Rename it to
dbg-swcand add it to yourPATH. - Install
terser, globally or locally.
e.g. yarn global add terser or yarn add -D terser will both work.
dbg-swc minify next check-sizein your next.js app