mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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
17 lines
315 B
JavaScript
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')
|
|
}
|