Skip to content

turbopack-231206.3

@sokra sokra tagged this 06 Dec 07:42
### Description

* optimizes reexports for modules that are inside of folders with a
package.json that contains `"sideEffects": false`
* For named reexports
* skips resolving, reading, parsing, transforms, code generation and
bundling for unrelated reexports
* skips code generation and bundling for the module containing the
followed reexport
* For star reexports
* skips code generation and bundling for unrelated reexports before the
followed reexport
* skips resolving, reading, parsing, transforms, code generation and
bundling for unrelated reexports after the followed reexport
* skips code generation and bundling for the module containing the
followed reexport


Follow-up work:
* `sideEffects` in package.json also supports a glob. We need to support
that too.
* renaming exports is not yet supported. We need to create a naming
module for that to avoid effects on the importer side.

Closes PACK-2042
Assets 2
Loading