Skip to content

chore(website): enable Docusaurus Faster#814

Open
layershifter wants to merge 1 commit intomicrosoft:mainfrom
layershifter:chore/docusaurus-faster
Open

chore(website): enable Docusaurus Faster#814
layershifter wants to merge 1 commit intomicrosoft:mainfrom
layershifter:chore/docusaurus-faster

Conversation

@layershifter
Copy link
Member

Summary

  • Add @docusaurus/faster and enable experimental_faster: true for 2-4x faster website builds (Rspack, SWC, Lightning CSS)
  • Disable useCssCascadeLayers — the PostCSS plugin that wraps CSS in @layer blocks is not compatible with rspackBundler (tracked in Docusaurus Faster facebook/docusaurus#10556)
  • Remove babel.config.js (SWC replaces Babel for JS transpilation)
  • Fix self-closing <span /><span></span> in navbar HTML (eliminates SWC HTML minifier warnings)

Test plan

  • nx run @griffel/website:build succeeds
  • No new warnings (only pre-existing broken anchors on /try-it-out)
  • Custom CSS renders correctly (verified useCssCascadeLayers is disabled)

🤖 Generated with Claude Code

Add @docusaurus/faster and enable experimental_faster for 2-4x faster builds.
Disable useCssCascadeLayers (incompatible with rspackBundler).
Remove babel.config.js (replaced by SWC loader).
Fix self-closing span in navbar HTML for SWC HTML minifier.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@layershifter layershifter requested a review from a team as a code owner March 13, 2026 11:55
@github-actions
Copy link

📊 Bundle size report

✅ No changes found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant