Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle source map requests for Turbopack client chunks (#71168)
Since Turbopack is generating actual source map files, and not inlined source maps as Webpack does, React might request a source map for a client chunk using the chunk's URL pathname, e.g. `/_next/static/chunks/[project]__edc466._.js`. In the source map dev middleware, we need to convert those URL pathnames to filenames before requesting the source map for the file from Turbopack. ## Test Plan - start `pnpm next dev --turbo test/development/app-dir/source-mapping` - go to `http://localhost:3000/client` - open React DevTools
- Loading branch information