I remember in Next.js 12, the dependencies
and devDependencies
are still following the rules from this answer. But now, when I type pnpm create next-app
, all of the dependencies installed (no matter if they're only used for dev or both dev and prod) are all inside dependencies
.
// Next 12
"dependencies": {
"next": "12.1.2",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"@types/node": "17.0.23",
"@types/react": "17.0.43",
"@types/react-dom": "17.0.14",
"eslint": "8.12.0",
"eslint-config-next": "12.1.2",
"typescript": "4.6.3"
}
// Next 13
"dependencies": {
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.8",
"eslint": "8.27.0",
"eslint-config-next": "13.0.2",
"next": "13.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.8.4"
}
Is Next.js 13 do the minification itself for me? Should I separate them manually, defying create-next-app
's recommendation? I can't find the answer in the documentation.