Skip to content

Commit

Permalink
Run with --enable-source-maps by default in next dev
Browse files Browse the repository at this point in the history
We already create server source maps in dev by default,
so we should make use of them.
  • Loading branch information
eps1lon committed Oct 24, 2024
1 parent 9bfba27 commit cb26bc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next/src/cli/next-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ const nextDev = async (
delete nodeOptions['max_old_space_size']
}

nodeOptions['enable-source-maps'] = true

if (nodeDebugType) {
const address = getParsedDebugAddress()
address.port = address.port + 1
Expand Down

0 comments on commit cb26bc9

Please sign in to comment.