Commit 0252a0b
committed
[Flight] Respect
In #26624, the ability to mark a client reference module as `async` in
the React client manifest was removed because it was not utilized by
Webpack, neither in `ReactFlightWebpackPlugin` nor in Next.js. However,
some bundlers and frameworks are sophisticated enough to properly handle
and identify async ESM modules (e.g., client component modules with
top-level `await`), most notably Turbopack in Next.js. Therefore, we
need to consider the `async` flag in the client manifest when resolving
the client reference metadata on the server. The SSR manifest cannot
override this flag, meaning that if a module is async, it must remain
async in all client environments.
x-ref: vercel/next.js#70022
DiffTrain build for [5deb782](5deb782)async flag in client manifest (#30959)1 parent d65fb06 commit 0252a0b
File tree
34 files changed
+185
-203
lines changed- compiled/facebook-www
34 files changed
+185
-203
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
2004 | | - | |
| 2004 | + | |
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | | - | |
| 1984 | + | |
1985 | 1985 | | |
1986 | 1986 | | |
1987 | 1987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17112 | 17112 | | |
17113 | 17113 | | |
17114 | 17114 | | |
17115 | | - | |
| 17115 | + | |
17116 | 17116 | | |
17117 | 17117 | | |
17118 | 17118 | | |
17119 | | - | |
| 17119 | + | |
17120 | 17120 | | |
17121 | 17121 | | |
17122 | 17122 | | |
| |||
17150 | 17150 | | |
17151 | 17151 | | |
17152 | 17152 | | |
17153 | | - | |
| 17153 | + | |
17154 | 17154 | | |
17155 | 17155 | | |
17156 | 17156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16558 | 16558 | | |
16559 | 16559 | | |
16560 | 16560 | | |
16561 | | - | |
| 16561 | + | |
16562 | 16562 | | |
16563 | 16563 | | |
16564 | 16564 | | |
16565 | | - | |
| 16565 | + | |
16566 | 16566 | | |
16567 | 16567 | | |
16568 | 16568 | | |
| |||
16596 | 16596 | | |
16597 | 16597 | | |
16598 | 16598 | | |
16599 | | - | |
| 16599 | + | |
16600 | 16600 | | |
16601 | 16601 | | |
16602 | 16602 | | |
| |||
0 commit comments