Skip to content

Commit ecd94c1

Browse files
authoredOct 2, 2023
misc: enable source maps for bundled runtime (#56289)
This PR enables the generation of source maps for the bundled runtimes. This is fast enough that we can just use the optimal source map option directly. This is useful if you're having some errors in Next.js itself.
1 parent 033e8a5 commit ecd94c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/next/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => {
134134
}.runtime.${dev ? 'dev' : 'prod'}.js`,
135135
libraryTarget: 'commonjs2',
136136
},
137+
devtool: 'source-map',
137138
optimization: {
138139
moduleIds: 'named',
139140
minimize: true,

0 commit comments

Comments
 (0)
Please sign in to comment.