Skip to content

feat: batch original stack frame requests in turbopack overlay#75556

Closed
gaojude wants to merge 1 commit into02-01-works_for_webpackfrom
02-01-works_for_turbopack
Closed

feat: batch original stack frame requests in turbopack overlay#75556
gaojude wants to merge 1 commit into02-01-works_for_webpackfrom
02-01-works_for_turbopack

Conversation

@gaojude
Copy link
Copy Markdown
Contributor

@gaojude gaojude commented Feb 1, 2025

What?

Implements batch processing of stack frames in the development overlay middleware for Turbopack. Instead of processing frames individually, multiple frames can now be processed in parallel through a new POST endpoint.

Why?

This change improves performance when handling multiple stack frames by processing them concurrently rather than requiring separate requests for each frame.

How?

  • Added a new /__nextjs_original-stack-frames POST endpoint
  • Introduced parseFile helper to handle file path parsing
  • Created createStackFrames function to process multiple frames
  • Implemented parallel processing of stack frames using Promise.allSettled
  • Maintained backwards compatibility with existing stack frame handling

Fixes #[issue number]

Copy link
Copy Markdown
Contributor Author

gaojude commented Feb 1, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@gaojude gaojude mentioned this pull request Feb 1, 2025
@gaojude gaojude changed the title works for turbopack batch requests to for original stack frame Feb 1, 2025
@gaojude gaojude changed the title batch requests to for original stack frame feat: batch original stack frame requests in turbopack overlay Feb 1, 2025
@gaojude gaojude marked this pull request as ready for review February 1, 2025 13:52
@gaojude gaojude closed this Feb 1, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants