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
Experimental bundler integration #8180
Merged
Merged
Changes from 107 commits
Commits
Show all changes
113 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://github.com/…
AGawrys 81ffca5
remove eager bundle reuse and related lending code
AGawrys 1c30b0a
implement parallel request limits
gorakong f8a8e65
cleanup
gorakong a6f3065
Merge branch 'v2' of github.com:parcel-bundler/parcel into parallel-r…
gorakong 892edd3
create all shared bundles first then remove later
gorakong 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…
403ae53
move reachable root creation earlier to prevent unnecessary async bundle
AGawrys 4e04010
Merge branch 'v2' of github.com:parcel-bundler/parcel into parallel-r…
gorakong 7478eae
Merge remote-tracking branch 'origin/v2' into more-experimental-bundl…
thebriando d27025e
replace reachableroots with syncAssetsRequired and skip sync deps for…
AGawrys 91170c3
Revert "replace reachableroots with syncAssetsRequired and skip sync …
AGawrys 364f081
Revert "move reachable root creation earlier to prevent unnecessary a…
AGawrys fb426b1
Implement cleanup for internalized deps from entrys
AGawrys 30de01d
flow and clean up and comments
AGawrys 239bb91
forgot to add the test files
AGawrys 137801c
skip assets for reachable if isolated or inline fix invariant
AGawrys 31e58d9
merge in v2
AGawrys e87347d
skip assets for reachable if isolated or inline fix invariant
AGawrys c09957e
Merge branch 'v2' of github.com:parcel-bundler/parcel into parallel-r…
gorakong e5c4c8a
Use bundleGroup instead of bundle root for determining needsStableName
7faa3d7
remove asset references for deleted bundles + minor fixes
gorakong 5f734f6
Merge branch 'v2' of github.com:parcel-bundler/parcel into parallel-r…
gorakong 1ca53e0
Merge branch 'v2' into parallel-request-limit
gorakong 8091e67
Merge branch 'v2' into parallel-request-limit
gorakong 955fb67
Filter out bundleroots from reacable if they are subgraphs, consider …
AGawrys fe4efb4
Add bundle.mainEntryAsset
95b8588
ExperimentalBundler: merge bundleBehavior and needsStableName
e289ef5
Merge branch 'v2' into parallel-request-limit
7a4a0f4
Merge remote-tracking branch 'origin/wbinnssmith/multiple-bundles-sam…
AGawrys 7934257
Merge remote-tracking branch 'origin/parallel-request-limit' into exp…
AGawrys 59f4ef4
don't remove bundles depended on by url
AGawrys c36daf0
don't flatted bundle to bundlegroup edges
AGawrys c7a80fa
point config to default bundler, crete type change bundle regardless …
AGawrys 183e9e7
extract shared bundles from inline bundles
AGawrys 7ee8435
Internalize all async bundle before placing assets into bundles, add …
AGawrys ec2ec0a
add assert bundles to test
AGawrys 335e31e
Reverse merge asset insertion order to maintain dep order for css, re…
AGawrys f7a2296
Forked tests which rely on size calculation for shared bundles which …
AGawrys 770bc1f
Addedge support to toposort, use edges to differentiate parallel and …
AGawrys 82c6d43
Alter test description
AGawrys bd26b85
Merge in v2
AGawrys 58dfd51
remove numbered steps & remove parallel request limit since subject t…
AGawrys 0226dc4
Add support for multiple targets by bundling per entries per target
AGawrys 0c3a653
clean up
AGawrys f851eb7
parallel request limits + test
gorakong 36c647c
Merge branch 'experimental-bundler-integration' of https://github.com…
gorakong de2085a
add test and assert on number of bundles instead
gorakong d43c3b6
add test and assert on number of bundles instead
gorakong 1ed5a4e
Merge branch 'experimental-bundler-integration' of https://github.com…
gorakong 361bda0
Fix
mischnic 9445ca0
clean up logic and naming
AGawrys 3c18f9c
typo
AGawrys 4718cae
Merge remote-tracking branch 'origin/v2' into experimental-bundler-in…
AGawrys c635729
parallel request limit wip
gorakong 4bbad88
Dont allow multiple bundles of entry type in entry bundlegroups
AGawrys 0caa81b
Merge remote-tracking branch 'origin/v2' into experimental-bundler-in…
AGawrys b415d1e
fix
gorakong a2a87c1
Comments
AGawrys d3d11b5
Merge branch 'experimental-bundler-integration' of https://github.com…
gorakong 3323602
fixed bugs in parallel request limit implementation & update related …
gorakong 81b9da3
Merge branch 'v2' of https://github.com/parcel-bundler/parcel into ex…
gorakong 15085a2
flow
AGawrys 10f09e9
Fork diagnostic bundler config test to say correct bundler
AGawrys fc9e55b
typos
AGawrys 7e74049
flow reverse
AGawrys 2df0724
Add parallel step for running integration tests with experimental bun…
thebriando 1662eb7
Merge branch 'v2' into experimental-bundler-integration
AGawrys File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
774 changes: 588 additions & 186 deletions
774
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
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.
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.
Why did these cache tests change?
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 changed the cache tests because they didn't seem to test the config properly, now the test for
adding a config
andremoving
determine if minBundleSize was upheld, for bundles with a large asset.The previous test was testing script tags within a bundle, so it didn't seem like it was just testing bundler config.