Skip to content

Commit

Permalink
Don't error asking for prebuilt bundles
Browse files Browse the repository at this point in the history
Turbopack doesn't recognize webpack:// and so errors otherwise.

We don't need source maps for internals.
  • Loading branch information
sebmarkbage committed Oct 24, 2024
1 parent ab1d9ee commit 70536d7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export function getSourceMapMiddleware(project: Project, distDir: string) {
return badRequest(res)
}

if (filename.startsWith('webpack://next/')) {
return noContent(res)
}

try {
if (filename.startsWith('/_next/static')) {
filename = path.join(
Expand Down

0 comments on commit 70536d7

Please sign in to comment.