Skip to content

Commit

Permalink
Stop mangling server runtime in dev (#68641)
Browse files Browse the repository at this point in the history
The server runtimes are currently all bundled in production mode with
full optimizaitons. This can make certain things hard in dev mode
because while most of your app will be unmangled anything that runs from
the server runtime will be runnign without useful debug information like
original function names. This PR updates the runtime configs to no
longer mangle the output.
  • Loading branch information
gnoff committed Aug 8, 2024
1 parent 8a80184 commit e740c48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => {
format: {
preamble: '',
},
mangle: dev ? false : true,
},
}),
],
Expand Down

0 comments on commit e740c48

Please sign in to comment.