Closed ydcteam closed 5 days ago
@ydcteam which Docusaurus version are you using? The latest one with Rspack?
@ydcteam it's not clear to me:
Those are quite different topics.
We constantly try to reduce bundle size of the base Docusaurus site already, but it's not always so easy and we have limited bandwidth to do so.
For plugin authors, there are pitfalls to avoid for sure, but we can't help you much if you don't share your plugin code.
It's also worth mentioning what in your opinion shouldn't be in those bundles exactly? What should we strive to remove and why? And why/how do you see it as a performance problem?
I'm going to close because it's not really a concrete proposal and more a community question, but we continue discussing this topic here.
Have you read the Contributing Guidelines on issues?
Motivation
Hello, I have just started developing Docusaurus plugins. I have encountered a tricky problem: the size of bundle files are too large, affecting the speed of the browser site resources and causing long page loading times. How can I optimize the size of the bundle files? I have tried to configure webpack for code splitting, but the effect is not very satisfactory. Waiting for some suggestions with tks a lot.
Self-service