0

As far as I know, next.js goes through a tree-shaking process that removes all unused code and dependencies from the actual live application during the build process. (To be precise, during the bundling process using webpack). So, whether I install some packages to devDependencies or dependencies, all unused packages are not going to be bundled anyway. Is there any advantage to actually distinguishing these two?

I already read these articles, but there is no explanation about bundling.

thilllon
  • 1
  • 1

0 Answers0