Skip to content

Commit c8f3798

Browse files
committed
Inline Next.js sources content into source map files
This avoids a `loadNetworkResource` error in Chrome DevTools when trying to set breakpoints in the Next.js sources, for both server and client.
1 parent c286c02 commit c8f3798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/taskfile-swc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = function (task) {
125125
const options = {
126126
filename: path.join(file.dir, file.base),
127127
sourceMaps: true,
128-
inlineSourcesContent: false,
128+
inlineSourcesContent: true,
129129
sourceFileName: path.relative(distFilePath, fullFilePath),
130130

131131
...swcOptions,

0 commit comments

Comments
 (0)