facebook / facebook/docusaurus

Performance - Reduce build time and memory usage

オープン
#4,765 コメント 131 件 リアクション 43 件 担当者 0 名 GitHub で見る
domain: performance proposal
主要言語
TypeScript
スター
66.2k
フォーク
10k
平均マージ
1日 3時間
マージ済み PR(30日)
52

説明

## 💥 Proposal

With [Webpack 5 support](https://github.com/facebook/docusaurus/pull/4089), re-build times are now faster.

But we still need to improve the time for the first build which is not so good currently.

Some tools to explore:
- https://github.com/evanw/esbuild
- https://github.com/swc-project/swc
- https://github.com/alangpierce/sucrase

It will be hard to decouple Docusaurus totally from Webpack at this point.

But we should at least provide a way for users to use an alternative (non-Babel) JS loader that could be faster and good enough. Docusaurus core should be able to provide a few alternate loaders that would work by default using the theme classic, by just switching a config flag.

If successful and faster, we could make one of those alternate loader the default loader for new sites (when no custom babel config is found in the project).

Existing PR by @SamChou19815 for esbuild: https://github.com/facebook/docusaurus/pull/4532

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。