mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
The issues with the current export statement validation for app router pages are documented in the added fixtures, see also the inline comments in the diff.
28 lines
350 B
JavaScript
28 lines
350 B
JavaScript
'use cache'
|
|
|
|
const foo = async () => {
|
|
return 'foo'
|
|
}
|
|
|
|
export { bar }
|
|
|
|
async function bar() {
|
|
return 'bar'
|
|
}
|
|
|
|
// Should not be wrapped in $$cache__.
|
|
const qux = async function qux() {
|
|
return 'qux'
|
|
}
|
|
|
|
const baz = async function () {
|
|
return qux() + 'baz'
|
|
}
|
|
|
|
const quux = async () => {
|
|
return 'quux'
|
|
}
|
|
|
|
export { foo, baz }
|
|
export default quux
|