-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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(v2): TypeScript, use isolatedModules #4790
Conversation
[V1] Built with commit ad3cf6a |
[V2] Built with commit ad3cf6a |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4790--docusaurus-2.netlify.app/ |
Size Change: +6.94 kB (+1%) Total Size: 640 kB
ℹ️ View Unchanged
|
// Re-expose useDocs | ||
// Ensure it's always statically available even if user is not using the docs plugin | ||
// Problem reported for the blog-only mode: https://github.com/facebook/docusaurus/issues/3360 | ||
export * from '@docusaurus/plugin-content-docs/src/theme/hooks/useDocs'; |
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.
@SamChou19815 this change can affect the blog-only mode, the e2e test pass and it looks it keeps working, let me know if you see any issue on next release
Motivation
It's safer to ensure that TS files can be transpiled independently.
Ie, transpiled by other tools like Babel or esbuild.
We use esbuild-loader in #4765 on the Docusaurus website now, and it is a recommended option