Commit ec19537
authored
Named page chunks (#51921)
Depends on vercel/turborepo#5398 (and downstack) on
the Turbo side.
This PR makes it so the output path of Node.js entry chunks for pages is
determined solely from the pathname. This isn't actually necessary for
pages, but it makes for easier debugging anyway. See the Turbo PR for
more details.
This also changes the page structure so it also works if there is no
`pages` directory. In this case, we still want to use pages' default
_app, _document, and _error pages, even with existing app routes. So an
empty page structure should still have an effect.
## Turbopack updates
* vercel/turborepo#5415 <!-- Will Binns-Smith -
Turbopack: Execution tests in node.js -->
* vercel/turborepo#5461 <!-- Tobias Koppers - use a
lock to ensure atomic invalidation from file changes -->
* vercel/turborepo#5398 <!-- Alex Kirszenberg -
Configure the path of the Node.js entry chunk -->
* vercel/turborepo#5469 <!-- Tobias Koppers - allow
hmr tests to correctly detect hmr event -->1 parent 2743d0c commit ec19537
File tree
13 files changed
+327
-272
lines changed- packages/next-swc/crates
- next-build/src
- next_pages
- next-core
- js
- src/build/client
- src
- next_image
13 files changed
+327
-272
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
414 | | - | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
0 commit comments