Skip to content

Commit

Permalink
misc: enable source maps for bundled runtime (#56289)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
feedthejim authored Oct 2, 2023
1 parent 033e8a5 commit ecd94c1
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 @@ -134,6 +134,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => {
}.runtime.${dev ? 'dev' : 'prod'}.js`,
libraryTarget: 'commonjs2',
},
devtool: 'source-map',
optimization: {
moduleIds: 'named',
minimize: true,
Expand Down

0 comments on commit ecd94c1

Please sign in to comment.