-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
chore: upgrade Docusaurus, enable Faster - Rspack/SWC/LightningCSS #2997
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: |
@@ -119,6 +119,10 @@ function remarkDirectiveBabel8Plugin({ renderBabel8 }) { | |||
} | |||
|
|||
const siteConfig = { | |||
future: { | |||
// See https://docusaurus.io/blog/releases/3.6 | |||
experimental_faster: true, |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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):