chore: upgrade Docusaurus, enable Faster - Rspack/SWC/LightningCSS#2997
chore: upgrade Docusaurus, enable Faster - Rspack/SWC/LightningCSS#2997nicolo-ribaudo merged 3 commits intobabel:mainfrom
Conversation
👷 Deploy request for babel-next pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for babel ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Just realized I'm upgrading the Babel website to use SWC 😅 hope you are fine with this |
|
PR ready to review @nicolo-ribaudo, v3.6 is out: |
| const siteConfig = { | ||
| future: { | ||
| // See https://docusaurus.io/blog/releases/3.6 | ||
| experimental_faster: true, |
There was a problem hiding this comment.
@slorber Thank you for the PR. Will docusaurus 4 remove this option and completely switch to Rspack/SWC/LightningCSS?
There was a problem hiding this comment.
👍
I think we'll keep it for v4, but maybe it will become true by default.
It's also possible to enable all the other options except replacing Babel loader by SWC if you really want your site to use Babel.
Note: if you want to keep Babel, we have a {webpack: {jsLoader: fn}} hook to plug your own custom loader. Even if we remove the faster options and make SWC the default, this hook remains an escape hatch to use Babel, OXC, Esbuild, or whatever you want.
There was a problem hiding this comment.
I'm personally fine with using SWC, as long as there is an opt out if we'll ever need it.
|
Nice numbers :) |

Docusaurus v3.6 had Docusaurus Faster options.
I'm testing it on a few sites before the release.
Benchmark
Cold builds - much faster:
Warm rebuilds - same time (for now):