[turbopack] Follow re-exports for side-effect free async modules (#95993)
This adds a very basic follow re-exports support to async-imported
modules that are side effect free. For example, it supports:
```javascript
// a.js
export const a = 'A'
// b.js
export const b = 'B' // unused
// barrel.js (pure re-export barrel)
export { a } from './a.js'
export { b } from './b.js'
// index.js
const { a } = await import('./barrel.js')
console.log(a)
```
`apply_reexport_tree_shaking` was moved into `turbopack-ecmascript` as
part of this.
---------
Co-authored-by:
Benjamin Woodruff <benjamin.woodruff@vercel.com>
Showing
Please
register
or
sign in
to comment