Files
Hendrik LiebauandGitHub 958b9669fb Add test fixtures demonstrating export statement validation bugs (#75277)
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.
2025-01-24 17:24:02 +01:00

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