-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More experimental bundler fixes #7783
Merged
Merged
Changes from 38 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
3860eca
internalization bug
gorakong 406cacb
Cleanup
c69e6d2
Always add assets to reachable bundles
lettertwo a5b5ed5
Merge branch 'v2' of github.com:parcel-bundler/parcel into internaliz…
gorakong 51ab20f
cleanup
gorakong febecde
fixed test regressions
gorakong c403cda
add ref edges whenever there are bundle edges
gorakong 8ac0701
add edge from bundlegroups to bundles wip
gorakong a474413
* Get inline bundles in bundle group in HTML packager
thebriando 0a9f32d
use and follow reference edges again
gorakong 73ad828
set env whenever we create bundles
gorakong eb3703b
Check to add parallel edges from all paths to an asset from a bundle
463bed0
Always register referenced bundles before pruning when building bundl…
d775731
Merge remote-tracking branch 'origin/v2' into internalization-bug
dbfab75
Revert "set env whenever we create bundles"
757eff8
Add test for referenced roots in bundle manifest
6e22065
Add reused sibling bundles to asyncBundleRootGraph
f347cac
Add test case for asset that has both an async and sync import
thebriando a4162b2
ExperimentalBundler: stop at isolated bundles
2a02631
ExperimentalBundler: fix step 7 comment
0d20d02
ExperimentalBundler: initialize entry bundles with no ancestors
22ba3bb
ExperimentalBundler: accept shared bundles extracted from workers
df5a741
Remove unused async bundles if needed
d03348d
Merge remote-tracking branch 'origin/v2' into more-experimental-bundl…
731c07b
Scope-hositing with new bundler: allow less duplication
345e0cc
Uncomment line in getSymbolResolution
thebriando 727dde7
Consider sibling availability before removing from ancestorAssets
2032542
Uncomment line in getSymbolResolution
thebriando 37e5c6a
Upgrade flow to 0.173.0 (#7809)
ae3ee14
Remove reachableBundles
thebriando 7a98f04
Bump lmdb (#7797)
mischnic 968fde6
Replace typeof before DCE (#7788)
mischnic 8136500
Consider sibling availability before removing from ancestorAssets
a5d9610
Consider assets in siblings before duplicating
fd4e7db
Merge remote-tracking branch 'github/v2' into more-experimental-bundl…
a7946d9
Remove unrelated change
eab212a
Don't consider any of parent's async bundles as sibling
07cb7fc
Merge branch 'v2' into more-experimental-bundler-fixes
thebriando 0cbd1f3
Remove unused structure
8feaea7
Merge branch 'more-experimental-bundler-fixes' of https:/…
AGawrys 81ffca5
remove eager bundle reuse and related lending code
AGawrys b971d75
Alter tests with mode production and correct assets with logic for sp…
AGawrys f887d71
Merge branch 'v2' into more-experimental-bundler-fixes
01dd511
Skip unused dependencies in experimental bundler
devongovett d9049a1
Implement getBundleFromBundleRoot
76214cb
Only add dependencies to CSS module JS, not CSS
devongovett 7d20342
Handle multiple assets on dependencies in reachability
5107bd5
ScopeHoistingPackager: Handle different wrapped ancestries in wrappin…
7478eae
Merge remote-tracking branch 'origin/v2' into more-experimental-bundl…
thebriando 31e58d9
merge in v2
AGawrys e87347d
skip assets for reachable if isolated or inline fix invariant
AGawrys e5c4c8a
Use bundleGroup instead of bundle root for determining needsStableName
fe4efb4
Add bundle.mainEntryAsset
195d041
Merge branch 'v2' into more-experimental-bundler-fixes
bc6aedd
fixup! Add bundle.mainEntryAsset
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
412 changes: 223 additions & 189 deletions
412
packages/bundlers/experimental/src/ExperimentalBundler.js
Large diffs are not rendered by default.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/html-shared-referenced/async.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 './async2.js'; | ||
|
||
import('./async2.js'); |
Empty file.
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-shared-referenced/index1.html
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 @@ | ||
<script type="module" src="index1.js"></script> |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-shared-referenced/index1.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 @@ | ||
import './shared'; |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-shared-referenced/index2.html
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 @@ | ||
<script type="module" src="index2.js"></script> |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/html-shared-referenced/index2.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 './async.js'; | ||
import './shared.js'; | ||
|
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/html-shared-referenced/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,5 @@ | ||
{ | ||
"@parcel/bundler-default": { | ||
"minBundleSize": 0 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-shared-referenced/shared.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 @@ | ||
import('./async.js'); |
Empty file.
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-sync-async-asset/index.html
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 @@ | ||
<script type="module" src="./index.js"></script> |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/html-sync-async-asset/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,4 @@ | ||
import t from "./test.js"; | ||
|
||
import("./other.js") | ||
.then((v) => v.default) |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-sync-async-asset/other.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 @@ | ||
export default import("./test.js"); |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/html-sync-async-asset/test.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 @@ | ||
export default "test"; |
6 changes: 6 additions & 0 deletions
6
...ests/test/integration/scope-hoisting/es6/export-intermediate-wrapped-reexports/index.html
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 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<script type="module" src="./index.mjs"></script> | ||
</body> | ||
</html> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now share assets between workers, so this is an improvement over the prior bundler.