Skip to content

Commit cb26bc9

Browse files
committed
Run with --enable-source-maps by default in next dev
We already create server source maps in dev by default, so we should make use of them.
1 parent 9bfba27 commit cb26bc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/next/src/cli/next-dev.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ const nextDev = async (
265265
delete nodeOptions['max_old_space_size']
266266
}
267267

268+
nodeOptions['enable-source-maps'] = true
269+
268270
if (nodeDebugType) {
269271
const address = getParsedDebugAddress()
270272
address.port = address.port + 1

0 commit comments

Comments
 (0)