Using Preact? #4211
Unanswered
shadowtime2000
asked this question in
Q&A
Using Preact?
#4211
Replies: 1 comment
-
Hi, I'm not very familiar with Preact but it's definitively something we'd like to support, as the docs sites generally don't need the most advanced features of React. Not sure what should be done exactly but as we do SSR and import React in core, we may need more than just babel aliases.
I'm aware of this and want to improve, but keep in mind that the perceived performance is not bad, almost everything on a Docusaurus site works even before the JS is downloaded. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I want to use the Preact compat layer because it's smaller and my docs website already gets like a 50 perf score on lighthouse so I used babel-plugin-module-resolver to alias it but it seems Docusaurus/Webpack is still adding it to the final bundle lowering the perf score by a lot. Is there any other way to do this that is faster?
Beta Was this translation helpful? Give feedback.
All reactions