Skip to content

Commit

Permalink
Allow breakpoints to be set in packages/next/src/compiled (#71986)
Browse files Browse the repository at this point in the history
This adds another entry to the `sourceMapPathOverrides` in our launch
configurations, to enable setting breakpoints in
`packages/next/src/compiled`, e.g. in
`packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js`:

<img width="1608" alt="Screenshot 2024-10-28 at 19 59 01"
src="https://github.com/user-attachments/assets/b11e7a1b-d291-4f19-a567-aec09936872d">
  • Loading branch information
unstubbable authored Oct 28, 2024
1 parent 61dbe6f commit aa4c0b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"webpack://(?:_N_E)?/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1",
"webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*",
"webpack://next/./dist/compiled/*": "${workspaceFolder}/packages/next/src/compiled/*",
"webpack:///(?:../)*packages/next/dist/compiled/(.*)": "${workspaceFolder}/packages/next/src/compiled/$1",
"webpack://next/./src/*": "${workspaceFolder}/packages/next/src/*",
"webpack-internal:///\\(rsc\\)/(?:../)*packages/next/dist/(.*)": "${workspaceFolder}/packages/next/src/$1",
"turbopack://[project]/*": "${workspaceFolder}/*"
Expand Down Expand Up @@ -81,6 +82,7 @@
"webpack://(?:_N_E)?/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1",
"webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*",
"webpack://next/./dist/compiled/*": "${workspaceFolder}/packages/next/src/compiled/*",
"webpack:///(?:../)*packages/next/dist/compiled/(.*)": "${workspaceFolder}/packages/next/src/compiled/$1",
"webpack://next/./src/*": "${workspaceFolder}/packages/next/src/*",
"webpack-internal:///\\(rsc\\)/(?:../)*packages/next/dist/(.*)": "${workspaceFolder}/packages/next/src/$1",
"turbopack://[project]/*": "${workspaceFolder}/*"
Expand All @@ -107,6 +109,7 @@
"webpack://(?:_N_E)?/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1",
"webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*",
"webpack://next/./dist/compiled/*": "${workspaceFolder}/packages/next/src/compiled/*",
"webpack:///(?:../)*packages/next/dist/compiled/(.*)": "${workspaceFolder}/packages/next/src/compiled/$1",
"webpack://next/./src/*": "${workspaceFolder}/packages/next/src/*",
"webpack-internal:///\\(rsc\\)/(?:../)*packages/next/dist/(.*)": "${workspaceFolder}/packages/next/src/$1",
"turbopack://[project]/*": "${workspaceFolder}/*"
Expand Down

0 comments on commit aa4c0b4

Please sign in to comment.