Using dbg-swc to debug size issue of your next.js app:
- Download one from the releases page
- Rename it to
dbg-swc
and 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-size
in your next.js app