mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
When a server action or `'use cache'` function is defined as a synchronous function, the error message now only marks the function name for better clarity. Previously, the entire function body was marked, which looks fine in small test fixtures, but is pretty messy for larger functions, both in the terminal as well as in the dev error overlay. For anonymous default exports we can't optimize this and are still marking the entire function body, as we don't have a name to refer to. closes NAR-165