mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What?
Treat `baz` in the code below as a re-export.
```js
import { baz } from '../actions'
// Ensure side effects won't affect tree shaking and DCE
console.log(1)
export { baz }
```
### Why?
It's required to fix tree shaking for client bundles.
x-ref: https://vercel.slack.com/archives/C07GX6S95UG/p1727270139934499
### How?
Co-authored-by: Tobias Koppers <[email protected]>
4 lines
44 B
JSON
4 lines
44 B
JSON
{
|
|
"treeShakingMode": "module-fragments"
|
|
}
|