Files
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

6 lines
61 B
JavaScript

import { baz } from './module'
if (1 + 1 == 3) {
baz();
}