chore: Test Docusaurus webpack 5 support#1716
Conversation
|
The docs build is constraint to master only so we'd have to merge this to see. Tried it locally, the first build is actually slower than before, the following one is about 3 times faster.
I guess I should rather wait for the actual release, as this would immediately generate renovate downgrade PR I think. |
|
I'll update the PR after the release and we'll see 🤷🏻♂️ |
|
FYI the first build is actually slower. Did you try to run "docusaurus clear" before? Webpack 4 used cache-loader which is somehow also some kind of caching, so you must compare comparable clean states :) |
|
Nope, just ran Will the perf benefit still be there if I change something in the source files (e.g. adjust some heading on one page)? If so, the first run perf is not really important. Anyway, great that this is being addressed, at least partially (it still feels out of space to wait for minutes, even tho there are lots of pages). |
|
I don't know about the memory leak but let me know if I should investigate this.
Yes that's the point, minor doc changes should be significantly faster.
It has not been the main focus as we were not feature complete but I'll try to do my best to improve build times. But I still strongly recommend moving older versions to standalone Jamstack deployments to avoid slowing down builds forever. See for example what I did on the Jest website for v < 25.x: https://jestjs.io/ I plan to write some kind of scalability doc soon. |
# Conflicts: # docs/package.json # docs/yarn.lock
|
ready, let me know if there are problems |
Use an unreleased version of Docusaurus to test the webpack5 support works for this site.
See also facebook/docusaurus#4089
It might improve performances on rebuild, but it requires that you setup caching of
node_modules/.cacheacross your CI builds (not sure how this works with Github Actions).Running locally: