Files
next.js/turbopack/crates/turbopack-tests/tests/snapshot/tree-shaking/dce/options.json
0eb87da22c fix(turbopack): Split ModulePart into eval vs non-eval (#70782)
### 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]>
2024-10-04 12:18:26 +00:00

4 lines
44 B
JSON

{
"treeShakingMode": "module-fragments"
}