Files
Shu DingandGitHub 239750751b Improve Server Reference ID DCE tests (#70191)
This PR improves the integration test of dead code elimination of Server
Reference IDs in the client bundle, to cover:
- Barrel files (re-exports and nested imports)
- Side effects in server boundary and intermediate modules
- SWC compression
2024-09-17 17:37:55 +00:00

17 lines
315 B
JavaScript

'use server'
// Ensure side effects won't affect tree shaking and DCE
console.log('This is a side effect')
export async function foo() {
console.log('This is action foo')
}
export async function bar() {
console.log('This is action bar')
}
export async function baz() {
console.log('This is action baz')
}