From cb26bc9ad2bb4aa9e07d8e6d5256eefca2c64d8d Mon Sep 17 00:00:00 2001 From: eps1lon Date: Thu, 24 Oct 2024 15:48:45 +0200 Subject: [PATCH] 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. --- packages/next/src/cli/next-dev.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/next/src/cli/next-dev.ts b/packages/next/src/cli/next-dev.ts index ee58538022cfe3..496e24d9cbac5f 100644 --- a/packages/next/src/cli/next-dev.ts +++ b/packages/next/src/cli/next-dev.ts @@ -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