-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: finally wrote correct chunking logic #562
Conversation
Travis tests have failedHey @tivac, Node.js: 8npm test -- --ci
TravisBuddy Request Identifier: a97d95f0-2916-11e9-9de4-fb4b948767f7 |
Hey @tivac, TravisCI finished with status TravisBuddy Request Identifier: 19aa23e0-291a-11e9-9de4-fb4b948767f7 |
Because sometimes you need external access to cleaned-up paths
Walks JS entries + CSS dep graph to determine ideal chunking locations and merges nodes together until it gets there. Probably a bit slower than before but *way* more accurate and safer to use.
6470b22
to
132e4f3
Compare
Codecov Report
@@ Coverage Diff @@
## master #562 +/- ##
==========================================
+ Coverage 99.04% 99.06% +0.01%
==========================================
Files 46 49 +3
Lines 1047 1172 +125
Branches 163 183 +20
==========================================
+ Hits 1037 1161 +124
- Misses 10 11 +1
Continue to review full report at Codecov.
|
Travis tests have failedHey @tivac, Node.js: 8npm test -- --ci
TravisBuddy Request Identifier: 9a9aa540-291c-11e9-9de4-fb4b948767f7 |
Description
Wrote a whole graph collapsing algorithm in order to determine the optimal number of chunks based on the JS entry points & the CSS dependency graph.
I also changed how CSS files are named which isn't "breaking" but is a big change maybe.
Also
rollup-rewriter
now always includes every css file a chunk depends on by walking each chunk's dep graph. That way load order is irrelevant because they all load everything they need. Seems obvious now but ... oops.Motivation and Context
Fixes #559
How Has This Been Tested?
Updated some existing tests, wrote some new ones.
Types of changes
Checklist: