-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Pages API rendering into bundle #52149
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
db61ef2
feat: move api rendering into bundle
wyattjoh 2e76cdf
fix: revert change to context structure
wyattjoh 9115852
fix: embed route build info to resolve tracing bug
wyattjoh 9ba9810
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh d4293d8
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 5a237a7
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 4889600
feat: improve error messaging around route loading
wyattjoh f0d4525
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 6e04025
Merge branch 'canary' into wyattjoh/NEXT-986
timneutkens 2848ce5
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh d681831
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 750c776
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh a5fb25d
refactor: simplified imports for Document, App
wyattjoh 850b7cc
fix: fixed import order to preserve side-effect invocation order
wyattjoh 7dff5b8
feat: add support to emit routeModule in Turbopack builds
wyattjoh 31941d3
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 90f3fc7
feat: refactored code generator
wyattjoh 989dd95
fix: fixed incorrect module
wyattjoh ef8255d
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh c0576dc
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 642bc57
fix: review updates to rust
wyattjoh 647187c
fix: rust linting
wyattjoh 041cd60
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh 8cc3eeb
Merge branch 'canary' into wyattjoh/NEXT-986
wyattjoh e8b2319
Merge branch 'canary' into wyattjoh/NEXT-986
ijjk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of copying the code for turbopack and webpack, you can put that code into a shared JS file.
This can be imported in turobpack, and a webpack can read the file and replace
"INNER"
with string replaceThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we put this into a JS file, we can't perform the following:
next.js/packages/next-swc/crates/next-build/src/next_pages/page_entries.rs
Lines 386 to 394 in ef8255d
Or
next.js/packages/next/src/build/webpack/loaders/next-route-loader/index.ts
Lines 129 to 136 in 503677c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading the file from disk will give us a
RopeVc
, which we can then use to build another rope that we can concatenate into.