Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(turbopack): Split ModulePart into eval vs non-eval #70782

Merged
merged 1 commit into from
Oct 4, 2024

Commits on Oct 4, 2024

  1. fix(turbopack): Split ModulePart into eval vs non-eval (#70496)

    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 }
    ```
    
    It's required to fix tree shaking for client bundles.
    
    x-ref: https://vercel.slack.com/archives/C07GX6S95UG/p1727270139934499
    
    ---------
    
    Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
    kdy1 and sokra committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    ec3e078 View commit details
    Browse the repository at this point in the history