Unverified Commit ecd94c1a authored by Jimmy Lai's avatar Jimmy Lai Committed by GitHub

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.
parent 033e8a5c
...@@ -134,6 +134,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => { ...@@ -134,6 +134,7 @@ module.exports = ({ dev, turbo, bundleType, experimental }) => {
}.runtime.${dev ? 'dev' : 'prod'}.js`, }.runtime.${dev ? 'dev' : 'prod'}.js`,
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
}, },
devtool: 'source-map',
optimization: { optimization: {
moduleIds: 'named', moduleIds: 'named',
minimize: true, minimize: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment