-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement basic side effects optimization (vercel/turborepo#6590)
### 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
- Loading branch information
Showing
181 changed files
with
2,277 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.