-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recursively check reachability when removing asset graphs from bundle…
…s in deduplication (#6004)
- Loading branch information
Showing
15 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/a.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,5 @@ | ||
import bar from './intermediate'; | ||
import foo from './intermediate-2'; | ||
import baz from './intermediate-3'; | ||
|
||
export default baz; |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/b.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,3 @@ | ||
import bar from './intermediate'; | ||
import barx from './intermediate-2'; | ||
import barz from './intermediate-3'; |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/c.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,2 @@ | ||
import bar from './unreachable'; | ||
import foo from './intermediate-2'; |
13 changes: 13 additions & 0 deletions
13
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/common.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/d.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,2 @@ | ||
import baz from './unreachable'; | ||
import bar from './foo'; |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/foo.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,2 @@ | ||
import foo from './unreachable'; | ||
export default 4; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/index.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,5 @@ | ||
import('./d'); | ||
import('./c'); | ||
import('./b'); | ||
output = import('./a').then(res => res.default); | ||
export default output; |
11 changes: 11 additions & 0 deletions
11
...core/integration-tests/test/integration/sibling-deduplicate-unreachable/intermediate-2.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...core/integration-tests/test/integration/sibling-deduplicate-unreachable/intermediate-3.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...s/core/integration-tests/test/integration/sibling-deduplicate-unreachable/intermediate.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...ages/core/integration-tests/test/integration/sibling-deduplicate-unreachable/package.json
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,6 @@ | ||
{ | ||
"@parcel/bundler-default": { | ||
"minBundleSize": 200, | ||
"maxParallelRequests": 3 | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...es/core/integration-tests/test/integration/sibling-deduplicate-unreachable/unreachable.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
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