Skip to content
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

Merged
merged 4 commits into from
May 14, 2021
Merged

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented May 14, 2021

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

@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label May 14, 2021
@slorber slorber requested a review from lex111 as a code owner May 14, 2021 09:53
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label May 14, 2021
@netlify
Copy link

netlify bot commented May 14, 2021

[V1]

Built with commit ad3cf6a

https://deploy-preview-4790--docusaurus-1.netlify.app

@netlify
Copy link

netlify bot commented May 14, 2021

[V2]

Built with commit ad3cf6a

https://deploy-preview-4790--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented May 14, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 84
🟢 Accessibility 96
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-4790--docusaurus-2.netlify.app/

@github-actions
Copy link

github-actions bot commented May 14, 2021

Size Change: +6.94 kB (+1%)

Total Size: 640 kB

Filename Size Change
website/build/assets/js/main.********.js 463 kB +6.94 kB (+2%)
ℹ️ View Unchanged
Filename Size Change
website/build/assets/css/styles.********.css 88.5 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 62 kB 0 B
website/build/docs/introduction/index.html 235 B 0 B
website/build/index.html 26.9 kB 0 B

compressed-size-action

// 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';
Copy link
Collaborator Author

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

@slorber slorber merged commit 01adf25 into master May 14, 2021
@slorber slorber deleted the slorber/isolatedModules branch May 14, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants