-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Reduce the number of parts created by tree shaking (#8472)
### Description Extracted from #8420 to split diffs for optimization vs intuitiveness ### Testing Instructions --------- Co-authored-by: Tobias Koppers <[email protected]>
- Loading branch information
Showing
4 changed files
with
447 additions
and
0 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
13 changes: 13 additions & 0 deletions
13
crates/turbopack-ecmascript/tests/tree-shaker/analyzer/grouping/input.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let x = 1; | ||
x = 2; | ||
x = 3; | ||
x = 4; | ||
x = 5; | ||
x += 6; | ||
x += 7; | ||
x += 8; | ||
x += 9; | ||
|
||
export { x }; | ||
|
||
export const y = x; |
Oops, something went wrong.