Skip to content

Commit

Permalink
Inline Next.js sources content into source map files
Browse files Browse the repository at this point in the history
This avoids a `loadNetworkResource` error in Chrome DevTools when trying
to set breakpoints in the Next.js sources, for both server and client.
  • Loading branch information
unstubbable committed Apr 20, 2024
1 parent c286c02 commit c8f3798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/taskfile-swc.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module.exports = function (task) {
const options = {
filename: path.join(file.dir, file.base),
sourceMaps: true,
inlineSourcesContent: false,
inlineSourcesContent: true,
sourceFileName: path.relative(distFilePath, fullFilePath),

...swcOptions,
Expand Down

0 comments on commit c8f3798

Please sign in to comment.