Skip to content

Commit 13785d8

Browse files
committed
Stop mangling server runtime in dev
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.
1 parent a1c5ca6 commit 13785d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => {
173173
format: {
174174
preamble: '',
175175
},
176+
mangle: dev ? false : true,
176177
},
177178
}),
178179
],

0 commit comments

Comments
 (0)