-
-
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
achan3/P2X-1041 new disableSharedBundles config option #9209
Conversation
…es are manually set
…redBundles are manually set" This reverts commit fd2cdaa.
…SharedBundles config options
Benchmark ResultsKitchen Sink ✅
Timings
Cold BundlesNo bundle changes detected. Cached Bundles
React HackerNews ✅
Timings
Cold Bundles
Cached Bundles
AtlasKit Editor ✅
Timings
Cold Bundles
Cached Bundles
Three.js ✅
Timings
Cold Bundles
Cached BundlesNo bundle changes detected. |
await bundle( | ||
path.join( | ||
__dirname, | ||
'integration/disable-shared-bundles-false-with-min-bundle-size/index.js', |
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.
since disable-shared-bundles-false-with-min-bundle-size
has essentially the same contents as disable-shared-bundles-false
we could probably reuse one of them, and get rid of the other
so i think we could probably condense these tests to 4 cases: disablesharedbundles explicitly set to false:
disablesharedbundles explicitly set to true w minBundles set:
disablesharedbundles explicitly set to true w maxParallelRequests set:
disablesharedbundles explicitly set to true w both minBundles and maxParallelRequests set:
|
...ration-tests/test/integration/disable-shared-bundles-false-with-min-bundle-size/package.json
Outdated
Show resolved
Hide resolved
There's a test case called |
scenario handled in 18f6510 |
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.
I would also bar // Step Remove Shared Bundles
from occurring as well if disableSharedBundles is true. Because that section looks up bundles and sorts them before we even know if the bundle group contains shared bundles, which is just extra work that shouldn't occur ideally
…hecks, update test accordingly
↪️ Pull Request
Support a new disableSharedBundles config option during bundler creation
💻 Examples
🚨 Test instructions
✔️ PR Todo